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: CLIAssignee: baranowb <bbaranow>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: 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    

Description Petr Kremensky 2014-12-01 11:56:06 UTC
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

Comment 1 Petr Kremensky 2015-03-05 06:17:17 UTC
*** Bug 1198785 has been marked as a duplicate of this bug. ***

Comment 10 Petr Kremensky 2015-05-19 11:26:51 UTC
Verified on EAP 6.4.1.CP.CR2

Comment 11 Chao Wang 2016-01-11 09:18:58 UTC
*** Bug 1297302 has been marked as a duplicate of this bug. ***

Comment 12 Petr Penicka 2017-01-17 10:00:29 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 13 Petr Penicka 2017-01-17 10:00:52 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.