]
Kabir Khan updated WFCORE-4570:
-------------------------------
Summary: PathAddress.toCLIStyleString() can output badly formatted values (was:
PathAddress.toCLIStyleString() should quote the values)
PathAddress.toCLIStyleString() can output badly formatted values
----------------------------------------------------------------
Key: WFCORE-4570
URL:
https://issues.jboss.org/browse/WFCORE-4570
Project: WildFly Core
Issue Type: Bug
Reporter: Kabir Khan
Assignee: Jeff Mesnil
Priority: Major
Trying PathAddress.toCLIStyleString() on the output operations from
https://github.com/keycloak/keycloak/blob/master/adapters/oidc/wildfly/wi...
I end up with addresses with strange characters like
{code}
/subsystem=keycloak/secure-deployment=web-console/redirect-rewrite-rule=^/wsmaster/api/(.*)$
{code}
If I try to add a system property with the same name in CLI I get an error, e.g.:
{code}
[standalone@embedded /] /system-property=^/wsmaster/api/(.*)$:add(value=xyx)
Node path format is wrong around 'wsmaster' (index=19).
{code}
It seems that these need to be quoted and it all works
{code}
[standalone@embedded /] /system-property="^/wsmaster/api/(.*)$":add(value=xyx)
{"outcome" => "success"}
{code}