Wicket
  1. Wicket
  2. WICKET-3950

Versioned MixedParamHybridUrlCodingStrategy does not escape "#"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.17
    • Fix Version/s: 1.5.0
    • Component/s: wicket
    • Labels:
      None

      Description

      I have this mount

      wicketApp.mount( new MixedParamHybridUrlCodingStrategy("channelLog", ChannelLogPage.class, new String[]

      {"name"}

      ));

      the name param may contain "#" which is properly escaped when not versioned - /channelLog/%23%23wicket

      When this page is versioned, this turns to be:

      http://localhost:8080/channelLog/.29##wicket.28

        Activity

        Hide
        Ondra Žižka added a comment -

        Interesting Firefox bug:
        http://localhost:8080/channelLog/%23jbossas
        when a page from this is reloaded (F5), firefox changes url to
        http://localhost:8080/channelLog/#jbossas

        Show
        Ondra Žižka added a comment - Interesting Firefox bug: http://localhost:8080/channelLog/%23jbossas when a page from this is reloaded (F5), firefox changes url to http://localhost:8080/channelLog/#jbossas
        Hide
        Martin Grigorov added a comment -

        Works correctly in 1.5 with:
        mountPage("p/#

        {name}

        ", SomePage.class);

        and requested with
        http://localhost:8080/p/na%23me

        prints:
        na#me

        IUrlCodingStrategy and impls are removed in 1.5 so I guess they want be improved anymore in 1.4.x.

        Show
        Martin Grigorov added a comment - Works correctly in 1.5 with: mountPage("p/# {name} ", SomePage.class); and requested with http://localhost:8080/p/na%23me prints: na#me IUrlCodingStrategy and impls are removed in 1.5 so I guess they want be improved anymore in 1.4.x.

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Ondra Žižka
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development