Changeset 30325

Show
Ignore:
Timestamp:
02/19/08 21:14:30 (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/trunk/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/tag/fn/DocumentModelFunctions.java

    r30255 r30325  
    131131    } 
    132132 
    133     private static String getDefaultView(DocumentModel doc) throws ClientException { 
     133    private static String getDefaultView(DocumentModel doc) 
     134            throws ClientException { 
    134135        String docType = doc.getType(); 
    135136 
     
    137138            return defaultViewCache.get(docType); 
    138139        } else { 
    139             org.nuxeo.ecm.platform.types.Type type = getTypeManager().getType(docType); 
     140            org.nuxeo.ecm.platform.types.Type type = getTypeManager().getType( 
     141                    docType); 
    140142            if (type == null) { 
    141143                throw new ClientException("Cannot get default view. Type '" 
     
    618620            // do not encode the nxedit:// part since URLEncoder will not handle 
    619621            // it correctly 
    620             String encodedUrlTail = URLEncoder.encode(queryParams, 
    621                     URL_ENCODE_CHARSET); 
    622             sb.append(encodedUrlTail); 
     622 
     623            // TODO: OG: disable URLEncoding for now since it breaks FF for some 
     624            // reason (more investigation required) 
     625            // queryParams = URLEncoder.encode(queryParams, URL_ENCODE_CHARSET); 
     626            sb.append(queryParams); 
    623627            return sb.toString(); 
    624628        } catch (Exception e) { 
     
    672676    private static String composeTailURL(HttpServletRequest request) { 
    673677        StringBuilder sb = new StringBuilder(); 
    674         sb.append(Manager.instance().getCurrentConversationId()); 
    675678        addQueryParameter(sb, Manager.instance().getConversationIdParameter(), 
    676679                Manager.instance().getCurrentConversationId(), false);