Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9717

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

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.DR14
    • Fix Version/s: 7.1.0.DR16
    • 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:
                  mnovak Miroslav Novak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: