chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1664425 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
Date Thu, 05 Mar 2015 17:19:12 GMT
Author: fmui
Date: Thu Mar  5 17:19:12 2015
New Revision: 1664425

URL: http://svn.apache.org/r1664425
Log:
CMIS-893: Browser binding: repository URLs always require a cmisselector parameter

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java?rev=1664425&r1=1664424&r2=1664425&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
Thu Mar  5 17:19:12 2015
@@ -333,8 +333,8 @@ public class CmisBrowserBindingServlet e
 
                 // dispatch
                 if (callUrl == CallUrl.REPOSITORY) {
-                    if (selector == null) {
-                        selector = "";
+                    if (selector == null || selector.length() == 0) {
+                        throw new CmisNotSupportedException("No selector");
                     }
 
                     browserContext.setCallDetails(service, objectId, null, null);



Mime
View raw message