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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: JMS
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jmesnil Jeff Mesnil
                  Reporter:
                  jmesnil Jeff Mesnil
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: