You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2002/07/12 11:22:03 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/ACL denyReadForHalfDirectorySearch.xml

juergen     2002/07/12 02:22:03

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/select/ACL
                        denyReadForHalfDirectorySearch.xml
  Log:
  Test case to check DASL combined with ACL.
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/ACL/denyReadForHalfDirectorySearch.xml
  
  Index: denyReadForHalfDirectorySearch.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
      
  <test>
  
  	<specification>
  		<abstract> A tree structure is created. A resource is put at the bottom.
  		Read access to user %user% is denied halfway down the tree.
  		The user then attempts to Search on the resource.</abstract>
  		
  		<description>
  		1) MKCol to create a test collection. All resources will be created here. This makes for an easy cleanup.
  		2) MKCol to create a level1 collection.
  		3) MKCol to create a level1/level2 collection.
  		4) MKCol to create a level1/level2/level3 collection.
  		5) PUT resource to level 3.
  		6) ACL command to deny read privileges to user %user% on the level 2 collection.
  		
  		7) PropFind command on non-acl properties by user %user% on level 1 to check that read privileges are granted.
  		8) PropFind command on acl properties by user %user% on level 1 to check that read privileges are granted.
  		9) PropFind command on non-acl properties by user %user% on level 2 to check that read privileges have been denied.
  		10) PropFind command on acl properties by user %user% on level 2 to check that read privileges have been denied.
  		11) PropFind command on non-acl properties by user %user% on level 3 to check that read privileges have been denied.
  		12) PropFind command on acl properties by user %user% on level 3 to check that read privileges have been denied.
  		13) PropFind command on non-acl properties by user %user% on the resource to check that read privileges have been denied.
  		14) PropFind command on acl properties by user %user% on the resource to check that read privileges have been denied.
  		
  		11) Search performed on non-acl properties by user %user% on level 1. This should be possible.
  		12) Search performed on acl properties by user %user% on level 1. This should be possible.
  		13) Search performed on non-acl properties by user %user% on level 2. This should not be possible.
  		14) Search performed on acl properties by user %user% on level 2. This should not be possible.
  		15) Search performed on non-acl properties by user %user% on level 3. This should not be possible.
  		16) Search performed on acl properties by user %user% on level 3. This should not be possible.
  		17) Search performed on non-acl properties by user %user% on the resource. This should not be possible.
  		18) Search performed on non-acl properties by user %user% on the resource. This should not be possible.
  		
  		19) return ACL privileges back to normal.
  		20) Delete created resource.
  		</description>
  		
  		<expectedResult> The Search should return a 409 Forbidden error. </expectedResult>
  	</specification>
  	
  	
  	
  		
  	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
     			<header>Accept-Language: en-us</header>
     			<header>Translate: f</header>
     			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     			<header>Connection: Keep-Alive</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     			<header>Content-Language: en</header>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
   	
   	
   		
   	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/level1 HTTP/1.1</command>
     			<header>Accept-Language: en-us</header>
     			<header>Translate: f</header>
     			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     			<header>Connection: Keep-Alive</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     			<header>Content-Language: en</header>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
   	
   	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2 HTTP/1.1</command>
     			<header>Accept-Language: en-us</header>
     			<header>Translate: f</header>
     			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     			<header>Connection: Keep-Alive</header>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
     			<header>Content-Language: en</header>
     			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
    		</response>
   	</step>
  
  	
  	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2/level3 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="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2/level3/acl_dasl.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: Mon, 12 Mar 2001 17:21:35 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/level1/level2 HTTP/1.1</command>
     				<header>Content-Type: text/xml; charset=utf-8</header>  
     				<header>User-Agent: Jakarta HTTP Client/1.0</header>
     				<body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        					<D:acl xmlns:D="DAV:">
           					<D:ace>
              						<D:principal>
                 							<D:href>/administration/security/users/%host%/%user%</D:href>
              						</D:principal>
              						<D:deny>
                 							<D:privilege><D:read/></D:privilege>
              						</D:deny>
           					</D:ace>
        					</D:acl>]]>
     				</body>
    			</request>
    			<response>
     				<command>HTTP/1.0 (200,409) OK</command>
    			</response>
   	</step>
  	
  	
  	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1 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:displayname />
                            				<D:test/>
                         				</D:prop>
                      			</D:propfind>]]>
     		 	</body>
    	      	</request>
    	      	<response>
     	        	<command>HTTP/1.0 207 Multi-Status</command>
     	        	<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<D:multistatus xmlns:D="DAV:">
      						<D:response>
          					<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/level1</D:href>
          						<D:propstat>
              							<D:prop>
                  							<D:displayname>level1</D:displayname>
              							</D:prop>
              							<D:status>HTTP/1.1 200 OK</D:status>
          						</D:propstat>
          						<D:propstat>
              							<D:prop>
                  							<D:test />
              							</D:prop>
              							<D:status>HTTP/1.1 404 Not Found</D:status>
          						</D:propstat>
      						</D:response>
  					</D:multistatus>]]>
  			</body>
    	      	</response>
  	</step>
  	
  	
  	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1 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>
     	        	<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<D:multistatus xmlns:D="DAV:">
      						<D:response>
          					<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/level1</D:href>
          						<D:propstat>
              							<D:prop>
                  							<D:acl>
                      								<D:ace>
                          								<D:principal>
                              									<D:href>/%globalVariableServerName%/administration/security/users</D:href>
                          								</D:principal>
                          								<D:grant>
                              									<D:privilege>
                                  									<D:all />
                              									</D:privilege>
                          								</D:grant>
                          								<D:protected />
                          								<D:inherited>
                              									<D:href>/%globalVariableServerName%/</D:href>
                          								</D:inherited>	
                      								</D:ace>
                  							</D:acl>
              							</D:prop>
              							<D:status>HTTP/1.1 200 OK</D:status>
          						</D:propstat>
      						</D:response>
  					</D:multistatus>]]>
  			</body>
    	      	</response>
  	</step>
  	
  	
  
  	
  	
  	
  	
  	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2 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:displayname />
                            				<D:test/>
                         				</D:prop>
                      			</D:propfind>]]>
     		 	</body>
    	      	</request>
    	      	<response>
     	        	<command>HTTP/1.0 403 Forbidden</command>
    	      	</response>
  	</step>
  	
  	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2 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>
    	      	</response>
  	</step>
  	
  	
  	
  	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2/level3 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:displayname />
                            				<D:test/>
                         				</D:prop>
                      			</D:propfind>]]>
     		 	</body>
    	      	</request>
    	      	<response>
     	        	<command>HTTP/1.0 403 Forbidden</command>
    	      	</response>
  	</step>
  	
  	
  	
  	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2/level3 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>
    	      	</response>
  	</step>
  	
   	
   	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2/level3/acl_dasl.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:displayname />
                            				<D:test/>
                         				</D:prop>
                      			</D:propfind>]]>
     		 	</body>
    	      	</request>
    	      	<response>
     	        	<command>HTTP/1.0 403 Forbidden</command>
    	      	</response>
  	</step>
   	
   	
   	<step>
   	      	<request>
     	        	<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2/level3/acl_dasl.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>
    	      	</response>
  	</step>
  	
  	
  	
  	
  	
  	
  	
  	
  	
   	
   	
   	
   	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:displayname/>
     								<D:test/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     					<D:multistatus xmlns:D="DAV:">
     						<D:response>
     							<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/level1</D:href>
     								<propstat xmlns="DAV:">
     									<prop>
     										<displayname>level1</displayname>
     									</prop>
     									<status>HTTP/1.1 200 OK</status>
     								</propstat>
     								<propstat xmlns="DAV:">
     									<prop>
     										<test />
     									</prop>
     									<status>HTTP/1.1 404 Not Found</status>
     								</propstat>
     						</D:response>
     					</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:acl/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     					<D:multistatus xmlns:D="DAV:">
     						<D:response>
          					<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/level1</D:href>
          						<D:propstat>
              							<D:prop>
                  							<D:acl>
                      								<D:ace>
                          								<D:principal>
                              									<D:href>/%globalVariableServerName%/administration/security/users</D:href>
                          								</D:principal>
                          								<D:grant>
                              									<D:privilege>
                                  									<D:all />
                              									</D:privilege>
                          								</D:grant>
                          								<D:protected />
                          								<D:inherited>
                              									<D:href>/%globalVariableServerName%/</D:href>
                          								</D:inherited>
                      								</D:ace>
                  							</D:acl>
              							</D:prop>
              							<D:status>HTTP/1.1 200 OK</D:status>
          						</D:propstat>
      						</D:response>
     					</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  	
  	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:displayname/>
     								<D:test/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1/level2</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     		</response>
     	</step>
     	
     	
     	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:acl/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1/level2</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     		</response>
     	</step>
     	
  	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:displayname/>
     								<D:test/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1/level2/level3</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     		</response>
     	</step>
  	
  		<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:acl/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1/level2/level3</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     		</response>
     	</step>
  	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:displayname/>
     								<D:test/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1/level2/level3/acl_dasl.xml</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     		</response>
     	</step>
  	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:acl/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>%globalVariableCollection%/test/level1/level2/level3/acl_dasl.xml</D:href>
     								<D:depth>0</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 403 Forbidden</command>
     		</response>
     	</step>
  
  	
  	<cleanup>
      	<step>
  		<user varUsage="user">2%user%</user>
  		<password varUsage="user">2%user%</password>
    			<request>
     				<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/test/level1/level2 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="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: Wed, 14 Mar 2001 14:47:37 GMT+01:00</header>
          			<header>Content-Language: en</header>
          			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
        		</response>
       	</step> 
    
   	</cleanup>
  	
  </test>
  
  

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