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 Jean-Philippe Courson <co...@noos.fr> on 2002/03/13 13:15:38 UTC

Re: Acl

B. Shadgar wrote:
> Hi ,
> 
> Could you please let me know, how can I find out the permission of a
> resource manually. In other words, I'm looking for a method or
> programming codes which returns true or false when it checks if the
> particular resource has a particular permission.
> 
> Many thanks,
> Bita.
> 

You can use one of the following security helper's methods and catch 
AccessDeniedException :

void checkCredentials(SlideToken st,ObjectNode object,ActionNode action)

(Check if the credentials given grants permission to perform the 
specified action on the specified subject).

or

void checkPermission(ObjectNode object,SubjectNode subject,ActionNode 
action)

(Check whether or not an actor can perform the specified activity on a 
collection).

JP


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


Using slide with mod_webapp

Posted by Jean-Philippe Courson <co...@noos.fr>.
Hi,

Has anybody there been successfully using slide integrated with apache
with mod_webapp ?

When I use slide through port 8080, all is working perfectly, but when
using it through apache and mod_webapp (correctly setup), I can not
connect with webfolders; authentication seems to work : dialog is popup
and popup again if login or password is wrong but once authenticated,
webfolders are saying that server is not responding.

Here are the logs :

catalina.out says

27 Mar 2002 15:10:24 - org.apache.slide.common.Domain - WARNING - Bad 
Request
27 Mar 2002 15:10:24 - org.apache.slide.webdav.WebdavServlet - INFO - 
PROPFIND = 400 Bad Request (time: 20 ms) URI = /files/b2web
27 Mar 2002 15:10:24 - org.apache.slide.webdav.WebdavServlet - INFO - 
OPTIONS = 200 OK (time: 8 ms) URI = /files/b2web

apache access_log says


192.168.1.37 - - [27/Mar/2002:15:10:24 +0000] "PROPFIND /files/b2web 
HTTP/1.1" 400 637
192.168.1.37 - - [27/Mar/2002:15:10:24 +0000] "OPTIONS / HTTP/1.1" 200 -
192.168.1.37 - - [27/Mar/2002:15:10:24 +0000] "OPTIONS /files/b2web 
HTTP/1.1" 200 5

Slide is used has a webapp (/files is context) and scope parameter is
set to /files

Any help would be appreciated

JP


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


RE: Acl

Posted by Tom Wang <to...@presidiosoftware.com>.
>
> void checkPermission(ObjectNode object,SubjectNode subject,ActionNode
> action)
>
> (Check whether or not an actor can perform the specified activity on a
> collection).
>
> JP
>

JP, the comments indicate above method is used for checking permissions on a
"collection".  That is misleading as it only deals with a single object node
but not a collection.  Please correct me if I am wrong.

-Tom


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