You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:50:11 UTC

[sling-org-apache-sling-jcr-webdav] 08/31: SLING-639 Don't call the base class service method if a redirect or error has already been sent. Thanks Marc Speck for reporting.

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.webdav-2.0.6-incubator
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-webdav.git

commit e4018969f6d1baa475a6a620cda9f5fa4253684e
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Tue Sep 2 20:45:27 2008 +0000

    SLING-639 Don't call the base class service method if a redirect
    or error has already been sent. Thanks Marc Speck for reporting.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/jcr/webdav@691374 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/jcr/webdav/impl/servlets/SimpleWebDavServlet.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/jcr/webdav/impl/servlets/SimpleWebDavServlet.java b/src/main/java/org/apache/sling/jcr/webdav/impl/servlets/SimpleWebDavServlet.java
index 4cd1947..3392698 100644
--- a/src/main/java/org/apache/sling/jcr/webdav/impl/servlets/SimpleWebDavServlet.java
+++ b/src/main/java/org/apache/sling/jcr/webdav/impl/servlets/SimpleWebDavServlet.java
@@ -85,9 +85,12 @@ public class SimpleWebDavServlet extends AbstractSlingWebDavServlet {
                 uri += slingRepo.getDefaultWorkspace();
                 response.sendRedirect(uri);
             }
+            
+        } else {
+        
+            super.service(request, response);
         }
-
-        super.service(request, response);
+        
     }
 
     // ---------- SCR integration ----------------------------------------------

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.