Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4570

PathAddress.toCLIStyleString() can output badly formatted values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.Beta3, 10.0.0.Final
    • None
    • None
    • None

      Trying PathAddress.toCLIStyleString() on the output operations from https://github.com/keycloak/keycloak/blob/master/adapters/oidc/wildfly/wildfly-subsystem/src/test/resources/org/keycloak/subsystem/adapter/extension/keycloak-1.1.xml I end up with addresses with strange characters like

      /subsystem=keycloak/secure-deployment=web-console/redirect-rewrite-rule=^/wsmaster/api/(.*)$
      

      If I try to add a system property with the same name in CLI I get an error, e.g.:

      [standalone@embedded /] /system-property=^/wsmaster/api/(.*)$:add(value=xyx)
      Node path format is wrong around 'wsmaster' (index=19).
      

      It seems that these need to be quoted and it all works

      [standalone@embedded /] /system-property="^/wsmaster/api/(.*)$":add(value=xyx)
      {"outcome" => "success"}
      

              jmesnil1@redhat.com Jeff Mesnil
              kkhan1@redhat.com Kabir Khan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: