Changeset 30321

Show
Ignore:
Timestamp:
02/19/08 21:09:08 (9 months ago)
Author:
ogrisel
Message:

NXP-2074: temporarly disable URLEncoding of the query parameters (find the right to do it in NXP-2092)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/tag/fn/DocumentModelFunctions.java

    r30239 r30321  
    129129    } 
    130130 
    131     private static String getDefaultView(DocumentModel doc) throws ClientException { 
     131    private static String getDefaultView(DocumentModel doc) 
     132            throws ClientException { 
    132133        String docType = doc.getType(); 
    133134 
     
    135136            return defaultViewCache.get(docType); 
    136137        } else { 
    137             org.nuxeo.ecm.platform.types.Type type = getTypeManager().getType(docType); 
     138            org.nuxeo.ecm.platform.types.Type type = getTypeManager().getType( 
     139                    docType); 
    138140            if (type == null) { 
    139141                throw new ClientException("Cannot get default view. Type '" 
     
    616618            // do not encode the nxedit:// part since URLEncoder will not handle 
    617619            // it correctly 
    618             String encodedUrlTail = URLEncoder.encode(queryParams, 
    619                     URL_ENCODE_CHARSET); 
    620             sb.append(encodedUrlTail); 
     620 
     621            // TODO: OG: disable URLEncoding for now since it breaks FF for some 
     622            // reason (more investigation required) 
     623            // queryParams = URLEncoder.encode(queryParams, URL_ENCODE_CHARSET); 
     624            sb.append(queryParams); 
    621625            return sb.toString(); 
    622626        } catch (Exception e) { 
     
    670674    private static String composeTailURL(HttpServletRequest request) { 
    671675        StringBuilder sb = new StringBuilder(); 
    672         sb.append(Manager.instance().getCurrentConversationId()); 
    673676        addQueryParameter(sb, Manager.instance().getConversationIdParameter(), 
    674677                Manager.instance().getCurrentConversationId(), false);