Bug 1049608
Summary: | Script server execution arguments do not interpret quoted arguments including spaces as a single parameter | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Lukas Krejci <lkrejci> |
Component: | Plugins | Assignee: | Lukas Krejci <lkrejci> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.10 | CC: | hrupp, jkremser, lkrejci, loleary, mshirley |
Target Milestone: | --- | ||
Target Release: | RHQ 4.10 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1020066 | Environment: | |
Last Closed: | 2014-04-23 12:31:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1020066 |
Description
Lukas Krejci
2014-01-07 20:40:11 UTC
commit 545009710de643a8e21bfad57f4d09915009017a Author: Lukas Krejci <lkrejci> Date: Tue Jan 7 21:43:42 2014 +0100 [BZ 1049608] Support quotes and escapes in script args in script plugin commit d8e1e71efc8eb3ffcf2729fc4518b37e5cd304e5 Author: Lukas Krejci <lkrejci> Date: Sat Jan 25 00:08:01 2014 +0100 [BZ 1049608] - Changes to arg parsing in script server plugin * we by default keep the broken old behavior (blind split by space) * a boolean plugin prop to switch quoting and escapes on/off * configurable escape char set to \ for all platforms * escaping (when switched on) is POSIX-like: 1) In unquoted text: the escape character preserves the value of any following character 2) In double-quoted text: the escape character escapes " and itself otherwise is both the escape character and the following character are left intact 3) In single-quoted text: no escaping can occur commit in the release branch: 8058e6ba2 Bulk closing of 4.10 issues. If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10. |