1. Wicket
  2. WICKET-4330

Non standard ("wicket") namespace causes incorrect relative URL in certain cases


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.5, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
    • Environment:
      Win XP, 4GB RAM, Tomcat 6, Java 6


      The problem is related to non standard (i.e. "wicket") namespaces.

      In my quickstart if I change the namespace in all markup from "wicket"
      to "foobar" then the BPL which has only the last segment differing from the current page ends up producing an incorrect link to another page in the same path.


      Browser is at this page:

      Here's a relative link to another page in the same 'path'
      <a foobar:id="janeLink" href="../../../../../jane"
      style="outline: 0;">
      A link to the current page
      <a foobar:id="fredLink" href="fred">fred</a> </p>

      The above BPL href of ../../../../../jane is wrong.

      With 'wicket' set as the namespace the 'jane' BPL outputs 'jane' which is correct.

      This same code worked with the non standard namespace under 1.4.x

      Attached quickstart demonstrates the issue.


        Chris Colman made changes -
        Comment [ This bug has now regressed in 6.1.1 (and continues to regress in latest 6.2 snapshot). The app will display an error on the homepage.

        The attached snapshot reproduces the problem.

        If the namespace declaration in StandardPage.html <html> is removed and "foobar" replaced with "wicket" the homepage displays without error. ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5.5 [ 12319052 ]
        Fix Version/s 6.0.0 [ 12315431 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Assignee Martin Grigorov [ mgrigorov ]
        Chris Colman made changes -
        Field Original Value New Value
        Attachment nonStdNamespaceBug.zip [ 12510025 ]
        Chris Colman created issue -


          • Assignee:
            Martin Grigorov
            Chris Colman
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: