juergen     2002/07/11 05:50:29

  Added:       testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Read
                        ACLdenyReadACLNoInheritance2Head4Propfind2Get3Col.xm1
                        ACLdenyReadAclNoInheritanceHead2PropfindGetCol.xm1
                        ACLdenyReadAclNoInheritanceHead2PropfindGetFile.xm1
                        ACLdenyReadNoInheritance2Head4Propfind2Get3Col.xm1
                        ACLdenyReadNoInheritanceHead2PropfindGetCol.xm1
                        ACLdenyReadNoInheritanceHead2PropfindGetFile.xm1
                        ACLdenyReadNoInheritanceHead2PropfindGetFileColFile.xm1
  Log:
  no message
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Read/ACLdenyReadACLNoInheritance2Head4Propfind2Get3Col.xm1
  
  Index: ACLdenyReadACLNoInheritance2Head4Propfind2Get3Col.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny-acl read privilege with no 
inheritance affects child collection. </abstract>
                
                <description>
                1) MKCOL command creates 3 collections (test1/test2/test3)
                2) PUT command creates a file in the collection test3
                3) ACL command which denys read-acl access to the user %user% in 
collection test2
                5) Head command attempted on file
                6) PropFind on Displayname attempted on file
                7) PropFind DAV:acl attempted on file
                8) Get command attempted on file
                10) Head command attempted on test3
                11) PropFind on Displayname attempted on test3
                12) PropFind DAV:acl attempted on test3
                13) Get command attempted on test3
                </description>
                
                <expectedResult> All Commands should complete succesfully   
</expectedResult>
        </specification>
        
   
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test1 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">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2 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">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
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%/test1/test2/test3/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>
     <header>Date: Wed, 14 Mar 2001 15:45:51 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%/test1/test2 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-acl /></D:privilege>
              </D:deny>
           <D:inherited>
              <D:href>false</D:href>
           </D:inherited>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
  
         
        <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
HTTP/1.1</command>
                 <header>Accept-Language: en-us</header>
                 <header>Content-Type: text/xml</header>
                 <header>Translate: f</header>
                 <header>Depth: 0</header>
                 <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
                 <header>Connection: Keep-Alive</header>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test3&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </response>
           </step>
           
                           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                 <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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      
<href>/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/test.xml</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
                 </response>
           </step>
           
         <step>
            <request>
               <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
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,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></propfind>]]></body>
              </request>
              <response>
                 <command>HTTP/1.0 207 OK</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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/test.xml&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test.xml&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </response>
           </step>
           
                           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                 <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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      
<href>/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/test.xml</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
                 </response>
           </step>
           
         <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
             <header>Content-Type: text/xml</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 fileReference="../../../../contentDirectory/ValidXMLget.xm1">
             </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%/test1 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/Read/ACLdenyReadAclNoInheritanceHead2PropfindGetCol.xm1
  
  Index: ACLdenyReadAclNoInheritanceHead2PropfindGetCol.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny read-acl privilege without 
inheritance works. </abstract>
                
                <description>
                1) ACL command which denys read access to the user %user% on a 
collection
                2) MKCOL command creates a child directory to the collection
                3) Head command attempted on child
                4) PropFind on Displayname attempted on child
                5) PropFind DAV:acl attempted on child
                6) Get command attempted on child
                </description>
                
                <expectedResult> Child should not inherit the deny read-acl privilege 
so Head, the two PropFinds and the Get should all complete succesfully 
</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-acl/></D:privilege>
              </D:deny>
              <D:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </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,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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%/test</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
                 </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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </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" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</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/Read/ACLdenyReadAclNoInheritanceHead2PropfindGetFile.xm1
  
  Index: ACLdenyReadAclNoInheritanceHead2PropfindGetFile.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny read-acl privilege without 
inheritance works. </abstract>
                
                <description>
                1) ACL command which denys read access to the user %user% on a 
