You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/08/16 09:22:00 UTC

[jira] [Comment Edited] (WICKET-6993) Resource Variations containing a single character are not correctly decoded

    [ https://issues.apache.org/jira/browse/WICKET-6993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17580190#comment-17580190 ] 

Martin Tzvetanov Grigorov edited comment on WICKET-6993 at 8/16/22 9:21 AM:
----------------------------------------------------------------------------

[https://gitbox.apache.org/repos/asf?p=wicket.git;h=25527239d8] is the best I came with.

It is an improvement on the current state, but still not perfect.

If an attribute contains "–" (double dash/minus) then there is no way to escape+unescape it correctly.

The problem is that both 
{noformat}
~{noformat}
 ~and~ 
{noformat}
--{noformat}
are being escaped to
{noformat}
~~{noformat}
Later at unescape time there is no way to know which was the original.


was (Author: mgrigorov):
[https://gitbox.apache.org/repos/asf?p=wicket.git;h=25527239d8] is the best I came with.

It is an improvement on the current state, but still not perfect.

If an attribute contains "–" (double dash/minus) then there is no way to escape+unescape it correctly.

The problem is that both "~" and "–" are being escaped to "~~".  Later at unescape time there is no way to know which was the original.

> Resource Variations containing a single character are not correctly decoded
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-6993
>                 URL: https://issues.apache.org/jira/browse/WICKET-6993
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 8.14.0, 9.10.0
>            Reporter: Peter Lamby
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Minor
>
> A resource variation containing a single character in the middle is encoded as follows:
> single-e-inside => single~e~inside
> When the variation is decoded again the following variation is produced
> single-e~inside => single-e~inside
> A similar issue exists with an attribute like double--separator
>  
> The effect is that resources with a variation like that do not work correctly in wicket.



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