You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/05/01 22:29:41 UTC

svn commit: r1478177 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings-classes/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/BrowserBindingUtils.java

Author: fmui
Date: Wed May  1 20:29:41 2013
New Revision: 1478177

URL: http://svn.apache.org/r1478177
Log:
Browser binding server: fixed URL compilation

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings-classes/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/BrowserBindingUtils.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings-classes/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/BrowserBindingUtils.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings-classes/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/BrowserBindingUtils.java?rev=1478177&r1=1478176&r2=1478177&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings-classes/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/BrowserBindingUtils.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings-classes/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/BrowserBindingUtils.java Wed May  1 20:29:41 2013
@@ -113,12 +113,13 @@ public final class BrowserBindingUtils {
 
         url.addPath(request.getContextPath());
         url.addPath(request.getServletPath());
+        url.addPathSegment(repositoryId);
 
         return url;
     }
 
     public static UrlBuilder compileRepositoryUrl(HttpServletRequest request, String repositoryId) {
-        return compileBaseUrl(request, repositoryId).addPathSegment(repositoryId);
+        return compileBaseUrl(request, repositoryId);
     }
 
     public static UrlBuilder compileRootUrl(HttpServletRequest request, String repositoryId) {