You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2017/09/19 19:20:42 UTC
svn commit: r1808933 -
/felix/trunk/http/api/src/main/java/org/osgi/service/http/runtime/dto/DTOConstants.java
Author: cziegeler
Date: Tue Sep 19 19:20:41 2017
New Revision: 1808933
URL: http://svn.apache.org/viewvc?rev=1808933&view=rev
Log:
[http whiteboard] Add new error constants for file permission errors
Modified:
felix/trunk/http/api/src/main/java/org/osgi/service/http/runtime/dto/DTOConstants.java
Modified: felix/trunk/http/api/src/main/java/org/osgi/service/http/runtime/dto/DTOConstants.java
URL: http://svn.apache.org/viewvc/felix/trunk/http/api/src/main/java/org/osgi/service/http/runtime/dto/DTOConstants.java?rev=1808933&r1=1808932&r2=1808933&view=diff
==============================================================================
--- felix/trunk/http/api/src/main/java/org/osgi/service/http/runtime/dto/DTOConstants.java (original)
+++ felix/trunk/http/api/src/main/java/org/osgi/service/http/runtime/dto/DTOConstants.java Tue Sep 19 19:20:41 2017
@@ -73,4 +73,40 @@ public final class DTOConstants {
* another servlet context.
*/
public static final int FAILURE_REASON_SERVICE_IN_USE = 7;
+
+ /**
+ * The servlet is not registered as it is configured to have multipart
+ * enabled, but the bundle containing the servlet has no write permission to
+ * the provided location for the uploaded files.
+ *
+ * @since 1.1
+ */
+ public static final int FAILURE_REASON_SERVLET_WRITE_TO_LOCATION_DENIED = 8;
+
+ /**
+ * The servlet is not registered as it is configured to have multipart
+ * enabled, but the bundle containing the servlet has no read permission to
+ * the provided location for the uploaded files.
+ *
+ * @since 1.1
+ */
+ public static final int FAILURE_REASON_SERVLET_READ_FROM_LOCATION_DENIED = 9;
+
+ /**
+ * The servlet is not registered as it is configured to have multipart
+ * enabled, but the whiteboard implementation has no write permission to the
+ * default location for the uploaded files.
+ *
+ * @since 1.1
+ */
+ public static final int FAILURE_REASON_WHITEBOARD_WRITE_TO_DEFAULT_DENIED = 10;
+
+ /**
+ * The servlet is not registered as it is configured to have multipart
+ * enabled, but the bundle containing the servlet has no read permission to
+ * the default location for the uploaded files.
+ *
+ * @since 1.1
+ */
+ public static final int FAILURE_REASON_SERVLET_READ_FROM_DEFAULT_DENIED = 11;
}