You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2002/06/24 13:23:37 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite ACLgrantWritePutColFile.xml ACLgrantWritePropPatchColFile.xml ACLgrantWritePostColFile.xml ACLgrantWriteMKCOLCol.xml ACLgrantWriteLockColFile.xml ACLgrantWriteDeleteColFile.xml ACLgrantReadPropFindColFile.xml ACLgrantReadHeadColFile.xml ACLgrantReadGetColFile.xml ACLdenyWriteUnlockColFile.xml ACLdenyWritePutColFile.xml ACLdenyWritePropPatchColFile.xml ACLdenyWritePostColFile.xml ACLdenyWriteMKCOLCol.xml ACLDenyWriteLockColFile.xml ACLdenyWriteDeleteColFile.xml ACLdenyReadPropFindColFile.xml ACLdenyReadHeadColFile.xml ACLdenyReadGetColFile.xml

juergen     2002/06/24 04:23:37

  Added:       testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite
                        ACLgrantWritePutColFile.xml
                        ACLgrantWritePropPatchColFile.xml
                        ACLgrantWritePostColFile.xml
                        ACLgrantWriteMKCOLCol.xml
                        ACLgrantWriteLockColFile.xml
                        ACLgrantWriteDeleteColFile.xml
                        ACLgrantReadPropFindColFile.xml
                        ACLgrantReadHeadColFile.xml
                        ACLgrantReadGetColFile.xml
                        ACLdenyWriteUnlockColFile.xml
                        ACLdenyWritePutColFile.xml
                        ACLdenyWritePropPatchColFile.xml
                        ACLdenyWritePostColFile.xml
                        ACLdenyWriteMKCOLCol.xml
                        ACLDenyWriteLockColFile.xml
                        ACLdenyWriteDeleteColFile.xml
                        ACLdenyReadPropFindColFile.xml
                        ACLdenyReadHeadColFile.xml
                        ACLdenyReadGetColFile.xml
  Log:
  New ACL test cases
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWritePutColFile.xml
  
  Index: ACLgrantWritePutColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Put file with write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) Put command attempted on child collection
  		</description>
  		
  		<expectedResult> Put command should return 201 Created </expectedResult>
  	</specification>
  	
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>	
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
  
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
  
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWritePropPatchColFile.xml
  
  Index: ACLgrantWritePropPatchColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Proppatch file with write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Proppatch command attempted on child file
  		5) Proppatch command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Proppatch commands should both return 207 Multi Status </expectedResult>
  	</specification>
  
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>	
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Content-Type: text/xml</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>Pragma: no-cache</header>
     <header>Connection: close</header>
     <body>&lt;?xml version="1.0" ?&gt;
     &lt;D:propertyupdate xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt;
     	&lt;D:remove&gt;
     	 &lt;D:prop&gt;
     	 	&lt;D:displayname/&gt;
     	 &lt;/D:prop&gt;
     	 &lt;/D:remove&gt;
     	&lt;/D:propertyupdate&gt;</body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi-Status</command>
     <header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
     <body varUsage="globalVariableCollection,globalVariableServerName">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
     &lt;d:multistatus xmlns:d="DAV" xmlns:Z="DAVxxxx:" &gt;
     &lt;d:response&gt;
     	&lt;d:href&gt;/%globalVariableServerName%/%globalVariableCollection%/test&lt;/d:href&gt;
     		 	
     		
     		&lt;d:propstat&gt;
     			&lt;d:prop&gt;
     				&lt;d:displayname/&gt;
     			&lt;/d:prop&gt;
     		&lt;d:status&gt;HTTP/1.1 200 OK&lt;/d:status&gt;
     		&lt;/d:propstat&gt;
     	
     	&lt;/d:response&gt;
     	&lt;/d:multistatus&gt;</body>
    </response>
   </step>
   
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Content-Type: text/xml</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>Pragma: no-cache</header>
     <header>Connection: close</header>
     <body>&lt;?xml version="1.0" ?&gt;
     &lt;D:propertyupdate xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt;
     	&lt;D:remove&gt;
     	 &lt;D:prop&gt;
     	 	&lt;D:displayname/&gt;
     	 &lt;/D:prop&gt;
     	 &lt;/D:remove&gt;
     	&lt;/D:propertyupdate&gt;</body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi-Status</command>
     <header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
     <body varUsage="globalVariableCollection,globalVariableServerName">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
     &lt;d:multistatus xmlns:d="DAV" xmlns:Z="DAVxxxx:" &gt;
     &lt;d:response&gt;
     	&lt;d:href&gt;/%globalVariableServerName%/%globalVariableCollection%/test/test.xml&lt;/d:href&gt;
     		 	
     		
     		&lt;d:propstat&gt;
     			&lt;d:prop&gt;
     				&lt;d:displayname/&gt;
     			&lt;/d:prop&gt;
     		&lt;d:status&gt;HTTP/1.1 200 OK&lt;/d:status&gt;
     		&lt;/d:propstat&gt;
     	
     	&lt;/d:response&gt;
     	&lt;/d:multistatus&gt;</body>
    </response>
   </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWritePostColFile.xml
  
  Index: ACLgrantWritePostColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to post file with write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) Post command attempted on child collection
  		</description>
  		
  		<expectedResult> The Post command should return 403 Forbidden </expectedResult>
  	</specification>
  
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>	
  
  
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
               <step>
            <request>
               <command varUsage="globalVariableCollection,globalVariableServerName">POST  /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
        	     <header>Content-type: text/xml; charset="utf-8"</header>
        	     <header>Accept-Language: en-us</header>
               <header>Connection: Keep-Alive</header>
        	     <header>Translate: f</header>
     	     <body fileReference="../../../../contentDirectory/validXML.xm1">
               </body>
     	  </request>
     	  <response>
        	     <command>HTTP/1.1 201 Created</command>
        	     <body />
     	  </response>
         </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWriteMKCOLCol.xml
  
  Index: ACLgrantWriteMKCOLCol.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to MKCOL with write privilege </abstract>
  		
  		<description>
  		1) MKCOL command which creates a child collection (/test)
  		2) ACL command which denies read access to the user %user%
  		3) MKCOL command attempted on child collection
  		</description>
  		
  		<expectedResult> The MKCOL command should return 201 Created </expectedResult>
  	</specification>
  	
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
  	
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>	
  
     <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
  
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWriteLockColFile.xml
  
  Index: ACLgrantWriteLockColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to lock file with write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Lock command attempted on child file
  		5) Lock command attempted on child collection
  		</description>
  		
  		<expectedResult> Two lock commands should both return 200 OK </expectedResult>
  	</specification>
  	
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
     	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header>Timeout: Second-604800</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
     			<header>Content-type: text/xml</header>
     			<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
    		</request>
    		<response>
     			<command>HTTP/1.0 200 OK</command>
     			<body/>
    		</response>
    	</step>
    	
    	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header varUsage="automaticVariable1">Lock-Token: %automaticVariable1%</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
   	
    	
    	
    	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header>Timeout: Second-604800</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
     			<header>Content-type: text/xml</header>
     			<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
    		</request>
    		<response>
     			<command>HTTP/1.0 200 OK</command>
     			<body/>
    		</response>
    	</step>
    	
    	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header varUsage="automaticVariable2">Lock-Token: %automaticVariable2%</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWriteDeleteColFile.xml
  
  Index: ACLgrantWriteDeleteColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to delete file with write privilege </abstract>
  		
  		<description>
  		1) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Delete command attempted on child file
  		5) Delete command attempted on child collection
  		</description>
  		
  		<expectedResult> Two delete commands should both return 204 No Content </expectedResult>
  	</specification>
  
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
      <step>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
      <step>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantReadPropFindColFile.xml
  
  Index: ACLgrantReadPropFindColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Propfind file with read privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Propfind command attempted on child file
  		5) Propfind command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Propfind commands should both return 207 Multi Status </expectedResult>
  	</specification>
  	
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
  	    <step>
   	      <request>
     	         <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     		 <header>Accept-Language: en-us</header>
     		 <header>Content-Type: text/xml</header>
     		 <header>Translate: f</header>
     		 <header>Depth: 1</header>
     		 <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     		 <header>Connection: Keep-Alive</header>
     		 <body><![CDATA[<?xml version="1.0" ?>
     		    <D:propfind xmlns:D="DAV:">
        		       <D:prop>
                            <D:acl />
                         </D:prop>
                      </D:propfind>]]>
     		 </body>
    	      </request>
    	      <response>
     	         <command>HTTP/1.0 207 Multi Status</command>
     		 <header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
      		 <body varUsage="globalVariableCollection,userNumber,globalVariableServerName">
                   </body>
      		 </response>
   	   </step>
   	   
   	    	     	   <step>
   	      <request>
     	         <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     		 <header>Accept-Language: en-us</header>
     		 <header>Content-Type: text/xml</header>
     		 <header>Translate: f</header>
     		 <header>Depth: 1</header>
     		 <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     		 <header>Connection: Keep-Alive</header>
    	      </request>
    	      <response>
     	         <command>HTTP/1.0 207 Multi Status</command>
     		 <header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
      		 <body varUsage="globalVariableCollection,userNumber,globalVariableServerName">
                   </body>
      		 </response>
   	   </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantReadHeadColFile.xml
  
  Index: ACLgrantReadHeadColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to head file with read privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Head command attempted on child file
  		5) Head command attempted on child collection
  		</description>
  		
  		<expectedResult> Two head commands should both return 200 OK </expectedResult>
  	</specification>
  	
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
        <step>
            <request>
               <command varUsage="globalVariableCollection,globalVariableServerName">HEAD  /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
        	     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
        	     <header>Accept-Language: en-us</header>
               <header>Connection: Keep-Alive</header>
        	     <header>Translate: f</header>
        	     <body />
     	  </request>
     	  <response>
        	     <command>HTTP/1.1 200 OK</command>
        	     <body />
     	  </response>
         </step>
         
               <step>
            <request>
               <command varUsage="globalVariableCollection,globalVariableServerName">HEAD  /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
        	     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
        	     <header>Accept-Language: en-us</header>
               <header>Connection: Keep-Alive</header>
        	     <header>Translate: f</header>
        	     <body />
     	  </request>
     	  <response>
        	     <command>HTTP/1.1 200 OK</command>
        	     <body />
     	  </response>
         </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantReadGetColFile.xml
  
  Index: ACLgrantReadGetColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Get file with read privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Get command attempted on child file
  		5) Get command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Get commands should both return 200 OK </expectedResult>
  	</specification>
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
   	 <step>
            <request>
               <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
      	     <header>Accept: */*</header>
     	     <header>Accept-Language: en-us</header>
     	     <header>Accept-Encoding: gzip, deflate</header>
     	     <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)</header>
     	     <header>Connection: Keep-Alive</header>
    	  </request>
    	  <response>
     	     <command>HTTP/1.0 200 OK</command>
     	     <body />
    	  </response>
         </step>
         
          <step>
            <request>
               <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
      	     <header>Accept: */*</header>
     	     <header>Accept-Language: en-us</header>
     	     <header>Accept-Encoding: gzip, deflate</header>
     	     <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)</header>
     	     <header>Connection: Keep-Alive</header>
    	  </request>
    	  <response>
     	     <command>HTTP/1.0 200 OK</command>
     	     <body />
    	  </response>
         </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyWriteUnlockColFile.xml
  
  Index: ACLdenyWriteUnlockColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Unlock file with no write privilege </abstract>
  		
  		<description>
  		1) MKCOL command which creates a child collection (/test)
  		2) PUT command which creates a child file (/test/test.xml)
  		3) Lock command attempted on child file
  		4) ACL command which denies write access to the user %user%
  		5) Unlock command attempted on child file
  		</description>
  		
  		<expectedResult> Unlock command should be unable to unlock the child file </expectedResult>
  	</specification>
  	
    
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
     <step>
      <user varUsage="user">2%user%</user>
      <password varUsage="user">2%user%</password>
    	<request>
     		<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     		<header>Connection: Keep-Alive, TE</header>
     		<header>TE: trailers, deflate, gzip, compress</header>
     		<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     		<header>Timeout: Second-604800</header>
     		<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
     		<header>Content-type: text/xml</header>
     		<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
    	</request>
    	<response>
     		<command>HTTP/1.0 200 OK</command>
     		<body/>
    	</response>
    </step>
   
   
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header varUsage="automaticVariable1">Lock-Token: %automaticVariable1%</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
    
    
         
    <cleanup>
    
  
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyWritePutColFile.xml
  
  Index: ACLdenyWritePutColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Put file without write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) Put command attempted on child collection
  		</description>
  		
  		<expectedResult> Put command should return 403 Forbidden </expectedResult>
  	</specification>
  	
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
  
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 403 Forbidden</command>
    </response>
   </step>
   
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyWritePropPatchColFile.xml
  
  Index: ACLdenyWritePropPatchColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Proppatch file without write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Proppatch command attempted on child file
  		5) Proppatch command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Proppatch commands should both return 403 Forbidden </expectedResult>
  	</specification>
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Content-Type: text/xml</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>Pragma: no-cache</header>
     <header>Connection: close</header>
     <body>&lt;?xml version="1.0" ?&gt;
     &lt;D:propertyupdate xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt;
     	&lt;D:remove&gt;
     	 &lt;D:prop&gt;
     	 	&lt;D:displayname/&gt;
     	 &lt;/D:prop&gt;
     	 &lt;/D:remove&gt;
     	&lt;/D:propertyupdate&gt;</body>
    </request>
    <response>
       <command>HTTP/1.0 403 Forbidden</command>
       <body/>
    </response>
   </step>
   
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Content-Type: text/xml</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>Pragma: no-cache</header>
     <header>Connection: close</header>
     <body>&lt;?xml version="1.0" ?&gt;
     &lt;D:propertyupdate xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt;
     	&lt;D:remove&gt;
     	 &lt;D:prop&gt;
     	 	&lt;D:displayname/&gt;
     	 &lt;/D:prop&gt;
     	 &lt;/D:remove&gt;
     	&lt;/D:propertyupdate&gt;</body>
    </request>
    <response>
       <command>HTTP/1.0 403 Forbidden</command>
       <body/>
    </response>
   </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyWritePostColFile.xml
  
  Index: ACLdenyWritePostColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to post file without write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) Post command attempted on child collection
  		</description>
  		
  		<expectedResult> The Post command should return 403 Forbidden </expectedResult>
  	</specification>
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
      
               <step>
            <request>
               <command varUsage="globalVariableCollection,globalVariableServerName">POST  /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
        	     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
        	     <header>Accept-Language: en-us</header>
               <header>Connection: Keep-Alive</header>
        	     <header>Translate: f</header>
     	     <body fileReference="../../../../contentDirectory/validXML.xm1">
               </body>
     	  </request>
     	  <response>
        	     <command>HTTP/1.1 403 Forbidden</command>
        	     <body />
     	  </response>
         </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:write /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyWriteMKCOLCol.xml
  
  Index: ACLdenyWriteMKCOLCol.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to MKCOL without write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) MKCOL command attempted on child collection
  		</description>
  		
  		<expectedResult> The MKCOL command should return 403 Forbidden </expectedResult>
  	</specification>
  	
  
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
  
     <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 403 Forbidden</command>
    </response>
   </step>
   
  
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLDenyWriteLockColFile.xml
  
  Index: ACLDenyWriteLockColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Lock file without write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Lock command attempted on child file
  		5) Lock command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Lock commands should both return 403 Forbidden </expectedResult>
  	</specification>
  
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
     	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header>Timeout: Second-604800</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
     			<header>Content-type: text/xml</header>
     			<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
    		</request>
    		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     			<body/>
    		</response>
    	</step>
    	
    	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header varUsage="automaticVariable3">Lock-Token: %automaticVariable3%</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
   	
    	
    	
    	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header>Timeout: Second-604800</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
     			<header>Content-type: text/xml</header>
     			<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
    		</request>
    		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     			<body/>
    		</response>
    	</step>
    	
    	<step>
    		<request>
     			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     			<header>Connection: Keep-Alive, TE</header>
     			<header>TE: trailers, deflate, gzip, compress</header>
     			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
     			<header varUsage="automaticVariable3">Lock-Token: %automaticVariable3%</header>
     			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyWriteDeleteColFile.xml
  
  Index: ACLdenyWriteDeleteColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to delete file with no write privilege </abstract>
  		
  		<description>
  		1) ACL command which denies write access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Delete command attempted on child file
  		5) Delete command attempted on child collection
  		</description>
  		
  		<expectedResult> Two delete commands should both return 403 Forbidden </expectedResult>
  	</specification>
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
      <step>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 403 Forbidden</command>
    </response>
   </step>
   
      <step>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 403 Forbidden</command>
    </response>
   </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyReadPropFindColFile.xml
  
  Index: ACLdenyReadPropFindColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Propfind file without read privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Propfind command attempted on child file
  		5) Propfind command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Propfind commands should both return 403 Forbidden </expectedResult>
  	</specification>
  
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
  	    <step>
   	      <request>
     	         <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     		 <header>Accept-Language: en-us</header>
     		 <header>Content-Type: text/xml</header>
     		 <header>Translate: f</header>
     		 <header>Depth: 1</header>
     		 <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     		 <header>Connection: Keep-Alive</header>
     		 <body><![CDATA[<?xml version="1.0" ?>
     		    <D:propfind xmlns:D="DAV:">
        		       <D:prop>
                            <D:acl />
                         </D:prop>
                      </D:propfind>]]>
     		 </body>
    	      </request>
    	      <response>
     	         <command>HTTP/1.0 403 Forbidden</command>
     		 <header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
      		 <body varUsage="globalVariableCollection,userNumber,globalVariableServerName">
                   </body>
      		 </response>
   	   </step>
   	   
   	    	     	   <step>
   	      <request>
     	         <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     		 <header>Accept-Language: en-us</header>
     		 <header>Content-Type: text/xml</header>
     		 <header>Translate: f</header>
     		 <header>Depth: 1</header>
     		 <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     		 <header>Connection: Keep-Alive</header>
    	      </request>
    	      <response>
     	         <command>HTTP/1.0 403 Forbidden</command>
     		 <header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
      		 <body varUsage="globalVariableCollection,userNumber,globalVariableServerName">
                   </body>
      		 </response>
   	   </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyReadHeadColFile.xml
  
  Index: ACLdenyReadHeadColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to head file without read privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Head command attempted on child file
  		5) Head command attempted on child collection
  		</description>
  		
  		<expectedResult> Two head commands should both return 403 Forbidden </expectedResult>
  	</specification>
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
        <step>
            <request>
               <command varUsage="globalVariableCollection,globalVariableServerName">HEAD  /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
        	     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
        	     <header>Accept-Language: en-us</header>
               <header>Connection: Keep-Alive</header>
        	     <header>Translate: f</header>
        	     <body />
     	  </request>
     	  <response>
        	     <command>HTTP/1.1 403 Forbidden</command>
        	     <body />
     	  </response>
         </step>
         
               <step>
            <request>
               <command varUsage="globalVariableCollection,globalVariableServerName">HEAD  /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
        	     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
        	     <header>Accept-Language: en-us</header>
               <header>Connection: Keep-Alive</header>
        	     <header>Translate: f</header>
        	     <body />
     	  </request>
     	  <response>
        	     <command>HTTP/1.1 403 Forbidden</command>
        	     <body />
     	  </response>
         </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLdenyReadGetColFile.xml
  
  Index: ACLdenyReadGetColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> Test to check if possible to Get file without read privilege </abstract>
  		
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Get command attempted on child file
  		5) Get command attempted on child collection
  		</description>
  		
  		<expectedResult> Two Get commands should both return 403 Forbidden </expectedResult>
  	</specification>
  	
  
  
  <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>/administration/security/users/%host%/%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
     <header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   <step>
   <user varUsage="user">2%user%</user>
   <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
     <body fileReference="../../../../contentDirectory/validXML.xm1">
     </body>
    </request>
    <response>
     <command>HTTP/1.0 201 Created</command>
    </response>
   </step>
   
   	 <step>
            <request>
               <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
      	     <header>Accept: */*</header>
     	     <header>Accept-Language: en-us</header>
     	     <header>Accept-Encoding: gzip, deflate</header>
     	     <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)</header>
     	     <header>Connection: Keep-Alive</header>
    	  </request>
    	  <response>
     	     <command>HTTP/1.0 403 Forbidden</command>
     	     <body />
    	  </response>
         </step>
         
          <step>
            <request>
               <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
      	     <header>Accept: */*</header>
     	     <header>Accept-Language: en-us</header>
     	     <header>Accept-Encoding: gzip, deflate</header>
     	     <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)</header>
     	     <header>Connection: Keep-Alive</header>
    	  </request>
    	  <response>
     	     <command>HTTP/1.0 403 Forbidden</command>
     	     <body />
    	  </response>
         </step>
         
    <cleanup>
    
    <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
     <header>Content-Type: text/xml; charset=utf-8</header>  
     <header>User-Agent: Jakarta HTTP Client/1.0</header>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:all /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
     <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     <header>Accept-Language: en-us</header>
     <header>Destroy: NoUndelete</header>
     <header>Translate: f</header>
     <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     <header>Connection: Keep-Alive</header>
    </request>
    <response>
     <command>HTTP/1.0 204 No Content</command>
     <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
     <header>Content-Language: en</header>
     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    </response>
   </step>
   
   </cleanup>
  
  </test>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>