Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7094

Error "Can't reset to root in the middle of the path" during `ant install` on JBoss ≥6.4.19

    Details

    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Sprint 15

      Description

      From the linked support ticket:

      I managed to install EJBCA with “ant install” on EAP 6.4. Later I realized that I encountered the problem when I tried to install it on EAP 6.4.19. In order to install it on EAP 6.4.19 I had to change "/interfaces=/interface=" to "/interface=" otherwise I got exception "Can't reset to root in the middle of the path @12". This exception was implemented in Wildfly by the following commit 
      
      https://github.com/wildfly/wildfly-core/commit/3d5111dd6bd32203dd7c41cd2403b994a0b96d08#diff-93f2c59d2b103af3e5ebebeabf84b45b 
      
      in order to fix the following bug 
      
      https://issues.jboss.org/browse/WFCORE-285 
      
      I guess this bug fix has been transferred to EAP somewhere between 6.4.1 and 6.4.19. 
      
      I can trigger this bug (as described in the link above) in EAP 6.4 but not in EAP 6.4.19, so I think this fix also catches the incorrect commands in “jboss.xml”, because if I understand it correctly the command 
      
      /interfaces=/interface=… 
      
      will try to reset the root of the path which the bug fix prevents. 
      
      On EAP 6.4 I can run command 
      
      /hasthage=/interface=… 
      
      with correct result. Probably because it will skip “/hasthage=” when the root is set to “/interface=…” 
      
      for example 
      
      /hasthage=/interface=httpspub:add(inet-address="0.0.0.0") 
      
      will give same result as 
      
      /interface=httpspub:add(inet-address="0.0.0.0") 
      on EAP 6.4 but on 6.4.19 it will give 
      
      “Can't reset to root in the middle of the path @10” 
      

      Confirm that the fix is a "good" fix, i.e. does not break anything and update the ant script accordingly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                realiserad Bastian Fredriksson
                Reporter:
                realiserad Bastian Fredriksson
                Verified by:
                Samuel Lidén Borell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 1 hour
                  1h