You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Mikko Hämäläinen <mi...@hotmail.com> on 2004/04/19 13:42:03 UTC
problem with acl
Hi,
when I read the ACL of a directory '/pdc' right after restarting the tomcat
all permissions seem to be right. After performing any operation to this
directory (MKCOL for example) the ACLs seem corrupted - all permissions set
for '/pdc' directory suddenly are inherited from the same directory.
I tested this one using telnet and pasted the results below in case my
explanation is a bit hard to follow.
mikko hämäläinen--
netpro@edulinux$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
PROPFIND /slide/pdc HTTP/1.0
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Host: localhost
Depth: 0
Content-Length: 109
Connection: close
<?xml version="1.0" encoding="utf-8" ?><D:propfind
xmlns:D="DAV:"><D:prop><D:acl/></D:prop></D:propfind>
HTTP/1.1 207 Multi-Status
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=5CDE8CDE47FE7E276386F535E3823F39; Path=/slide
Content-Type: text/xml;charset=UTF-8
Date: Mon, 19 Apr 2004 11:03:40 GMT
Server: Apache-Coyote/1.1
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/slide/pdc</D:href>
<D:propstat>
<D:prop>
<D:acl>
<D:ace>
<D:principal>
<D:href>/users/mikkosh</D:href>
</D:principal>
<D:grant>
<D:privilege>
<D:all />
</D:privilege>
</D:grant>
</D:ace>
<D:ace>
<D:principal>
<D:unauthenticated />
</D:principal>
<D:deny>
<D:privilege>
<D:all />
</D:privilege>
</D:deny>
</D:ace>
<D:ace>
<D:principal>
<D:href>/users/mikkosh</D:href>
</D:principal>
<D:grant>
<D:privilege>
<D:all />
</D:privilege>
</D:grant>
<D:inherited>
<D:href>/</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>
Connection closed by foreign host.
netpro@edulinux$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
MKCOL /slide/pdc/kokki7 HTTP/1.0
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Host: localhost
Depth: 0
Content-Length: 0
Connection: close
HTTP/1.1 201 Created
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=B796523C3786C7954D04EB2B41F33088; Path=/slide
Content-Length: 0
Date: Mon, 19 Apr 2004 11:03:57 GMT
Server: Apache-Coyote/1.1
Connection: close
Connection closed by foreign host.
netpro@edulinux$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
PROPFIND /slide/pdc HTTP/1.0
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Host: localhost
Depth: 0
Content-Length: 109
Connection: close
<?xml version="1.0" encoding="utf-8" ?><D:propfind
xmlns:D="DAV:"><D:prop><D:acl/></D:prop></D:propfind>
HTTP/1.1 207 Multi-Status
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=7EEF2AD6A0B421CF8A0541301E24E52F; Path=/slide
Content-Type: text/xml;charset=UTF-8
Date: Mon, 19 Apr 2004 11:04:11 GMT
Server: Apache-Coyote/1.1
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/slide/pdc</D:href>
<D:propstat>
<D:prop>
<D:acl>
<D:ace>
<D:principal>
<D:href>/users/mikkosh</D:href>
</D:principal>
<D:grant>
<D:privilege>
<D:all />
</D:privilege>
</D:grant>
<D:inherited>
<D:href>/pdc</D:href>
</D:inherited>
</D:ace>
<D:ace>
<D:principal>
<D:unauthenticated />
</D:principal>
<D:deny>
<D:privilege>
<D:all />
</D:privilege>
</D:deny>
<D:inherited>
<D:href>/pdc</D:href>
</D:inherited>
</D:ace>
<D:ace>
<D:principal>
<D:href>/users/mikkosh</D:href>
</D:principal>
<D:grant>
<D:privilege>
<D:all />
</D:privilege>
</D:grant>
<D:inherited>
<D:href>/</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>
Connection closed by foreign host.
_________________________________________________________________
Flirttaile, rupattele, juorua tai vaihda kuulumisia näytössä tapahtuvissa
keskusteluissa. Lataa ilmainen MSN Messenger. http://messenger.msn.fi
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org