]
Ryan Emerson updated ISPN-10127:
--------------------------------
Fix Version/s: 9.4.13.Final
Error "mismatched input" in JDG CLI when trying to run site
command with a hyphen in site's name
------------------------------------------------------------------------------------------------
Key: ISPN-10127
URL:
https://issues.jboss.org/browse/ISPN-10127
Project: Infinispan
Issue Type: Bug
Components: CLI
Affects Versions: 9.4.12.Final, 10.0.0.Beta3
Environment: JDG 7.1.2 GA
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Priority: Major
Fix For: 10.0.0.Beta4, 9.4.13.Final
An error message is returned when trying to get status of a site in JDG CLI, possibly
because the site name has a hyphen character on it.
The following example of the site command being executed in CLI shows the response
I've got, trying to execute in different ways:
{code:borderStyle=solid}
[standalone@localhost:9990 distributed-cache=default] site --status site-01
line 1:14 mismatched input 'site' expecting set null
line 1:20 mismatched input '1' expecting set null
[standalone@localhost:9990 distributed-cache=default] site --status 'site-01'
Incorrect site name: 'site-01'
[standalone@localhost:9990 distributed-cache=default] site --status "site-01"
Incorrect site name: "site-01"
[standalone@localhost:9990 distributed-cache=default] site --status {site-01}
line 1:14 mismatched input '{' expecting set null
line 1:21 mismatched input '1' expecting set null
[standalone@localhost:9990 distributed-cache=default] site --status
"{site-01}"
Incorrect site name: "{site-01}"
{code}
However, if I try to execute the following command with a site name without the hyphen
character in it's value, everything works as expected:
{code:borderStyle=solid}
[standalone@localhost:9990 distributed-cache=default] site --status SFO
online
{code}