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

Luca Stancapiano (JIRA) jira-events at lists.jboss.org
Sat Mar 8 08:14:08 EST 2008


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.7 Final, 2.6.5 Final
         Environment: jboss portal 2.6.5
            Reporter: Luca Stancapiano
         Assigned To: Luca Stancapiano
             Fix For: 2.6.4 Final


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