Wicket
  1. Wicket
  2. WICKET-4844

AbstractResourceReferenceMapper doesn't escape separators in style/variation names

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.8, 6.2.0
    • Fix Version/s: 1.5.9, 6.3.0
    • Component/s: wicket
    • Labels:
      None

      Description

      org.apache.wicket.request.mapper.AbstractResourceReferenceMapper#encodeResourceReferenceAttributes() doesn't escape '-' character when generating the query string parameter with the locale-style-variation.

      So using a style with name "a-b" leads to parameter with name "-a-b" and later is decoded to style == "a" and variation == "b"

        Activity

        Hide
        Martin Grigorov added a comment -

        Fixed.
        '-' is replaced with '', and '' with '~~'.

        Show
        Martin Grigorov added a comment - Fixed. '-' is replaced with ' ', and ' ' with '~~'.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development