Hi,
I'm using Slide 2.1 on Tomcat 4.1.30.
Problem:
========
When I change the permissions on objects in the store I have the following
error:
WARNING: No active transaction
The modification to the ACL of the object works fine until I restart the
application or the server. When I restart, all ACL's are reset to those
listed in Domain.xml.
The modifications to the ACL are not written in the xml metadata descriptors
of the objects.
I've tried a Domain.xml with or without auto-create-users and with
all-methods-in-transactions true or false, but this doesn't seem to affect
my problem.
Configuration:
==============
I've implemented a store for users starting from JNDIPrincipalStore. My
users are stored on a corporate database (this is read-only by the point of
view of my slide application).
The store loads the users correctly (I see them in the /users path).
Domain.xml
<?xml version="1.0"?>
<slide>
<namespace name="mmkt">
<definition>
<store name="tx">
<parameter name="tlock-timeout">120</parameter>
<nodestore
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
<parameter
name="rootpath">c:/Servers/slide/store/metadata</parameter>
<parameter
name="workpath">c:/Servers/slide/work/metadata</parameter>
<parameter name="defer-saving">true</parameter>
<parameter name="timeout">120</parameter>
</nodestore>
<sequencestore
classname="org.apache.slide.store.txfile.FileSequenceStore">
<parameter
name="rootpath">c:/Servers/slide/store/sequence</parameter>
</sequencestore>
<securitystore>
<reference store="nodestore"/>
</securitystore>
<lockstore>
<reference store="nodestore"/>
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore"/>
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore"/>
</revisiondescriptorstore>
<contentstore
classname="org.apache.slide.store.txfile.TxFileContentStore">
<parameter
name="rootpath">c:/Servers/slide/store/content</parameter>
<parameter
name="workpath">c:/Servers/slide/work/content</parameter>
<parameter name="defer-saving">true</parameter>
<parameter name="timeout">120</parameter>
</contentstore>
</store>
<store name="users">
<parameter name="tlock-timeout">120</parameter>
<nodestore
classname="it.planecom.slide.store.db.JDBCPrincipalStore">
</nodestore>
<securitystore>
<reference store="nodestore"/>
</securitystore>
<lockstore>
<reference store="nodestore"/>
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore"/>
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore"/>
</revisiondescriptorstore>
<contentstore>
<reference store="nodestore"/>
</contentstore>
</store>
<scope match="/" store="tx"/>
<scope match="/actions" store="tx"/>
<scope match="/users" store="users"/>
<scope match="/files" store="tx"/>
</definition>
<configuration>
<!-- Actions mapping -->
[...]
<!-- Paths configuration -->
<userspath>/users</userspath>
<actionspath>/actions</actionspath>
<filespath>/files</filespath>
<parameter name="dav">true</parameter>
<parameter name="standalone">true</parameter>
<parameter name="acl_inheritance_type">path</parameter>
<parameter name="sequential-mode">full</parameter>
<parameter name="all-methods-in-transactions">false</parameter>
<parameter name="force-lowercase-login">false</parameter>
<parameter name="auto-create-users">true</parameter>
</configuration>
<data>
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/">
<permission action="/actions/read" subject="all"
inheritable="false"/>
<!-- /users -->
<objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users">
<permission action="/actions/read"
subject="authenticated" inheritable="true"/>
<permission action="all" subject="unauthenticated"
inheritable="true" negative="true"/>
</objectnode>
<!-- /actions -->
<objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions">
[... Default actions configuration ...]
</objectnode>
<!-- /files -->
<objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/files">
[... Initial paths and permissions ...]
</objectnode>
<!-- DeltaV: default history and workspace paths -->
<objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/history">
<permission action="all" subject="unauthenticated"
inheritable="true"/>
<permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
</objectnode>
<objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/workspace">
<permission action="all" subject="unauthenticated"
inheritable="true"/>
<permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
</objectnode>
<objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/workingresource">
<permission action="all" subject="unauthenticated"
inheritable="true"/>
<permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
</objectnode>
</objectnode>
</data>
</namespace>
[...]
</slide>
Any help is appreciated.
Bye.
____________________
Andrea Colleoni
PlaneCom S.r.l.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]