ignore case when examining the file extension for guessing the mime-type
[pithos] / webdav / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app>
3         <servlet>
4                                 <servlet-name>Webdav</servlet-name>
5                         <servlet-class>gr.ebs.gss.server.webdav.Webdav</servlet-class>
6                                 <init-param>
7                                         <param-name>input</param-name>
8                                         <param-value>4096</param-value>
9                                 </init-param>
10                                 <init-param>
11                                         <param-name>output</param-name>
12                                         <param-value>4096</param-value>
13                                 </init-param>
14                 </servlet>
15
16                 <servlet-mapping>
17                                 <servlet-name>Webdav</servlet-name>
18                                 <url-pattern>/*</url-pattern>
19                 </servlet-mapping>
20                 
21                 <security-constraint>
22                 <!-- Protect /, but leave OPTIONS unauthenticated to get around Windows client bug with DIGEST authentication -->
23                         <web-resource-collection>
24                                 <web-resource-name>GSS</web-resource-name>
25                                 <description>GSS WebDAV</description>
26                                 <url-pattern>/</url-pattern>
27                                 <http-method>HEAD</http-method>
28                                 <http-method>GET</http-method>
29                                 <http-method>POST</http-method>
30                                 <http-method>PUT</http-method>
31                                 <http-method>DELETE</http-method>
32                                 <http-method>PROPFIND</http-method>
33                                 <http-method>PROPPATCH</http-method>
34                                 <http-method>MKCOL</http-method>
35                                 <http-method>COPY</http-method>
36                                 <http-method>MOVE</http-method>
37                                 <http-method>LOCK</http-method>
38                                 <http-method>UNLOCK</http-method>
39                         </web-resource-collection>
40                         <auth-constraint>
41                                 <role-name>simpleUser</role-name>
42                         </auth-constraint>
43                         <user-data-constraint>
44                                 <description>no description</description>
45                                 <transport-guarantee>NONE</transport-guarantee>
46                         </user-data-constraint>
47                 </security-constraint>
48                 
49                 <security-constraint>
50                 <!-- Protect everything for every other path -->
51                         <web-resource-collection>
52                                 <web-resource-name>GSS</web-resource-name>
53                                 <description>GSS WebDAV</description>
54                                 <url-pattern>/*</url-pattern>
55                         </web-resource-collection>
56                         <auth-constraint>
57                                 <role-name>simpleUser</role-name>
58                         </auth-constraint>
59                         <user-data-constraint>
60                                 <description>no description</description>
61                                 <transport-guarantee>NONE</transport-guarantee>
62                         </user-data-constraint>
63                 </security-constraint>
64                 
65                 <login-config>
66                         <auth-method>DIGEST</auth-method>
67                         <realm-name>Pithos WebDAV</realm-name>
68                 </login-config>
69
70                 <security-role>
71                         <description>A plain WebDAV user</description>
72                         <role-name>simpleUser</role-name>
73                 </security-role>
74                 
75 </web-app>