Project

General

Profile

Actions

Architecture #10747

open

regextract cannot extract values that contains ${TEXT} if TEXT is not a variable

Added by Nicolas CHARLES almost 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Agent
Effort required:
Name check:
Fix check:
Regression:

Description

Agent tries to expand variables in regextract, even if it doesn't make sense
Escaping with ${const.dollar}{TEXT} doesn't fix the issue, nor does ${const.dollar}{const.dollar}{const.dollar}{const.dollar}{const.dollar}{const.dollar}{TEXT} (i stopped at 6)

This prevents using shell variables in, for instance , ssh_key_definition (see #10715)


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #10715: escaping ${SSH_ORIGINAL_COMMAND} in GUI - sshKeyDistribution/3.0ReleasedAlexis MoussetActions
Actions #1

Updated by Nicolas CHARLES almost 7 years ago

  • Related to Bug #10715: escaping ${SSH_ORIGINAL_COMMAND} in GUI - sshKeyDistribution/3.0 added
Actions #2

Updated by Nicolas CHARLES almost 7 years ago

  • Description updated (diff)
Actions #3

Updated by Nicolas CHARLES almost 7 years ago

Ticket opened on upstream project: https://tracker.mender.io/browse/CFE-2637

Actions #4

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #5

Updated by François ARMAND almost 7 years ago

  • Tracker changed from Bug to Architecture

Perhaps a workaround could be to assign to a variable (so that the expansion is done) before the regextract call. It would be needed in each technique using regextract.

This one is an architecture bug.

Actions #6

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #7

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.22 to 3.1.23
Actions #8

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.23 to 3.1.24
Actions #9

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.24 to 3.1.25
Actions #10

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.25 to 387
Actions #11

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 387 to 4.1.10
Actions #12

Updated by Benoît PECCATTE about 6 years ago

  • Target version changed from 4.1.10 to Ideas (not version specific)
Actions

Also available in: Atom PDF