[jboss-jira] [JBoss JIRA] Resolved: (JBPORTAL-1949) bad charset encoding on portlet and instances admin

Martin Putz (JIRA) jira-events at lists.jboss.org
Fri Jun 6 15:39:31 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBPORTAL-1949?page=all ]

Martin Putz resolved JBPORTAL-1949.
-----------------------------------

    Fix Version/s: 2.6.6 Final
                       (was: 2.7 Final)
       Resolution: Duplicate Issue

resolved by JBPORTAL-2032

> bad charset encoding on portlet and instances admin
> ---------------------------------------------------
>
>                 Key: JBPORTAL-1949
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1949
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal Core Admin
>    Affects Versions: 2.6.4 Final
>         Environment: jboss portal 2.6.5
>            Reporter: Luca Stancapiano
>         Assigned To: Luca Stancapiano
>             Fix For: 2.6.6 Final
>
>         Attachments: HTMLDecoder.java, HTMLDecoder.java
>
>
> there is a bug into myfaces 1.1.5 and up..... using <f:param name="id" value="#{instance.id}"> tag inside <h:commandLink> , I see that instance.id value has a bad encoding... if I use a word with special characters as à, è, ù, ì  as instance.id for example 'modalità' , it is encoded into 'modalit&amp;#224' instead of 'modalit&agrave' . When I click on a instance through command link into 'portal instances', that id cannot to be decoded and so I haven't access to that instance. 
> I wrote a decoder that resolve this bug. It does the reverse of myfaces HTMLEncoder.It has to be used inside:
> class: org.jboss.portal.core.admin.ui.PortletManagerBean
> method: selectPortlet() : 357 row
> so: selectedPortletId = HTMLDecoder.decode((String)ctx.getExternalContext().getRequestParameterMap().get("id"));
> and
> class: org.jboss.portal.core.admin.ui.InstanceManagerBean
> method: selectInstance() : 356 row
> so: selectedId = HTMLDecoder.decode((String)params.get("id"));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jboss-jira mailing list