Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8507

:resolve-path provides wrong path if attribute "path" contains absolute path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.Beta1
    • None
    • JMS
    • None

    Description

      If attribute path for paging-directory is set as absolute and relative-to is undefined:

      [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default/path=paging-directory:write-attribute(name=path, value=/tmp/paging-journal)
      [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default/path=paging-directory:undefine-attribute(name=relative-to)
      :reload
      

      then :resolve-path returns concatenation of old relative-to and path:

      [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default/path=paging-directory:resolve-path
      {
          "outcome" => "success",
          "result" => "/home/mnovak/hornetq_eap6_dev/internal/eap-tests-hornetq/scripts/server1/jboss-eap/standalone/data//tmp/paging-journal"
      }
      

      Undefining attribute relative-to does not work. Also if path contains absolute path then relative-to is not ignored.

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              jmesnil1@redhat.com Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: