[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-1949) bad charset encoding on portlet and instances admin
Thomas Heute (JIRA)
jira-events at lists.jboss.org
Mon May 5 10:40:32 EDT 2008
[ http://jira.jboss.com/jira/browse/JBPORTAL-1949?page=all ]
Thomas Heute updated JBPORTAL-1949:
-----------------------------------
Fix Version/s: (was: 2.6.5 Final)
> 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.7 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&#224' instead of 'modalità' . 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