Bug 1169342
| Summary: | [GSS](6.4.z) CLI ignores path segments with empty resource name while parsing commands | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Petr Kremensky <pkremens> |
| Component: | CLI | Assignee: | baranowb <bbaranow> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4.0 | CC: | bbaranow, bmaxwell, brian.stansberry, cdewolf, dereed, jawilson, jkudrnac, mrobson, rsvoboda, sfu |
| Target Milestone: | CR2 | ||
| Target Release: | EAP 6.4.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | 1207953 | ||
*** Bug 1198785 has been marked as a duplicate of this bug. *** Verified on EAP 6.4.1.CP.CR2 *** Bug 1297302 has been marked as a duplicate of this bug. *** Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. |
Description of problem: Empty path segments (file-handler in this case) are ignored while parsing the command. This could lead to some unexpected behaviour. [standalone@localhost:9999 /] echo-dmr /subsystem=logging/file-handler=:remove { "address" => [("subsystem" => "logging")], "operation" => "remove" } Version-Release number of selected component (if applicable): 6.4.0.DR11 How reproducible: Always Steps to Reproduce: I can imagine a case where $PROP variable is not/wrongly set and user accidentally remove security subsystem from full profile configuration. 1. start domain and connect to CLI 2. ./jboss-cli.sh -c "/profile=full/subsystem=security/security-domain=$PROP:remove" Actual results: Security subsystem is removed from full profile configuration Expected results: Operation fails