-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm a new slide user, and have cvs current compiled and running in tomcat,
but am having a couple of problems:
1. I have some junit tests which i'm using to play with the slide api. in one
particular test, i'm trying to create a new user SubjectNode in /users (see
below), when i call structure.create(), the txfilestore throws "access error:
Invalid transaction Id". no idea why.
2. i've configured the slide servlet to live next to my struts webapp
front-end, and set the default-servlet to false, but the links in the index
generated always point to the root of the application context, instead of
where they need to. I took a look in the debugger, and it shows that the
index generator does see that the webdavservlet not configured as the default
servlet, but req.getPathInfo returns null, so "/" is prepended to the link
href (it should be /context/webdav in my case). if i type a slide-controlled
url in by hand, an index is generated properly, but with bogus links to the
dir's contents. I've included the relevant bits of my web.xml for your
diagnosis.
<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>/webdav/*</url-pattern>
</servlet-mapping>
<init-param>
<param-name>default-servlet</param-name>
<param-value>false</param-value>
</init-param>
to clarify:
my repository root can be reached via http://server/appcontext/webdav, but the
links to "files" for example look like href="/appcontext/files" instead of
href="/appcontext/webdav/files", though i can manually see the contents of /
files by getting http://server/appcontext/webdav/files (though it's internal
links are also hosed). i'm beginning to suspect i'm going about the mapping
all wrong...
//test case
NamespaceAccessToken namespace =
Domain.accessNamespace(new SecurityToken(new String()),
"slide");
assertNotNull(namespace);
CredentialsToken credentials = new CredentialsToken("root");
Security security = namespace.getSecurityHelper();
Structure structure = namespace.getStructureHelper();
SlideToken slide = new SlideTokenImpl(credentials);
SubjectNode usersNode = (SubjectNode)structure.retrieve(slide,
"/users/");
assertNotNull(usersNode);
String userUri = "/users/user." + System.currentTimeMillis();
slide = new SlideTokenImpl(credentials);
/* ServiceAccess exception thrown here */
structure.create(slide,new SubjectNode(), userUri);
log.debug(structure.getChildren(slide, usersNode));
Thanks,
- --
McClain Looney
LoonSoft LLC
[EMAIL PROTECTED]
Public key E3122EF8 available
at http://wwwkeys.us.pgp.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/7JrHJY6NG+MSLvgRAuwNAJwNtOcFxn2UgbGIKZCUjfY2JvUKlQCfSe/R
YlvNDVtWJ8KIAvmQwQqAu/o=
=z/vJ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]