sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1780096 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
Date Tue, 24 Jan 2017 17:35:35 GMT
Author: justin
Date: Tue Jan 24 17:35:35 2017
New Revision: 1780096

URL: http://svn.apache.org/viewvc?rev=1780096&view=rev
Log:
SLING-6187 - using more generic error response code

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java?rev=1780096&r1=1780095&r2=1780096&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java
Tue Jan 24 17:35:35 2017
@@ -121,7 +121,7 @@ public abstract class AbstractPostOperat
             if (modificationSourcesContainingPostfix.size() > 0) {
                 for (final Map.Entry<String, String> sourceToCheck : modificationSourcesContainingPostfix.entrySet())
{
                     if (allModificationSources.contains(sourceToCheck.getKey())) {
-                        response.setStatus(HttpServletResponse.SC_EXPECTATION_FAILED,
+                        response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                                 "Postfix-containing path " + sourceToCheck.getValue() +
                                 " contained in the modification list. Check configuration.");
                         return;



Mime
View raw message