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 Alvin Anwar <al...@secureage.com> on 2006/04/05 03:38:22 UTC

WCK related issue: PROPFIND goes too deep

Hi all,
 
Allow me to elaborate my situation for you. I'm using Apache Slide and WCK,
downloaded them using subversion from Apache website ard a month ago (13
March 2006). I have done some modification to some part of Apache Slide so
that it can be used to browse Samba servers.

Yesterday I found a problem with my program. For example I'm trying to
access file server A, given the right user ID and password, I'm able to go
to file server A and list any shared files and folders in it. For example, A
has 3 shared folders: A1, A2 and A3. I noticed that during browsing A (which
of course will call getChildrenNames() function), it will also call
getChildrenNames() on A1, A2 and A3 (this is to my surprise). I believe this
is a wrong implementation, since the current user may have access to A but
not to all A1, A2 and A3. I've tried changing the depth-limit value (I
believe this is the place where I can limit how deep it should go) in
web.xml and restarting the server, but it seems that Slide keeps checking
A1, A2 and A3.

Of course I've thrown an Exception (AccessDeniedException) when the error
occurs. WebdavServlet will catch it as a WebdavException, which confuses me
since AccessDeniedException is not an instance of WebdavException.

Probably I've made a mistake somewhere and overlooked some stuffs. Could
someone enlighten me on this matter? Thanks for your time.

Regards,
Alvin Anwar


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


RE: WCK related issue: PROPFIND goes too deep

Posted by Alvin Anwar <al...@secureage.com>.
Hi again,

I have narrowed down the source of the problem.

05 Apr 2006 11:50:00 - org.apache.slide.transaction.SlideTransaction -
WARNING - Prepare failure: Resource manager SecureAccess CIFS Store Adapter
Error code XA_RBBASE in Transaction 2 xid [B@14b9a74-[B@893969 in thread
http-8080-Processor24
javax.transaction.xa.XAException
	at
org.apache.commons.transaction.util.xa.AbstractXAResource.prepare(AbstractXA
Resource.java:123)
	at
org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:2
51)
	at
org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransaction
Manager.java:186)
	at
org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessToken
Impl.java:390)
	at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
.java:447)

Which is actually this line of command

	resourceManager.prepare((Xid) key);

in org.apache.slide.transaction.SlideTransaction.commit

I would be very grateful to have someone in helping me to understand the
error. Thanks in advance =).

PS: The scenario is still the same

Regards,
Alvin



-----Original Message-----
From: Alvin Anwar [mailto:alvin.anwar@secureage.com] 
Sent: Wednesday, 5 April 2006 9:38 AM
To: slide-user@jakarta.apache.org
Subject: WCK related issue: PROPFIND goes too deep

Hi all,
 
Allow me to elaborate my situation for you. I'm using Apache Slide and WCK,
downloaded them using subversion from Apache website ard a month ago (13
March 2006). I have done some modification to some part of Apache Slide so
that it can be used to browse Samba servers.

Yesterday I found a problem with my program. For example I'm trying to
access file server A, given the right user ID and password, I'm able to go
to file server A and list any shared files and folders in it. For example, A
has 3 shared folders: A1, A2 and A3. I noticed that during browsing A (which
of course will call getChildrenNames() function), it will also call
getChildrenNames() on A1, A2 and A3 (this is to my surprise). I believe this
is a wrong implementation, since the current user may have access to A but
not to all A1, A2 and A3. I've tried changing the depth-limit value (I
believe this is the place where I can limit how deep it should go) in
web.xml and restarting the server, but it seems that Slide keeps checking
A1, A2 and A3.

Of course I've thrown an Exception (AccessDeniedException) when the error
occurs. WebdavServlet will catch it as a WebdavException, which confuses me
since AccessDeniedException is not an instance of WebdavException.

Probably I've made a mistake somewhere and overlooked some stuffs. Could
someone enlighten me on this matter? Thanks for your time.

Regards,
Alvin Anwar


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org