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 J....@pilz.ie on 2003/05/16 16:12:58 UTC
Problem saving content to server.
hi.
Sorry for having to ask another question - just having a little problem
saving.
Firstly, the original problem of missing files is fixed by using a MySQL
database.
However, I have a different problem since using the database as my store.
What happens is when I save a file from a WebDAV client app, like MSWord, I
got a dialog saying "The current operation cannot be completed due to an
unexpected error".
Looking at the log, I can see the problem is due to :
org.apache.slide.content.RevisionDescriptorNotFoundException: No revision
descriptor found on object /files/myTest.html
at
slidestore.reference.JDBCDescriptorsStore.retrieveRevisionDescriptor(
JDBCDescriptorsStore.java:1545)
at
org.apache.slide.store.StandardStore.retrieveRevisionDescriptor(Stand
ardStore.java:559)
It still saves it- and I can see the latest version under files - but it's
not saving the history - even though I've set it up to do so.
Here's my domain.xml file - maybe you guys will spot something obvious
that I missed.
<?xml version="1.0"?>
<slide logger="org.apache.slide.util.logger.SimpleLogger" logger-level="6"
default="slide">
<namespace name="slide">
<definition>
<store name="jdbc">
<nodestore classname="slidestore.mysql.MySQLDescriptorsStore">
<parameter name="driver">org.gjt.mm.mysql.Driver</parameter>
<parameter name
="url">jdbc:mysql://localhost:3306/slide?autoReconnect=true</parameter>
<!--<parameter name="user">james</parameter>
<parameter name="password">james</parameter>-->
<parameter name="jdbcversion">1</parameter>
</nodestore>
<securitystore>
<reference store="nodestore"/>
</securitystore>
<lockstore>
<reference store="nodestore"/>
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore"/>
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore"/>
</revisiondescriptorstore>
<contentstore classname="slidestore.reference.FileContentStore">
<parameter name="rootpath">C:
\SERVER_HISTORY\contentstore</parameter>
<parameter name="version">true</parameter>
<parameter name
="resetBeforeStarting">false</parameter>
</contentstore>
</store>
<scope match="/" store="jdbc"/>
</definition>
<configuration>
<!-- Actions mapping -->
<default-action>/actions</default-action>
<read-object>/actions/read</read-object>
<create-object>/actions/write</create-object>
<remove-object>/actions/write</remove-object>
<grant-permission>/actions/manage</grant-permission>
<revoke-permission>/actions/manage</revoke-permission>
<read-permissions>/actions/manage</read-permissions>
<lock-object>/actions/write</lock-object>
<kill-lock>/actions/manage</kill-lock>
<read-locks>/actions/read</read-locks>
<read-revision-metadata>/actions/read</read-revision-metadata>
<create-revision-metadata>/actions/write</create-revision-metadata>
<modify-revision-metadata>/actions/write</modify-revision-metadata>
<remove-revision-metadata>/actions/write</remove-revision-metadata>
<read-revision-content>/actions/read</read-revision-content>
<create-revision-content>/actions/write</create-revision-content>
<modify-revision-content>/actions/write</modify-revision-content>
<remove-revision-content>/actions/write</remove-revision-content>
<!-- Paths configuration -->
<userspath>/users</userspath>
<guestpath>guest</guestpath>
<filespath>/files</filespath>
<parameter name="dav">true</parameter>
<parameter name="standalone">true</parameter>
<!-- Roles definition -->
<role name="root">slideroles.basic.RootRole</role>
<role name="user">slideroles.basic.UserRole</role>
<role name="guest">slideroles.basic.GuestRole</role>
<!-- Users management -->
<auto-create-users>true</auto-create-users>
<!-- Default properties mapping -->
<default-property namespace
="http://jakarta.apache.org/slide/" name="password" value="" role="user"/>
</configuration>
<data>
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri="/">
<!-- Uncomment the following line to give all
permissions to
principals have the root role
--> <permission action="/actions" subject
="/users/jsugrue"/>
<permission action="/actions" subject="root"/>
<permission action="/actions" subject
="/users/root"/>
<permission action="/actions" subject
="/users/root"/>
<permission action="/actions/read" subject="/users"
inheritable="false"/>
<permission action="/actions/read" subject="nobody"
inheritable="false"/>
<!-- /users -->
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri="/users">
<permission action="/actions" subject="~"/>
<permission action="/actions" subject
="/users/guest" inheritable="true" negative="true"/>
<permission action="/actions/read" subject
="/users" inheritable="false"/>
<!-- Permission group example -->
<objectnode classname
="org.apache.slide.structure.GroupNode" uri="/users/groupA">
<objectnode classname
="org.apache.slide.structure.LinkNode" uri="/users/groupA/john" linkedUri
="/users/john"/>
<objectnode classname
="org.apache.slide.structure.LinkNode" uri="/users/groupA/root" linkedUri
="/users/root"/>
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri
="/users/groupA/singleGroupMember"/>
</objectnode>
<!-- /users/root represents the administrator
-->
<objectnode classname
="slideroles.basic.RootRoleImpl" uri="/users/root">
<revision>
<property namespace
="http://jakarta.apache.org/slide/" name="password">root</property>
</revision>
</objectnode>
<!-- /users/john represents an authenticated
user -->
<objectnode classname
="slideroles.basic.UserRoleImpl" uri="/users/john">
<revision>
<property namespace
="http://jakarta.apache.org/slide/" name="password">john</property>
</revision>
</objectnode>
<!-- /users/guest represents an authenticated
or
unauthenticated guest user -->
<objectnode classname
="slideroles.basic.GuestRoleImpl" uri="/users/guest">
<revision>
<property namespace
="http://jakarta.apache.org/slide/" name="password"/>
</revision>
</objectnode>
</objectnode>
<objectnode classname
="org.apache.slide.structure.ActionNode" uri="/actions">
<objectnode classname
="org.apache.slide.structure.ActionNode" uri="/actions/read"/>
<objectnode classname
="org.apache.slide.structure.ActionNode" uri="/actions/write"/>
<objectnode classname
="org.apache.slide.structure.ActionNode" uri="/actions/manage"/>
</objectnode>
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri="/files">
<!-- ### Give read/write/manage permission to
guest ###
Uncomment the following line to give permission to do
all
actions on /files to guest (unauthenticated users) -->
<!--
<permission action="/actions" subject="/users/guest"/>
-->
<permission action="/actions/manage" subject
="/users/john"/>
<permission action="/actions/write" subject="
+/users/groupA"/>
<permission action="/actions/read" subject
="nobody"/>
</objectnode>
<!-- DeltaV: default history and workspace paths
-->
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri="/history"/>
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri="/workspace"/>
<objectnode classname
="org.apache.slide.structure.SubjectNode" uri="/workingresource"/>
</objectnode>
</data>
</namespace>
<parameter name="historypath">/history</parameter>
<parameter name="workspacepath">/workspace</parameter>
<parameter name="workingresourcepath">/workingresource</parameter>
<parameter name="auto-version">checkout-checkin</parameter>
<parameter name="auto-version-control">true</parameter>
<parameter name="versioncontrol-exclude"></parameter>
<parameter name="checkout-fork">forbidden</parameter>
<parameter name="checkin-fork">forbidden</parameter>
</slide>
Best regards
James Sugrue
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org