chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1144882 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java
Date Sun, 10 Jul 2011 15:46:24 GMT
Author: fmui
Date: Sun Jul 10 15:46:24 2011
New Revision: 1144882

URL: http://svn.apache.org/viewvc?rev=1144882&view=rev
Log:
Removed Content-Location header from query responses

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.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/atompub/DiscoveryService.java?rev=1144882&r1=1144881&r2=1144882&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/DiscoveryService.java
Sun Jul 10 15:46:24 2011
@@ -145,7 +145,13 @@ public class DiscoveryService {
 
         response.setStatus(statusCode);
         response.setContentType(Constants.MEDIATYPE_FEED);
-        response.setHeader("Content-Location", location.toString());
+
+        // The Content-Location header is optional (CMIS specification 3.7.2.1).
+        // Since it can cause problems with long query statements it is
+        // deactivated.
+        // response.setHeader("Content-Location", location.toString());
+
+        // The Location header is not optional (CMIS specification 3.7.2.1).
         response.setHeader("Location", location.toString());
 
         // write XML



Mime
View raw message