Okay, I've partially answered one of my questions.
Playing around and reading the config more carefully, I replaced the
sample data element configuration with
<data>
<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
<permission action="all" subject="all" inheritable="true"/>
</objectnode>
</data>
and can now directory browse through the webdav servlet. All I see is
an empty root directory which is what I expect based on my initial
SimpleFileStore implementation.
Mapping a web folder from win xp is claiming that "the folder you
entered does not appear to be valid" but I have not looked in to this
yet.
I am curious to know what of of the namespace configuration element is
required for what I am trying to do.
Alon
On Tue, 31 Aug 2004 00:06:29 -0700, alon salant <[EMAIL PROTECTED]> wrote:
> I've decided to take an initial step of stubbing out my
> SimpleFileStore implementation and deploying it in my webapp.
>
> I started with the Domain.sample file from the 2.1b1 distribution and
> modified the namespace definition as follows:
>
> <definition>
> <store name="files">
> <nodestore classname="photospace.slide.SimpleFileStore">
> <parameter name="rootpath">store/metadata</parameter>
> </nodestore>
> <contentstore classname="photospace.slide.SimpleFileStore">
> <parameter name="rootpath">store/content</parameter>
> </contentstore>
> <securitystore
> classname="org.apache.slide.store.mem.TransientSecurityStore"/>
> <lockstore classname="org.apache.slide.store.mem.TransientLockStore"/>
> <revisiondescriptorsstore
> classname="org.apache.slide.store.mem.TransientDescriptorsStore"/>
> <revisiondescriptorstore
> classname="org.apache.slide.store.mem.TransientDescriptorStore"/>
> </store>
> <scope match="/" store="files"/>
> </definition>
>
> SimpleFileStore implements NodeStore and ContentStore. This
> configuration deploys without error.
>
> > > Is SubjectNode an
> > > appropriate ObjectNode implementation to return from retrieveObject(
> > > )?
> >
> > Yes.
>
> I did find that retrieveObject( ) needs to return an ActionNode not
> SubjectNode for NamespaceConfig.getActionNode( ) which was being
> called in slide startup. I was getting a ClassCastException. So should
> I always return an ActionNode from retrieveObject( )? What's the
> difference from a SubjectNode?
>
> I have the slide WebDAV servlet configured and starting up without
> errors and with directory browsing turned on. However, when I browse
> to the servlet url, I get a 403 and a single log line from slide:
>
> http-8080-Processor25, 30-Aug-2004 23:43:47, unauthenticated, GET,
> 403 "Forbidden", 47 ms, /
>
> Note that I have not removed the sample namespace configuration or
> data from the Domain.sample file that I started with. Reading this
> file, I'm not sure what is necessary and what does not apply. I'm
> guessing that most of the configuration is necessary and that the info
> in the data element can go. Correct?
>
> Any thoughts on how to get past my 403?
>
> Alon
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]