juergen     2002/07/11 05:50:14

  Added:       testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Write
                        
ACLdenyWriteACLNoInheritance2Proppatch2Lock2ACLColColColFile.xm1
                        ACLdenyWriteACLNoInheritancePutProppatchLockCol.xm1
                        ACLdenyWriteNoInheritance2Proppatch2LockACLColColColFile.xm1
                        ACLdenyWriteNoInheritancePutProppatchLockCol.xm1
                        ACLdenyWriteNoInheritancePutProppatchLockFile.xm1
  Log:
  no message
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Write/ACLdenyWriteACLNoInheritance2Proppatch2Lock2ACLColColColFile.xm1
  
  Index: ACLdenyWriteACLNoInheritance2Proppatch2Lock2ACLColColColFile.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny write-acl privilege without 
inheritance works. </abstract>
                
                <description>
                1) ACL command which grants write access to the user %user%
                2) ACL command which denies write-acl access to the user %user% on the 
collection /test/test
                4) PropPatch command attempted on child collection (/test/test/test)
                5) Lock command attempted on child collection (/test/test/test)
                6) ACL command attempted on child collection (/test/test/test)
                7) PropPatch command attempted on child file (/test/test/test/test.xml)
                8) Lock command attempted on child file (/test/test/test/test.xml)
                9) ACL command attempted on child file (/test/test/test/test.xml)
                </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">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: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="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">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>
     <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%/test/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>
     <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/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="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test/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:write-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">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/test/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 
="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/test/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="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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:grant>
                 <D:privilege><D:write-acl /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
        
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/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>
   
        <step>
                <request>
                        <command varUsage 
="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/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>
        
          <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test/test/test/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:grant>
                 <D:privilege><D:write-acl /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</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/Write/ACLdenyWriteACLNoInheritancePutProppatchLockCol.xm1
  
  Index: ACLdenyWriteACLNoInheritancePutProppatchLockCol.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny write-acl privilege without 
inheritance works. </abstract>
                
                <description>
                1) ACL command which denys write-acl access to the user %user%
                2) ACL command attempted on child collection
                2) PUT command attempted on child collection
                2) PropPatch command attempted on child collection
                2) Lock/Unlock command attempted on child collection
                </description>
                
                <expectedResult> ACL, Put, PropPatch and Lock 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:write-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,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:grant>
                 <D:privilege><D:write-acl /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </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 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 
="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>
  
  
  
         
    <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/Write/ACLdenyWriteNoInheritance2Proppatch2LockACLColColColFile.xm1
  
  Index: ACLdenyWriteNoInheritance2Proppatch2LockACLColColColFile.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny write privilege with inheritance 
works. </abstract>
                
                <description>
                1) ACL command which grants write access to the user %user%
                2) ACL command which denies write access to the user %user% on the 
collection /test/test with no inheritance
                4) PropPatch command attempted on child collection (/test/test/test)
                5) Lock command attempted on child collection (/test/test/test)
                6) PropPatch command attempted on child file (/test/test/test/test.xml)
                7) Lock command attempted on child file (/test/test/test/test.xml)
                </description>
                
                <expectedResult> PropPatch and Lock on the collection /test/test/test 
                                 and the file /test/test/test/test.xml 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: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="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">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>
     <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%/test/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>
     <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/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="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test/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:write /></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">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/test/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 
="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/test/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="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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:grant>
                 <D:privilege><D:write-acl /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</command>
    </response>
   </step>
        
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/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>
   
        <step>
                <request>
                        <command varUsage 
="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test/test/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/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>
        
          <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test/test/test/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:grant>
                 <D:privilege><D:write-acl /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 200 OK</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: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/Write/ACLdenyWriteNoInheritancePutProppatchLockCol.xm1
  
  Index: ACLdenyWriteNoInheritancePutProppatchLockCol.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny write privilege without inheritance 
works. </abstract>
                
                <description>
                1) ACL command which denys write access to the user %user%
                2) Put command attempted on child collection
                3) PropPatch command attempted on child collection
                4) Lock command attempted on child collection
                </description>
                
                <expectedResult> Put, PropPatch and Lock 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:write /></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">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/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>
   
        <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="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/Write/ACLdenyWriteNoInheritancePutProppatchLockFile.xm1
  
  Index: ACLdenyWriteNoInheritancePutProppatchLockFile.xm1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract> Test to check if deny write privilege with out inheritance 
works. </abstract>
                
                <description>
                1) ACL command which denys write access to the user %user%
                2) PropPatch command attempted on child file
                3) Lock command attempted on child file
                </description>
                
                <expectedResult> PropPatch and Lock should both 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:write /></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>
    </response>
   </step>
   
   <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/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.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>
   
        <step>
                <request>
                        <command varUsage 
="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/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.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="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.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