collection
                2) PUT command creates a child file to the collection
                3) Head command attempted on child
                4) PropFind on Displayname attempted on child
                5) PropFind DAV:acl attempted on child
                6) Get command attempted on child
                </description>
                
                <expectedResult> Child should not inherit the deny read-acl privilege 
so Head, the two PropFinds and the Get should all complete succesfully 
</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-acl/></D:privilege>
              </D:deny>
              <D:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </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">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>
     <header>Date: Wed, 14 Mar 2001 15:45:51 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,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/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>
                 <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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
                 </response>
           </step>
           
        <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/ 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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/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>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></propfind>]]></body>
              </request>
              <response>
                 <command>HTTP/1.0 207 OK</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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test.xml&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test.xml&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </response>
           </step>
           
                  <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/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>
             <header>Content-Type: text/xml</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 fileReference="../../../../contentDirectory/ValidXMLget.xm1">
             </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.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>
   
   </cleanup>
  
  
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Read/ACLdenyReadNoInheritance2Head4Propfind2Get3Col.xm1
  
  Index: ACLdenyReadNoInheritance2Head4Propfind2Get3Col.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny read privilege with no inheritance 
affects child collection. </abstract>
                
                <description>
                1) MKCOL command creates 3 collections (test1/test2/test3)
                2) PUT command creates a file in the collection test3
                3) ACL command which denies read access to the user %user% in 
collection test2
                5) Head command attempted on file
                6) PropFind on Displayname attempted on file
                7) PropFind DAV:acl attempted on file
                8) Get command attempted on file
                10) Head command attempted on test3
                11) PropFind on Displayname attempted on test3
                12) PropFind DAV:acl attempted on test3
                13) Get command attempted on test3
                </description>
                
                <expectedResult> All Commands should complete succesfully   
</expectedResult>
        </specification>
         
   <step>
  <user varUsage="user">2%user%</user>
  <password varUsage="user">2%user%</password>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test1 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">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2 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">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
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%/test1/test2/test3/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>
     <header>Date: Wed, 14 Mar 2001 15:45:51 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%/test1/test2 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:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
        <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
HTTP/1.1</command>
                 <header>Accept-Language: en-us</header>
                 <header>Content-Type: text/xml</header>
                 <header>Translate: f</header>
                 <header>Depth: 0</header>
                 <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
                 <header>Connection: Keep-Alive</header>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;
                 &lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; &gt;
                    &lt;response&gt;
                       
&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3&lt;/href&gt;
                       &lt;propstat&gt;
                          &lt;prop&gt;
                             &lt;displayname&gt;test3&lt;/displayname&gt;
                          &lt;/prop&gt;
                          &lt;status&gt;HTTP/1.1 200 OK&lt;/status&gt;
                       &lt;/propstat&gt;
                    &lt;/response&gt;
                 &lt;/multistatus&gt;
                 </body>
              </response>
           </step>
           
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/test.xml 
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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:acl />
         </D:prop>
      </D:propfind>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <header>Content-Type: text/xml; charset=utf-8</header>
     <body 
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>/%globalVariableServerName%/sectest/test1/test2/test3/test.xml</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <all />
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
            </ace>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
     </body>
    </response>
   </step>
           
         <step>
            <request>
               <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3 
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,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></propfind>]]></body>
              </request>
              <response>
                 <command>HTTP/1.0 207 OK</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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/test.xml&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test.xml&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </response>
           </step>
           
                           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
                 <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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      
<href>/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/test.xml</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
                 </response>
           </step>
           
         <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test1/test2/test3/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>
             <header>Content-Type: text/xml</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 fileReference="../../../../contentDirectory/ValidXMLget.xm1">
             </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%/test1 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/Read/ACLdenyReadNoInheritanceHead2PropfindGetCol.xm1
  
  Index: ACLdenyReadNoInheritanceHead2PropfindGetCol.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny read privilege without inheritance 
works. </abstract>
                
                <description>
                1) ACL command which denys read access to the user %user% on a 
