Bug 952294 - [CLI] not escaped slashes in cache name e.g. defaultx/xx
Summary: [CLI] not escaped slashes in cache name e.g. defaultx/xx
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 6.2.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-15 15:26 UTC by Vitalii Chepeliuk
Modified: 2025-02-10 03:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:27:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Sever log of JDG server (190.80 KB, text/x-log)
2013-04-15 15:26 UTC, Vitalii Chepeliuk
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-3013 0 Minor Open CLI not supports slashes in name as "defaultx/xx" 2015-10-09 07:38:10 UTC

Description Vitalii Chepeliuk 2013-04-15 15:26:04 UTC
Created attachment 735958 [details]
Sever log of JDG server

When we connect from CLI to server. And configure our cache name to use / in names then name with slashes is correctly shown when we press <TAB> to autocomplete but If we choose this name of cache and press <ENTER> we get exception
[remoting://localhost:9999/default/]> cache defaultx/xx
java.lang.NullPointerException
[remoting://localhost:9999/default/]> cache defaultx/xx
java.lang.NullPointerException
[remoting://localhost:9999/default/]> cache defaultx/xx
java.lang.NullPointerException
[remoting://localhost:9999/default/]> cache defaultx/xx
  
Special symbols should be escaped 
Expected results:

Additional info: server.log added in attachment

Comment 1 JBoss JIRA Server 2013-04-16 09:05:21 UTC
Thomas Fromm <tf> made a comment on jira ISPN-3013

Maybe check spaces in name too :-)

Comment 2 Vitalii Chepeliuk 2013-04-16 11:58:28 UTC
(In reply to comment #1)
> Thomas Fromm <tf> made a comment on jira ISPN-3013
> 
> Maybe check spaces in name too :-)

Yep spaces could be too

Comment 3 JBoss JIRA Server 2013-04-16 12:02:59 UTC
Vitalii Chepeliuk <vchepeli> made a comment on jira ISPN-3013

Yep spaces too could be escaped too)) But we verify mysql DB with name consisting of special symbols

Comment 4 JBoss JIRA Server 2013-04-16 12:40:20 UTC
Tristan Tarrant <ttarrant> made a comment on jira ISPN-3013

The CLI supports quoting. have you tried that ?

Comment 5 JBoss JIRA Server 2013-04-16 13:54:45 UTC
Vitalii Chepeliuk <vchepeli> made a comment on jira ISPN-3013

Yes Tristan I wrote 4. This only working with "defaultx/xx" or 'defaultx/xx' but autocompletion do not escaping special symbol like /. I mean that if you press <TAB> key it will autocomplete cache name without quots and if it is not quated you press enter and NullPointerException.

Comment 8 Red Hat Bugzilla 2025-02-10 03:27:41 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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