Bug 1169342 - [GSS](6.4.z) CLI ignores path segments with empty resource name while parsing commands
Summary: [GSS](6.4.z) CLI ignores path segments with empty resource name while parsing...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR2
: EAP 6.4.1
Assignee: baranowb
QA Contact: Petr Kremensky
URL:
Whiteboard:
: 1198785 1297302 (view as bug list)
Depends On:
Blocks: eap641-payload
TreeView+ depends on / blocked
 
Reported: 2014-12-01 11:56 UTC by Petr Kremensky
Modified: 2019-04-16 14:25 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFCORE-581 0 Major Resolved CLI accepts operation requests with addresses ending on resource types 2017-06-15 05:32:16 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.