Pedro Santos created WICKET-7129:
------------------------------------

             Summary: Improve resource URL style/locale/variation decoding
                 Key: WICKET-7129
                 URL: https://issues.apache.org/jira/browse/WICKET-7129
             Project: Wicket
          Issue Type: Sub-task
          Components: wicket-core
    Affects Versions: 10.2.0
            Reporter: Pedro Santos
            Assignee: Pedro Santos


Context: In addition to BasicResourceReferenceMapper.mapRequest URL decoding, 
the PackageResourceReference.getResource method will also decode the URL 
attributes in the next moment of the request response. The current 
implementation makes sure that PackageResourceReference.getResource 
implementations always return a PackageResouce for the encoded URL 
style/locale/variation, but this guarantee can be made by decoding the URL in 
other mappers like ResourceMapper.

Suggestion:

 - to always decode the resource URL inside its mapper and before a 
PackageResourceReference is resolved for it

- remove the duplicated URL decoding code inside 
PackageResourceReference.getResource



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to