You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Ate Douma (JIRA)" <je...@portals.apache.org> on 2009/05/13 18:19:45 UTC

[jira] Created: (JS2-1011) NavigationalState Base64 encoding needs to escape '+' characters

NavigationalState Base64 encoding needs to escape '+' characters
----------------------------------------------------------------

                 Key: JS2-1011
                 URL: https://issues.apache.org/jira/browse/JS2-1011
             Project: Jetspeed 2
          Issue Type: Bug
          Components: Container
    Affects Versions: 2.2.0
         Environment: Websphere 6
            Reporter: Ate Douma
            Assignee: Ate Douma
             Fix For: 2.2.0


Turns out I forgot to escape '+' characters in the Base64 encoding used for the Jetspeed NavigationalState url parameter...
Until now, there never has been any report about this causing a problem.
But, while testing the JSR-286 TCK against Websphere, I finally encountered one.
Websphere turns out to replace embedded '+' characters with a space character in an url, thereby completely breaking the navigational state!

Solving this is really a trivial change: I'll add an escape for '+' characters by using '.' (just picking an easy and safe replacement character, '_' and '-' are already used for '/' and '='). 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Resolved: (JS2-1011) NavigationalState Base64 encoding needs to escape '+' characters

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma resolved JS2-1011.
----------------------------

    Resolution: Fixed

Fixed

> NavigationalState Base64 encoding needs to escape '+' characters
> ----------------------------------------------------------------
>
>                 Key: JS2-1011
>                 URL: https://issues.apache.org/jira/browse/JS2-1011
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Container
>    Affects Versions: 2.2.0
>         Environment: Websphere 6
>            Reporter: Ate Douma
>            Assignee: Ate Douma
>             Fix For: 2.2.0
>
>
> Turns out I forgot to escape '+' characters in the Base64 encoding used for the Jetspeed NavigationalState url parameter...
> Until now, there never has been any report about this causing a problem.
> But, while testing the JSR-286 TCK against Websphere, I finally encountered one.
> Websphere turns out to replace embedded '+' characters with a space character in an url, thereby completely breaking the navigational state!
> Solving this is really a trivial change: I'll add an escape for '+' characters by using '.' (just picking an easy and safe replacement character, '_' and '-' are already used for '/' and '='). 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org