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 Jacob Lund <jl...@qualiware.net> on 2004/12/09 16:38:00 UTC
ACL on history content
Hi,
A while back there was a discussion about how to control access on history
resources. The idea was that the ACL of the history resource should somehow
reflect the ACL of the origin resource! Did anyone find or have a solution
on this - I guess that it could be done from the client, but I am not sure
that would desirable?
/jacob
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ACL on history content
Posted by Marc Sommer <ma...@schlund.de>.
Hi Jacob,
we modified the ACLSecurityImpl.java:
if a user requests access to a resource in the history-path
we return that boolean value of hasPermission(...) if he would
access the original resource.
I don't think, that you can solve this problem on the client side.
regards,
marc
Am Do, den 09.12.2004 schrieb Jacob Lund um 16:38:
> Hi,
>
> A while back there was a discussion about how to control access on history
> resources. The idea was that the ACL of the history resource should somehow
> reflect the ACL of the origin resource! Did anyone find or have a solution
> on this - I guess that it could be done from the client, but I am not sure
> that would desirable?
>
> /jacob
>
>
> ---------------------------------------------------------------------
> 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
createLink problem!!!
Posted by Bin Liu <bl...@yahoo.com>.
Hello,
I have the problem with structure.createLink() method, I am able to
create linkNode successfully, however, when I am trying to delete the
newly created linkNode from Windows web folder, it returns me the exception.
Also, I can't retrieve the NodeRevisionDescriptors from content.retrieve(...).
Detailed information are as follows: Anybody ever tried this and know the
reason?
Thanks a lot!
Bin
file folder: /filefolder/hello.txt
link folder (with linkNode hello.txt): /linkfolder/hello.txt
Code:
=========================================================================
ObjectNode itemNode =
getStructure().retrieve(getSlideToken(), "/filefolder/hello.txt");
String linkPath = "/linkfolder/hello.txt";
LinkNode linkNode =
new LinkNode(linkPath, new Vector(), new Vector(), itemNode.getUri());
structure.createLink(slideToken, linkNode, linkPath, itemNode);
NodeRevisionDescriptors revisionDescriptors =
content.retrieve(getSlideToken(), "/linkfolder/hello.txt");
=========================================================================
content of hello.txt.def.xml is created as:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<objectnode classname="org.apache.slide.structure.LinkNode"
uri="/linkfolder/hello.txt" linkTo="/filefolder/hello.txt">
<children />
<parents>
<parent name="hello.txt" uuri="/linkfolder" />
</parents>
<links />
</objectnode>
<permissions />
<locks />
<revisionsHistory initialRevision="1.0" useVersioning="false">
<branches />
<revisions />
</revisionsHistory>
<descriptor />
</data>
=========================================================================
Exception generated when trying to delete the linkNode:
23:43:06,806 INFO [STDOUT] org.apache.slide.content.RevisionDescriptorNotFoundE
xception: No revision descriptor found on object /linkfolder/hello.txt
23:43:06,806 INFO [STDOUT] at org.apache.slide.store.txfile.AbstractXMLReso
urceDescriptor.retrieveRevisionDescriptor(AbstractXMLResourceDescriptor.java:484
)
23:43:06,806 INFO [STDOUT] at org.apache.slide.store.txfile.TxXMLFileDescri
ptorsStore.retrieveRevisionDescriptor(TxXMLFileDescriptorsStore.java:346)
23:43:06,806 INFO [STDOUT] at org.apache.slide.store.AbstractStore.retrieve
RevisionDescriptor(AbstractStore.java:1217)
23:43:06,806 INFO [STDOUT] at org.apache.slide.store.ExtendedStore.retrieve
RevisionDescriptor(ExtendedStore.java:1020)
23:43:06,806 INFO [STDOUT] at org.apache.slide.content.ContentImpl.retrieve
(ContentImpl.java:283)
23:43:06,806 INFO [STDOUT] at org.apache.slide.content.ContentImpl.retrieve
(ContentImpl.java:331)
23:43:06,806 INFO [STDOUT] at org.apache.slide.webdav.method.DeleteMethod.b
eforeDelete(DeleteMethod.java:246)
23:43:06,816 INFO [STDOUT] at org.apache.slide.macro.MacroImpl.deleteObject
(MacroImpl.java:992)
23:43:06,816 INFO [STDOUT] at org.apache.slide.macro.MacroImpl.deleteObject
(MacroImpl.java:977)
23:43:06,816 INFO [STDOUT] at org.apache.slide.macro.MacroImpl.delete(Macro
Impl.java:713)
23:43:06,816 INFO [STDOUT] at org.apache.slide.macro.MacroImpl.delete(Macro
Impl.java:613)
23:43:06,816 INFO [STDOUT] at org.apache.slide.webdav.method.DeleteMethod.e
xecuteRequest(DeleteMethod.java:166)
23:43:06,816 INFO [STDOUT] at org.apache.slide.webdav.method.AbstractWebdav
Method.run(AbstractWebdavMethod.java:412)
=========================================================================
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.