juergen 2002/06/24 04:22:38
Added:
testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlMethods/ACLExamples
ACLGrantWriteDenyWrite.xml
ACLGrantWriteACLDenyWriteACL.xml
ACLGrantReadWriteDenyReadACLWriteACL.xml
ACLGrantReadDenyRead.xml
ACLGrantReadACLDenyReadACL.xml ACL404.xml
ACL403SelfDenyAllGrantRead.xml
ACL403DenyWriteACLGrantWrite.xml
ACL403DenyAllGrantWrite.xml
ACL403DenyAllGrantRead.xml ACL400GrantDenyWrite.xml
ACL400DenyGrantWriteAcl.xml
ACL400DenyGrantReadAcl.xml ACL400DenyGrantRead.xml
ACL400DenyGrantAll.xml
ACL2UserDenyWriteACLGrantWrite.xml
ACL2UserDenyWriteACLGrantRead.xml
ACL2UserDenyAllGrantWrite.xml
ACL2UserDenyAllGrantRead.xml
Log:
New ACL test cases
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlMethods/ACLExamples/ACLGrantWriteDenyWrite.xml
Index: ACLGrantWriteDenyWrite.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants write access and then denies write access
to the user %user% on the collection /test
3) PUT command carried out
</description>
<expectedResult> PUT command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:write /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../../contentDirectory/validXML.xm1">
</body>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACLGrantWriteACLDenyWriteACL.xml
Index: ACLGrantWriteACLDenyWriteACL.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants write-acl access and then denies write-acl
access to the user %user% on the collection /test
3) ACL command carried out
</description>
<expectedResult> ACL command which grants read access should return
403 Forbidden </expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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: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:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 403 forbidden</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACLGrantReadWriteDenyReadACLWriteACL.xml
Index: ACLGrantReadWriteDenyReadACLWriteACL.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants write and read access and then denies
write-acl and read-acl access to the user %user% on the collection /test
</description>
<expectedResult> ACL command should return 200 OK </expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:read-acl /></D:privilege>
<D:privilege><D:write-acl /></D:privilege>
</D:deny>
</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[
<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/AccessControlMethods/ACLExamples/ACLGrantReadDenyRead.xml
Index: ACLGrantReadDenyRead.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants read access and then denies read access to
the user %user% on the collection /test
3) HEAD command carried out
</description>
<expectedResult> HEAD command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:read /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">HEAD
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Accept-Language: en-us</header>
<header>Connection: Keep-Alive</header>
<header>Translate: f</header>
<body />
</request>
<response>
<command>HTTP/1.1 403 Forbidden</command>
<body />
</response>
</step>
<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[
<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/AccessControlMethods/ACLExamples/ACLGrantReadACLDenyReadACL.xml
Index: ACLGrantReadACLDenyReadACL.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants read-acl access and then denies read-acl
access to the user %user% on the collection /test
3) Propfind command carried out
</description>
<expectedResult> Propfind command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read-acl /></D:privilege>
</D:grant>
</D:ace>
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:read-acl /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:acl />
</D:prop>
</D:propfind>]]>
</body>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><?xml
version="1.0" encoding="utf-8" ?><multistatus xmlns="DAV:"
xmlns:S="http://jakarta.apache.org/slide/"
><response><href>/%globalVariableServerName%/%globalVariableCollection%/test</href><propstat><prop><displayname>%globalVariableCollection%</displayname></prop><status>HTTP/1.1
200 OK</status></propstat></response></multistatus></body>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACL404.xml
Index: ACL404.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 404 Bad Request status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants write access to a user that doesnt exist
</description>
<expectedResult> ACL command should return 404 Bad Request
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>/thisdoesntexist/nope/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 404 Not Found</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[
<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/AccessControlMethods/ACLExamples/ACL403SelfDenyAllGrantRead.xml
Index: ACL403SelfDenyAllGrantRead.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 403 Forbidden status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies all access to the user %user%
3) ACL command which grants read access to all users
</description>
<expectedResult> ACL command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ 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[
<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:all/></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">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[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:self></D:self>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACL403DenyWriteACLGrantWrite.xml
Index: ACL403DenyWriteACLGrantWrite.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 403 Forbidden status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies write-acl access to the user %user%
3) ACL command which grants write access to all users
</description>
<expectedResult> ACL command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ 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[
<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:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</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[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:unauthenticated></D:unauthenticated>
</D:principal>
<D:grant>
<D:privilege><D:write /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACL403DenyAllGrantWrite.xml
Index: ACL403DenyAllGrantWrite.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 403 Forbidden status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies all access to the user %user%
3) ACL command which grants write access to all users
</description>
<expectedResult> ACL command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ 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[
<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:all/></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">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[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACL403DenyAllGrantRead.xml
Index: ACL403DenyAllGrantRead.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 403 Forbidden status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies all access to the user %user%
3) ACL command which grants read access to all users
</description>
<expectedResult> ACL command should return 403 Forbidden
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ 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[
<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:all/></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">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[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
<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/AccessControlMethods/ACLExamples/ACL400GrantDenyWrite.xml
Index: ACL400GrantDenyWrite.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 400 Bad Request status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants write access and denies write access in
the same ace
</description>
<expectedResult> ACL command should return 400 Bad Request
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:deny>
<D:privilege><D:write /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 400 Bad Request</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[
<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/AccessControlMethods/ACLExamples/ACL400DenyGrantWriteAcl.xml
Index: ACL400DenyGrantWriteAcl.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 400 Bad Request status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants write-acl access and denies write-acl
access in the same ace
</description>
<expectedResult> ACL command should return 400 Bad Request
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:deny>
<D:privilege><D:write-acl /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 400 Bad Request</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[
<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/AccessControlMethods/ACLExamples/ACL400DenyGrantReadAcl.xml
Index: ACL400DenyGrantReadAcl.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 400 Bad Request status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants read-acl access and denies read-acl access
in the same ace
</description>
<expectedResult> ACL command should return 400 Bad Request
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read-acl /></D:privilege>
</D:grant>
<D:deny>
<D:privilege><D:read-acl /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 400 Bad Request</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[
<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/AccessControlMethods/ACLExamples/ACL400DenyGrantRead.xml
Index: ACL400DenyGrantRead.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 400 Bad Request status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants read access and denies read access in the
same ace
</description>
<expectedResult> ACL command should return 400 Bad Request
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>/administration/security/users/%host%/%user%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
<D:deny>
<D:privilege><D:read /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 400 Bad Request</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[
<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/AccessControlMethods/ACLExamples/ACL400DenyGrantAll.xml
Index: ACL400DenyGrantAll.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check 400 Bad Request status code of ACL command
</abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which grants all access and denies all access in the
same ace
</description>
<expectedResult> ACL command should return 400 Bad Request
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:all /></D:privilege>
</D:grant>
<D:deny>
<D:privilege><D:all /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 400 Bad Request</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[
<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/AccessControlMethods/ACLExamples/ACL2UserDenyWriteACLGrantWrite.xml
Index: ACL2UserDenyWriteACLGrantWrite.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies write-acl access to the user %user% on the
collection /test
3) ACL command which grants write access to the all users
4) Put command carried out
</description>
<expectedResult> Both ACL commands should return 200 OK, PUT command
should return 201 Created </expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<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[
<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="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>
<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[
<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/AccessControlMethods/ACLExamples/ACL2UserDenyWriteACLGrantRead.xml
Index: ACL2UserDenyWriteACLGrantRead.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies write-acl access to the user %user% on the
collection /test
3) ACL command which grants read access to the all users
4) Head command carried out
</description>
<expectedResult> Two ACL commands and the Head command should all
return 200 OK </expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<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[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></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">HEAD
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Accept-Language: en-us</header>
<header>Connection: Keep-Alive</header>
<header>Translate: f</header>
<body />
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<header>Last-Modified: 2001-03-22T17:20:13Z</header>
<body />
</response>
</step>
<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[
<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/AccessControlMethods/ACLExamples/ACL2UserDenyAllGrantWrite.xml
Index: ACL2UserDenyAllGrantWrite.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies all access to the user %user% on the
collection /test
3) ACL command which grants write access to the all users
4) PUT command carried out
</description>
<expectedResult> Both ACL commands should return 200 OK, PUT command
should return 201 Created </expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:all /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">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="globalVariableCollection,globalVariableServerName"><![CDATA[
<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>
<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>
<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[
<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/AccessControlMethods/ACLExamples/ACL2UserDenyAllGrantRead.xml
Index: ACL2UserDenyAllGrantRead.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<description>
1) MKCOL command which creates a child collection (/test)
2) ACL command which denies all access to the user %user% on the
collection /test
3) ACL command which grants read access to the all users
4) Head command carried out
</description>
<expectedResult> Two ACL and Head commands should all return 200 OK
</expectedResult>
</specification>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body varUsage="host,user"><![CDATA[
<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:all /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">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="globalVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></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">HEAD
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Accept-Language: en-us</header>
<header>Connection: Keep-Alive</header>
<header>Translate: f</header>
<body />
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<header>Last-Modified: 2001-03-22T17:20:13Z</header>
<body />
</response>
</step>
<!-- input test of read privilege -->
<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[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:all /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]>
</body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
<command
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</cleanup>
</test>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>