[gatein-issues] [JBoss JIRA] (GTNPORTAL-3247) [IE8] Impossible to edit page containing accent character in its name

Son Tran (JIRA) jira-events at lists.jboss.org
Mon Aug 26 23:04:26 EDT 2013


    [ https://issues.jboss.org/browse/GTNPORTAL-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799364#comment-12799364 ] 

Son Tran commented on GTNPORTAL-3247:
-------------------------------------

- IE8/9 might not encode url, it's still *'é'* instead of *%C3%A9*. Therefore portal threw exception when decoding character 'é'.

- I worked around by adding encodeURI(url) to eXo.js:
{code:javascript}
eXo.env.server.createPortalURL = function(targetComponentId, actionName, useAjax, params) {
  var url = eXo.env.server.portalURLTemplate.replace("{portal:componentId}", targetComponentId);
  url = url.replace("{portal:action}", actionName);
  
  if(params != null) {
  	var len = params.length ;
    for(var i = 0 ; i < len ; i++) {
      var paramName = encodeURIComponent(params[i].name);
      var paramValue = encodeURIComponent(params[i].value);
      url += "&" +  paramName + "=" + paramValue ;
    }
  }
  if(useAjax) url += "&ajaxRequest=true" ;
  url = encodeURI(url);
  return  url;
};
{code}
It worked. However, there's another bug when page executed ajaxRequest such as closing editor. The URL was decoded incorrectly to ISO-8859-1 instead of UTF-8. It means *%C3%A9* was decoded as *'é'* not *'é'*
                
> [IE8] Impossible to edit page containing accent character in its name
> ---------------------------------------------------------------------
>
>                 Key: GTNPORTAL-3247
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-3247
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Son Tran
>            Assignee: Son Tran
>            Priority: Minor
>              Labels: backlogs
>
> Using *IE8*, it's not possible to edit a page that contains an accented character in its name.
> Try to follow these steps to reproduce:
> - login to acme site.
> - Edit-> Page-> Add page
> -  put the name " accentué"
> - Save the page, it is created and accessible (navigate to the page)
> - Select Edit-> Page-> Layout => nothing happens.
> we can not edit the page .
> With chrome and  FF this works well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the gatein-issues mailing list