collection
                2) MKCOL command creates a child directory to the collection
                4) Head command attempted on child
                5) PropFind on Displayname attempted on child
                6) PropFind DAV:acl attempted on child
                7) Get command attempted on child
                </description>
                
                <expectedResult> Child should not inherit the deny read privilege so 
Head, the two PropFinds and the Get should all complete succesfully </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:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </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">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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </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" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%/test</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </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>
    <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/Read/ACLdenyReadNoInheritanceHead2PropfindGetFile.xm1
  
  Index: ACLdenyReadNoInheritanceHead2PropfindGetFile.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny read privilege without inheritance 
works. </abstract>
                
                <description>
                1) ACL command which denys read access to the user test on a file
                2) MKCOL command creates a child file to the collection
                3) Head command attempted on child
                4) PropFind on Displayname attempted on child
                5) PropFind DAV:acl attempted on child
                6) Get command attempted on child
                </description>
                
                <expectedResult> Child should not inherit the deny read privilege so 
Head, the two PropFinds and the Get should all complete succesfully </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:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </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">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>
     <header>Date: Wed, 14 Mar 2001 15:45:51 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">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/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>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></propfind>]]></body>
              </request>
              <response>
                 <command>HTTP/1.0 207 OK</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">&lt;?xml 
version="1.0" encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test.xml&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test.xml&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </response>
           </step>
           
                           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/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>
                 <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"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
                 <multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/";>
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
                 </response>
           </step>
           
         <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/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>
             <header>Content-Type: text/xml</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 fileReference="../../../../contentDirectory/ValidXMLget.xm1">
             </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>
    <request>
     <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/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>
   
   </cleanup>
  
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Read/ACLdenyReadNoInheritanceHead2PropfindGetFileColFile.xm1
  
  Index: ACLdenyReadNoInheritanceHead2PropfindGetFileColFile.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if granting Read Privilege with no 
inheritance doesnt effect the child. </abstract>
                
                <description>
                1) ACL command which denys read access to the user %user% on a 
collection
                2) PUT command creates a child file to the collection
                3) ACL command which denys read access to the user %user% on a the 
child file
                4) ACL command which grants read access to the user %user% on a 
collection
                5) Get command attempted on child
                6) PropFind on Displayname attempted on child
                7) PropFind DAV:acl attempted on child
  
                </description>
                
                <expectedResult> Get and the two propfinds 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:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </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">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>
     <header>Date: Wed, 14 Mar 2001 15:45:51 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.xml 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:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </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">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:grant>
                 <D:privilege><D:read /></D:privilege>
              </D:grant>
              <D:inherited>
                 <D:href>false</D:href>
              </D:inherited>
           </D:ace>
  
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
   
           <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/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>
                 <body><![CDATA[<?xml version="1.0" ?><propfind 
xmlns="DAV:"><prop><displayname/></prop></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,globalVariableServerName">&lt;?xml version="1.0" 
encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test.xml&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/multistatus&gt;</body>
              </response>
           </step>
           
         <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/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>
                     <header>Last-Modified: 2001-03-22T17:20:13Z</header>
                     <body />
          </response>
         </step>
         
          <step>
            <request>
               <command 
varUsage="globalVariableCollection,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/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>
             <header>Content-Type: text/html</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 fileReference="../../../../contentDirectory/ValidXMLget.xm1">
             </body>
          </response>
         </step>
         
              <step>
              <request>
                 <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/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>
                 <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,globalVariableServerName">&lt;?xml version="1.0" 
encoding="utf-8" ?&gt;&lt;multistatus xmlns="DAV:" 
xmlns:S="http://jakarta.apache.org/slide/"; 
&gt;&lt;response&gt;&lt;href&gt;/%globalVariableServerName%/%globalVariableCollection%/test.xml&lt;/href&gt;&lt;propstat&gt;&lt;prop&gt;&lt;displayname&gt;test&lt;/displayname&gt;&lt;/prop&gt;&lt;status&gt;HTTP/1.1
 200 OK&lt;/status&gt;&lt;/propstat&gt;&lt;/response&gt;&lt;/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.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>
   
   </cleanup>
  
  </test>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to