[
https://issues.apache.org/jira/browse/WICKET-7129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pedro Santos updated WICKET-7129:
---------------------------------
Description:
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.
Suggestion:
- to only decode the resource URL inside PackageResourceReference
was:
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
> 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
> Priority: Major
>
> 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.
> Suggestion:
> - to only decode the resource URL inside PackageResourceReference
--
This message was sent by Atlassian Jira
(v8.20.10#820010)