List Info

Thread: WCK related issue: PROPFIND goes too deep




WCK related issue: PROPFIND goes too deep
user name
2006-04-05 01:38:22
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-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

WCK related issue: PROPFIND goes too deep
user name
2006-04-05 04:40:02
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 [B14b9a74-[B893969 in thread
http-8080-Processor24
javax.transaction.xa.XAException
	at
org.apache.commons.transaction.util.xa.AbstractXAResource.pr
epare(AbstractXA
Resource.java:123)
	at
org.apache.slide.transaction.SlideTransaction.commit(SlideTr
ansaction.java:2
51)
	at
org.apache.slide.transaction.SlideTransactionManager.commit(
SlideTransaction
Manager.java:186)
	at
org.apache.slide.common.NamespaceAccessTokenImpl.commit(Name
spaceAccessToken
Impl.java:390)
	at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(Abst
ractWebdavMethod
.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.anwarsecureage.com] 
Sent: Wednesday, 5 April 2006 9:38 AM
To: slide-userjakarta.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-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )