Searching in Slide

2004-08-02 Thread Peder Nordvaller
Hi, I've been working with slide for a bit and it's been working just fine most of the 
time. I'm now working with a lot of content and nodes in Slide and the way I've been 
searching for things is getting sluggish. I am working directly towards the helpers 
but I'm not using the SearchImpl class because I haven't had time to check it out. 
When I search I get the children of a node and get their properties, check them for 
keywords and continue on with the childrens children in the same fashion. This is 
taking way too much time with some 60k nodes and I have had to do some caching to make 
it work at all in a useful way. 

My questions are: Is there any things I can do to speed up getting information out of 
nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to make use 
of it?

Sincerely, Peder Nordvaller

Re: Searching in Slide

2004-08-16 Thread Peder Nordvaller
Hi Ryan,
Thank you for the info on searching, will look into DASL and see if it works 
for our application! Perhaps you or anyone could answer a couple of more 
questions on Slide that I have, or direct me to a place where I can read up 
on them?

1) Is there a tool or script that can migrate data between different stores? 
For example right now I use the TxXMLFileDescriptorsStore as store for 
everything except content, but would like to move it over to a 
MySQL/RDBMS-Store (sp?). Is there an easy way to to this?

2) When using the slide realm in tomcat and accessing the webdav layer via 
IE on PC I often get two authentication-dialogs - the first one to login to 
the computer (as if I were accessing a network share), and after that the 
Webdav/HTTP Auth dialog. The first one can just be dismissed by pressing 
cancel, but is there a way to stop it from poping up at all? I don't really 
see why it would even appear as Webdav is on top of the HTTP-layer and 
should only care about the HTTP Auth? Or am I way off?

Sincerely, Peder
- Original Message - 
From: "Ryan Rhodes" <[EMAIL PROTECTED]>
To: "'Slide Users Mailing List'" <[EMAIL PROTECTED]>; "'Peder 
Nordvaller'" <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 2:41 PM
Subject: RE: Searching in Slide


Hi Peder,
Slide supports DASL queries through the webdav servlet.  You can query for
resources by property value, and perform full text search against the
content.
Text search against content is optimized by a Lucene index.  The 
properties
aren't currently indexed by Lucene, but I think full text search for
properties still works using a default brute force search.  I'm not sure
about the performance.

There isn't much documentation on search, but take a look at the
documentation for DASL.  Full Text search is done by having a contains
condition in the where clause.
I think there is also a new DASL implementation for one of the database
stores.
-Ryan Rhodes
-Original Message-
From: Peder Nordvaller [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 7:58 AM
To: Slide Users Mailing List
Subject: Searching in Slide
Hi, I've been working with slide for a bit and it's been working just fine
most of the time. I'm now working with a lot of content and nodes in Slide
and the way I've been searching for things is getting sluggish. I am 
working
directly towards the helpers but I'm not using the SearchImpl class 
because
I haven't had time to check it out. When I search I get the children of a
node and get their properties, check them for keywords and continue on 
with
the childrens children in the same fashion. This is taking way too much 
time
with some 60k nodes and I have had to do some caching to make it work at 
all
in a useful way.

My questions are: Is there any things I can do to speed up getting
information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how 
to
make use of it?

Sincerely, Peder Nordvaller

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Searching in Slide

2004-08-17 Thread Peder Nordvaller
Sounds simple and probably should work (would propertys follow though, or 
just the content?), but with 50k+ files weighing in over 60gb it is probably 
very time-consuming. Besides that, my experiences with large amounts of 
files and windows explorer isn't the best (it usually hangs after a little 
while). So there is no such tool available at all then?

Sincerely, Peder
- Original Message - 
From: "Warwick Burrows" <[EMAIL PROTECTED]>
To: "'Slide Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, August 16, 2004 7:17 PM
Subject: RE: Searching in Slide


For the first question, I have a suggestion that may be too simple and I
haven't thought it all out... But couldn't you create and mount the second
Slide store that you need then copy from the original store to the new 
store
using a dav client like windows explorer?

Warwick
-Original Message-
From: Peder Nordvaller [mailto:[EMAIL PROTECTED]
Sent: Monday, August 16, 2004 11:54 AM
To: 'Slide Users Mailing List'
Subject: Re: Searching in Slide
Hi Ryan,
Thank you for the info on searching, will look into DASL and see if it 
works

for our application! Perhaps you or anyone could answer a couple of more
questions on Slide that I have, or direct me to a place where I can read 
up
on them?

1) Is there a tool or script that can migrate data between different 
stores?

For example right now I use the TxXMLFileDescriptorsStore as store for
everything except content, but would like to move it over to a
MySQL/RDBMS-Store (sp?). Is there an easy way to to this?
2) When using the slide realm in tomcat and accessing the webdav layer via
IE on PC I often get two authentication-dialogs - the first one to login 
to
the computer (as if I were accessing a network share), and after that the
Webdav/HTTP Auth dialog. The first one can just be dismissed by pressing
cancel, but is there a way to stop it from poping up at all? I don't 
really
see why it would even appear as Webdav is on top of the HTTP-layer and
should only care about the HTTP Auth? Or am I way off?

Sincerely, Peder
- Original Message - 
From: "Ryan Rhodes" <[EMAIL PROTECTED]>
To: "'Slide Users Mailing List'" <[EMAIL PROTECTED]>; "'Peder
Nordvaller'" <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 2:41 PM
Subject: RE: Searching in Slide


Hi Peder,
Slide supports DASL queries through the webdav servlet.  You can query
for resources by property value, and perform full text search against
the content.
Text search against content is optimized by a Lucene index.  The
properties
aren't currently indexed by Lucene, but I think full text search for
properties still works using a default brute force search.  I'm not sure
about the performance.
There isn't much documentation on search, but take a look at the
documentation for DASL.  Full Text search is done by having a contains
condition in the where clause.
I think there is also a new DASL implementation for one of the
database stores.
-Ryan Rhodes
-Original Message-
From: Peder Nordvaller
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 7:58 AM
To: Slide Users Mailing List
Subject: Searching in Slide
Hi, I've been working with slide for a bit and it's been working just
fine most of the time. I'm now working with a lot of content and nodes
in Slide and the way I've been searching for things is getting
sluggish. I am working directly towards the helpers but I'm not using
the SearchImpl class because
I haven't had time to check it out. When I search I get the children of a
node and get their properties, check them for keywords and continue on
with
the childrens children in the same fashion. This is taking way too much
time
with some 60k nodes and I have had to do some caching to make it work at
all
in a useful way.
My questions are: Is there any things I can do to speed up getting
information out of nodes (properties etc)? How fast is the built-in
slide Search? Is there any documentation on how to
make use of it?
Sincerely, Peder Nordvaller

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Searching in Slide

2004-08-19 Thread Peder Nordvaller
Seems like I will have to write a tool myself then, will see how that goes 
:) My goal is only to move the metadata (not the actual content) into the 
database, so hopefully it'll be quicker than doing a full copy as well 
(where the content would be re-stored as well).

New question that has come up: When PUT:ing files via MacOS X (the built-in 
client) I'm getting some weird errors... first off it creates a fork-file 
called ._nameoforiginalfile and in the process it triest to lock both the 
original file and then this fork-file and put again, resulting in a webdav 
response saying that it could not perform the request due to the file being 
locked. This is the full method list of uploading one file:

"PROPFIND /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 404 -
"PROPFIND /fsserver/demo/thomas/Contents/PkgInfo HTTP/1.1" 404 -
"PROPFIND /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 404 -
"PUT /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 201 -
"PROPFIND /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 207 512
"GET /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 200 -
"PROPFIND /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 404 -
"PROPFIND /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 404 -
"PUT /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 201 -
"PROPFIND /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 207 514
"LOCK /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 200 767
"GET /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 200 -
"PUT /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 423 -
"PUT /fsserver/demo/thomas/._260OV_SS.pdf HTTP/1.1" 423 -
"LOCK /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 200 767
"PUT /fsserver/demo/thomas/260OV_SS.pdf HTTP/1.1" 423 -This seems like a 
very weird upload-request - especially the part beginning with the first 
LOCK-request, have anyone seen this before and know if there is something 
weird in the responses to the client that is causing this or is the 
webdav-client just acting up?

Regards, Peder
- Original Message - 
From: "Warwick Burrows" <[EMAIL PROTECTED]>
To: "'Slide Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 17, 2004 5:57 PM
Subject: RE: Searching in Slide


There's no tool that _I_ know of but then I'm still a newbie to this 
product
too.

And although you have a lot of files to copy you would still have to go
through the process of uploading them into the DB anyway so it is probably
no more time consuming than a tool would be.  I've had good results with
Slide and win explorer myself but haven't copied 60Gb :-) The one issue 
that
Kranga brought up is that although it will copy the properties of each 
file
too, some of the live properties like creation date, etc, will be changed.
Dead properties shouldn't but you would need to check which properties are
changed and compensate if you want the original values kept.

Warwick

-Original Message-
From: Peder Nordvaller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 8:57 AM
To: Slide Users Mailing List
Subject: Re: Searching in Slide
Sounds simple and probably should work (would propertys follow though, or
just the content?), but with 50k+ files weighing in over 60gb it is 
probably

very time-consuming. Besides that, my experiences with large amounts of
files and windows explorer isn't the best (it usually hangs after a little
while). So there is no such tool available at all then?
Sincerely, Peder
- Original Message - 
From: "Warwick Burrows" <[EMAIL PROTECTED]>
To: "'Slide Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, August 16, 2004 7:17 PM
Subject: RE: Searching in Slide


For the first question, I have a suggestion that may be too simple and
I haven't thought it all out... But couldn't you create and mount the
second Slide store that you need then copy from the original store to
the new store using a dav client like windows explorer?
Warwick
-Original Message-
From: Peder Nordvaller
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 16, 2004 11:54 AM
To: 'Slide Users Mailing List'
Subject: Re: Searching in Slide
Hi Ryan,
Thank you for the info on searching, will look into DASL and see if it
works
for our application! Perhaps you or anyone could answer a couple of
more questions on Slide that I have, or direct me to a place where I
can read up on them?
1) Is there a tool or script that can migrate data between different
stores?
For example right now I use the TxXMLFileDescriptorsStore as store for
everything except content, but would like to move it over to a
MySQL/RDBMS-Store (sp?). Is there an easy way to to this?
2) When using the slide realm in tomcat and accessing the webdav layer
via IE on PC I often get two authentication-dialogs - the first one t

Re: Searching in Slide

2004-08-31 Thread Peder Nordvaller
I've been trying some with DASL and the helpers (working directly towards 
the Slide API) and have some problems. When doing:

(where search, slideToken and depth are all ok, and searchXML a jdom Element 
as below:)
search.createSearchQuery("DAV:", searchXML, slideToken, depth);

with the following XML:


 
   
 

   
  
   
/files
1
   
  
 
  
   
 displayname
 myfile

   
  


I get the following error:
01 Sep 2004 00:28:21 - org.apache.slide.common.Domain - WARNING - Required 
element  not supplied
01 Sep 2004 00:28:21 - org.apache.slide.common.SlideException - DEBUG - 
org.apache.slide.search.BadQueryException: Required element  not 
supplied
at 
org.apache.slide.search.basic.BasicQueryImpl.getScope(BasicQueryImpl.java:386)
at 
org.apache.slide.search.basic.BasicSearchLanguage.parseQuery(BasicSearchLanguage.java:127)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:256)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:199)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:175)
...

But the from-tag is there just as it should according to the xml spec. of 
DASL, any ideas is gratefully accepted!?

Regards, Peder
- Original Message - 
From: "Peder Nordvaller" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 1:57 PM
Subject: Searching in Slide

Hi, I've been working with slide for a bit and it's been working just fine 
most of the time. I'm now working with a lot of content and nodes in Slide 
and the way I've been searching for things is getting sluggish. I am working 
directly towards the helpers but I'm not using the SearchImpl class because 
I haven't had time to check it out. When I search I get the children of a 
node and get their properties, check them for keywords and continue on with 
the childrens children in the same fashion. This is taking way too much time 
with some 60k nodes and I have had to do some caching to make it work at all 
in a useful way.

My questions are: Is there any things I can do to speed up getting 
information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to 
make use of it?

Sincerely, Peder Nordvaller 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Weird behaviour in transaction

2004-09-20 Thread Peder Nordvaller
I'm using Slide 2.1b1 and MySql41RDBMSAdapter to a 4.1 MySQL nodestore, securitystore, 
lockstore, revisiondescriptorstore and revisiondescriptorsstore.

When performing the following commands towards the slide helpers (ommitting irrelevant 
code):


token.begin();   // Start transaction

collection = new SubjectNode( "/files/test");
revisionDescriptor = new NodeRevisionDescriptor();
  ... fill up revisionDescriptor...
structure.create(slideToken, collection, "/files/test");
content.create(slideToken, "/files/test", revisionDescriptor, null);

collection = new SubjectNode( "/files/test/sub1");
revisionDescriptor = new NodeRevisionDescriptor();
  ... fill up revisionDescriptor...
structure.create(slideToken, collection, "/files/test/sub1");
content.create(slideToken, "/files/test", revisionDescriptor, null);

collection = new SubjectNode( "/files/test/sub2");
revisionDescriptor = new NodeRevisionDescriptor();
  ... fill up revisionDescriptor...
structure.create(slideToken, collection, "/files/test/sub2");
content.create(slideToken, "/files/test", revisionDescriptor, null);

token.commit();

All the nodes are created just fine, as they should, but only the last node under 
/files/test (/files/test/sub2) is added as a child to /files/test. (this is the only 
one that ends up in the BINDING table). If I manually add a row in the BINDING table 
to link the other node (/files/test/sub1) it is listed - but shouldn't the transaction 
be able to handle this scenario?

Another issue (well, kinda) I have is when I do two changes to a node and do 
content.store() on it within a single transaction (pseudocode):

token.begin();
nrd = content.retrieve("/files/test");
.. change NodeRevisionDescriptor..
content.store(nrd,"/files/test");
nrd = content.retrieve("/files/test");
.. change NodeRevisionDescriptor again
content.store(nrd,"/files/test");
token.commit();

This time only the last change is actually stored in the database. Now, this one I 
probably could understand as I overwrite the change before I actually do the commit, 
but it was a bit unclear when I only added new properties to the 
NodeRevisionDescriptor thinking that they both would be added in the commit?

Regards, Peder




Re: Weird behaviour in transaction

2004-09-24 Thread Peder Nordvaller
Anyone?
- Original Message - 
From: "Peder Nordvaller" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 10:56 PM
Subject: Weird behaviour in transaction

I'm using Slide 2.1b1 and MySql41RDBMSAdapter to a 4.1 MySQL nodestore, 
securitystore, lockstore, revisiondescriptorstore and 
revisiondescriptorsstore.

When performing the following commands towards the slide helpers (ommitting 
irrelevant code):

   token.begin();   // Start transaction
   collection = new SubjectNode( "/files/test");
   revisionDescriptor = new NodeRevisionDescriptor();
 ... fill up revisionDescriptor...
   structure.create(slideToken, collection, "/files/test");
   content.create(slideToken, "/files/test", revisionDescriptor, null);
   collection = new SubjectNode( "/files/test/sub1");
   revisionDescriptor = new NodeRevisionDescriptor();
 ... fill up revisionDescriptor...
   structure.create(slideToken, collection, "/files/test/sub1");
   content.create(slideToken, "/files/test", revisionDescriptor, null);
   collection = new SubjectNode( "/files/test/sub2");
   revisionDescriptor = new NodeRevisionDescriptor();
 ... fill up revisionDescriptor...
   structure.create(slideToken, collection, "/files/test/sub2");
   content.create(slideToken, "/files/test", revisionDescriptor, null);
   token.commit();
All the nodes are created just fine, as they should, but only the last node 
under /files/test (/files/test/sub2) is added as a child to /files/test. 
(this is the only one that ends up in the BINDING table). If I manually add 
a row in the BINDING table to link the other node (/files/test/sub1) it is 
listed - but shouldn't the transaction be able to handle this scenario?

Another issue (well, kinda) I have is when I do two changes to a node and do 
content.store() on it within a single transaction (pseudocode):

   token.begin();
   nrd = content.retrieve("/files/test");
   .. change NodeRevisionDescriptor..
   content.store(nrd,"/files/test");
   nrd = content.retrieve("/files/test");
   .. change NodeRevisionDescriptor again
   content.store(nrd,"/files/test");
   token.commit();
This time only the last change is actually stored in the database. Now, this 
one I probably could understand as I overwrite the change before I actually 
do the commit, but it was a bit unclear when I only added new properties to 
the NodeRevisionDescriptor thinking that they both would be added in the 
commit?

Regards, Peder


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


security.revokePermission

2004-10-16 Thread Peder Nordvaller
Using Slide 2.1b and Mysql 4.1, when I do security.revokePermission() and 
revoke a negative permission on a node (which I have gotten from 
security.enumeratePermissions()), I can see the node again with the users 
affected (ie - it works). But the permission is still left in the 
mysql-database, and when I restart slide the permission I revoked is back in 
action again. It seems like the permission is removed from slides cache but 
not from the database? Has anyone encountered this or know what I could 
possibly be doing wrong?

Regards, Peder 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Slide concurrency / "sequential-mode"

2005-07-01 Thread Peder Nordvaller

Hello,

I've deployed a clean installation of Slide 2.1 (as a webapp/.war), and 
configured it to be used with MySQL 4.1 which works like a charm. However, 
when I try to upload several files that takes a while to transfer at once to 
a directory they seem to be uploaded sequentially which hinders concurrent 
performance when many users put files. I noticed the configuration-parameter 
"sequential-mode" that was set to full in the base installation of slide:


   
   full

But when I change it to "off" to allow concurrent puts of files, all PUT's 
done while another one is currently uploading eventually fails, with a 
Deadlock-error in the logs (see below). Is it not possible to turn off the 
sequential-mode to achieve better concurrency in Slide, or have I configured 
slide wrong in any way?


Regards, Peder


02 Jul 2005 00:00:53 - org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter - 
ERROR - SQL error 1205 on /files/test/David_o_Mickey_02.tif: Deadlock found 
when trying to get lock; Try restarting transaction message from server: 
"Lock wait timeout exceeded; try restarting transaction"
java.sql.SQLException: Deadlock found when trying to get lock; Try 
restarting transaction message from server: "Lock wait timeout exceeded; try 
restarting transaction"

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1906)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:997)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:296)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1325)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2247)
at 
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1586)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at 
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:273)
at 
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:416)
at 
org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:594)
at 
org.apache.slide.store.ExtendedStore.retrieveObject(ExtendedStore.java:574)

...
org.apache.slide.common.ServiceAccessException: Service 
[EMAIL PROTECTED] access error : Deadlock 
found when trying to get lock; Try restarting transaction message from 
server: "Lock wait timeout exceeded; try restarting transaction"
at 
org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter.createException(MySqlRDBMSAdapter.java:66)
at 
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:350)
at 
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:416)
... 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



multiple access to single namespace/store

2003-06-23 Thread Peder Nordvaller
I'm running two servlets using the same slide domain/namespace for both. The first one 
a modified version of the WebDAV servlet that comes with slide to allow DAV access to 
the namespace, basically does the same as the one that comes in the src-package. The 
other one is a servlet meant to use slide as cms-system for an application.

The problem I have is that if I add a node for example via one of the servlets, it 
doesn't appear in the other unless I restart tomcat and lets the servlets load all the 
database-info from scratch. I'm running mysql as nodestore and FileContentStore as 
contentstore. What am I doing wrong?

Sincerely, Peder


Re: multiple access to single namespace/store

2003-06-23 Thread Peder Nordvaller
Ah, that's true - placed all jars in the common/lib and works fine now,
thanks!

Peder

- Original Message -
From: "Martin Holz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 3:25 PM
Subject: Re: multiple access to single namespace/store


> "Peder Nordvaller" <[EMAIL PROTECTED]> writes:
>
> > I'm running two servlets using the same slide domain/namespace for both.
The first one a modified version of the WebDAV servlet that comes with slide
to allow DAV access to the namespace, basically does the same as the one
that comes in the src-packag
> e. The other one is a servlet meant to use slide as cms-system for an
application.
> >
> > The problem I have is that if I add a node for example via one of the
servlets, it doesn't appear in the other unless I restart tomcat and lets
the servlets load all the database-info from scratch. I'm running mysql as
nodestore and FileContentStore a
> s contentstore. What am I doing wrong?
>
>
> How do you start slide? You must make sure, that there is only one
instance of
> Domain running. I guess you started two indendent ones. Both servlet
> must load all slide classes through the same classloader. Either put both
> servlets into the same servlet context or put all slide jars into
> $CATALINA_HOME/common/lib (or whereever shared libs reside in your
> servlet container).
>
> --
> Martin Holz <[EMAIL PROTECTED]>
>
> Softwareentwicklung / Vernetztes Studium - Chemie
> FIZ CHEMIE Berlin
> Franklinstrasse 11
> D-10587 Berlin
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Slide-Admin

2003-06-28 Thread Peder Nordvaller
Check out http://www.mail-archive.com/[EMAIL PROTECTED]/ for a
lot of already resolved issues regarding Realms for Tomcat with Slide. There
is a weird thing about auth:ing against slide namespace (When Domain.xml is
read properly) using the sliderealm because users are added using a certain
namespace property.

Anyways. You can just recompile the servlet and use the Domain.init()-method
to load a Domain.xml from a specific URL. (Such as C:\Doman.xml etc.) to
avoid path-issues. Put it in the servlets config-params and load it from the
servlet configuration to make it more general after compile.

The reason it complains when you use sliderealm is because sliderealm uses
the slide domain/namespace and (I believe?) UserDatabaseRealm has no idea of
what slide even is so doesn't care about it. Since Domain.xml isn't loaded
it crashes and burns...

You can have several Realms and just set up one for your specific servlet.
See the configuration example at jakarta.apache.org/slide/ for an example of
how to use a slide-domain in your servlet-config file after you have
properly set up the sliderealm. Note that you need to have a few catalina
classes and such in common/lib for the sliderealm to work properly. (See
more in the above URL).

Going away for a week, hope this helps in any way.

Sincerely, Peder

- Original Message -
From: "Michael Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 28, 2003 10:12 PM
Subject: Re: Slide-Admin


> Ok more trial and error.  Here is what I did.
>
> First trying to get the SlideRealm included.
>
> Moved slide-catalinawrapper.jar to the server\lib directory of tomcat.
>
> Then I modified the tomcat server.xml
>
> after:
>  resourceName="UserDatabase" validate="true"/>
>
> added:
>  resourceName="SlideDatabase" validate="true"/>
>
> when I restart tomcat I get:
>
> stderr
>
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
>
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
)
> at
>
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> Caused by: org.apache.slide.common.DomainInitializationFailedError: Domain
> initialization error : Domain.xml (The system cannot find the file
> specified)
> at org.apache.slide.common.Domain.selfInit(Domain.java:733)
> at org.apache.slide.common.Domain.accessNamespace(Domain.java:266)
> at wrappers.catalina.SlideRealm.start(SlideRealm.java:219)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
> at
>
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
>
> When I comment out the element with the SlideRealm, tomcat starts with no
> error and Slide-Admin works.
>
> Why does it find Domain.xml in the bin directory with only the
> UserDatabaseRealm but not with the SlideRealm?
>
> Michael Oliver
> CTO/Matrix Intermedia
> 7391 S. Bullrider Ave.
> Tucson, AZ 85747
> Office (520)574-1150
> Cell (518)378-6154
>
>
> K.C. Baltz said:
> > I'll take a swing at some of these.
> >
> > Michael Oliver wrote:
> >
> >>Amplification - I have Tomcat 4.1 and Slide-Admin doesn't find
> >> Domain.xml when I have Tomcat running as a service...Problem 1 and
> >> question 1 how can I get Slide and Slide-Admin working on Tomcat 4.1
> >> when it is running as a service on Win2k AS?
> >>
> > In one of your servlets, try creating a file without specifying a
> > directory.  Then, search for that filename in Explorer.  It should be
> > created in the same place Tomcat is going to look for Domain.xml.
> >
> >
> >>Question three - I have just the UserDatabaseRealm configured now and
> >> root user with root role setup in Tomcat and I can access Slide-Admin
> >>okhowever all accesses to the WebDAV show transactions in the
> >> stdout for user/Guest no matter how I connect.  I tried MS WebFolders
> >> and it didn't challenge me for username and password and I tried the
> >> WebDrive client setup with root username and password, but still all
> >> activity in stdout shows users/guest.  Is this because I dont' have the
> >> slide-realm configured in Tomcat?
> >>
> >>
> > I don't think Slide will handle prompting for login.  Try protecting
> > your app with standard web.xml security configuration options.
> >
> >>Question four - if I can have more than one realm in Tomcat 4.1 then
> >> how do I do that?  I tried adding it to server.xml but it throws and
> >> exception that it couldn't find wrappers.calalina.

Re: ACL Question

2003-07-22 Thread Peder Nordvaller
Check if user2 has /actions/read permission that is inherited on /files.
Inherited permission means that the user will get /actions/read on all below
nodes (including new ones) as well. Not 100% on it, but you could try to set
a negative permission on newly created files to avoid it.

Sincerely, Peder

- Original Message -
From: "xiaohu" <[EMAIL PROTECTED]>
To: "slide-user" <[EMAIL PROTECTED]>
Sent: Tuesday, July 22, 2003 4:22 AM
Subject: ACL Question


> I have a simple Slide setup, with just two users plus the root user
> defined.  I am using the SlideRealm for authentication.  My question is
> as follows:
>
> 1. user1 logs into Slide and creates a file under /files, /files/test1
>
> 2. user2 logs into Slide, and he can see /files/test1, the file created
> by user1.  Why is this?  I did not give user2 any special permissions to
> look at other users' files.  How come he can see user1's files?  Is
> there a step I am missing when I created /files/test1, to enforce access
> control?
>
> Thanks for your help,
>
> xiaohu
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



åäö

2003-07-22 Thread Peder Nordvaller
Hello, have anyone had any success in making the WebDAV servlet using slide
compatible with chars such as the swedish åäö? Using internet explorer to
open the servlet as a web folder, I can create folders and such with those
chars, but when I try to change directory to that directory, the url is
translated from "åäö" to "%E5%E4%F6". How can I avoid/fix this? Do I have to
rewrite the slide webdav servlet to actually name them with %E5 etc but
display the real chars when listing contents of a dir or is there an easier
solution?

Sincerely, Peder



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: aao

2003-07-23 Thread Peder Nordvaller
Solved my problem, which was due to a bug in Internet Explorer apparently.
Was running the slide webdav servlet on Tomcat under port 8080, which IE
doesn't like. Changed to port 80 and works just fine.

More info here:

http://greenbytes.de/tech/webdav/webfolder-client-list.html (recognize that
url?=)

Sincerely, Peder




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Some newbie Security questions

2004-01-08 Thread Peder Nordvaller
Hello,

I'm writing an app that uses Slide, and I have some troubles understanding
the ACL/Security. What I would like to do is the following:

I have some users, for example:
/users/joe
/users/mary

That both have /actions/read on /files (not inherited). This works just
fine, they can read the /files but no nodes below. Now I have a "user
group": /users/MyGroup under which I have created a link /users/MyGroup/joe
to /users/joe. What I want to do is be able to grant /actions/read on
/files/somenode to /users/MyGroup (not inherited)- and with this make every
linked user in this group also get this permission, so that in this case joe
will also get /actions/read on /files/somenode. I would also like to be able
to link users in this manner to several user groups with permissions so that
the users get permissions from several groups. Is this possible? If so, what
could I be missing if it's not working? I'm currently using the1.0.16 build.

Regards, Peder




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Some newbie Security questions

2004-01-08 Thread Peder Nordvaller
What do you mean by authentication? I'm doing most of the stuff towards
slide using the api, so I'm creating a domain via Domain.init() and using
the helpers to check for permissions. Given the following Domain.xml the
user /users/joe (which is linked to in /users/MyGroup/joe) should be able to
have /actions/read on /files/test - correct?

After initializing slide, however:

security.checkPermission(new SubjectNode("/files/test"), new
SubjectNode("/users/joe), new ActionNode("/actions/read"));

throws an AccessDeniedException, but the following two does not:

security.checkPermission(new SubjectNode("/files/test"), new
SubjectNode("/users/MyGroup), new ActionNode("/actions/read"));
security.checkPermission(new SubjectNode("/files/test"), new
SubjectNode("/users/MyGroup/joe), new ActionNode("/actions/read"));


Following is my Domain.xml (which contains some other stuff used by my
application):





  


  

 com.mysql.jdbc.Driver
 jdbc:mysql://localhost/filestore
 root
 


  


  


  


  



 com.mysql.jdbc.Driver
 jdbc:mysql://localhost/filestore
 root
 

  
  




  
  /actions
  /actions/read
  /actions/write
  /actions/write
  /actions/manage
  /actions/manage
  /actions/manage
  /actions/write
  /actions/manage
  /actions/read
  /actions/read
  /actions/write
  /actions/write
  /actions/write
  /actions/read
  /actions/write
  /actions/write
  /actions/write

  
  /users
  guest
  /files
  true
  true

  
  slideroles.basic.RootRole
  slideroles.basic.UserRole
  slideroles.basic.GuestRole

  
  true






  

 
 


   
 true
   


  

  http://jakarta.apache.org/slide/";>root
  /users
  Root

  

  

  http://jakarta.apache.org/slide/";>guest
  /users
  Guest

  

   

  http://jakarta.apache.org/slide/";>joe
  /users
  User



   

  

   





  
  
  





   

  

   

  

 




 
 
 
 

 

  



  




Any ideas? Thanks for helping me!

Regards, Peder


- Original Message - 
From: "Martin Holz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 2:01 PM
Subject: Re: Some newbie Security questions


> "Peder Nordvaller" <[EMAIL PROTECTED]> writes:
>
> > Hello,
> >
> > I'm writing an app that uses Slide, and I have some troubles
understanding
> > the ACL/Security. What I would like to do is the following:
> >
> > I have some users, for example:
> > /users/joe
> > /users/mary
> >
> > That both have /actions/read on /files (not inherited). This works just
> > fine, they can read the /files but no nodes below. Now I have a "user
> > group": /users/MyGroup under which I have created a link
/users/MyGroup/joe
> > to /users/joe. What I want to do is be able to grant /actions/read on
> > /files/somenode to /users/MyGroup (not inherited)- and with this make
every
> > linked user in this group also get this permission, so that in this case
joe
> > will also get /actions/read on /files/somenode. I would also like to be
able
> > to link users in this manner to several user groups with permissions so
that
> > the users get permissions from several groups. Is this possible? If so,
what
> > could I be missing if it's not working? I'm currently using the1.0.16
build.
>
> This should work with 1.0.16 (but not the CVS HEAD). Could you send your
> Domain.xml? Also how do you do the authentication ?
>
>
> Martin
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Some newbie Security questions

2004-01-09 Thread Peder Nordvaller
Thanks Martin, that solved the problem - now setting permissions for groups
works just fine!

Another (related) question though: How can I enumerate the permissions for a
certain SubjectNode? The security.enumeratePermissions only seems to give me
what permissions affect a certain Object (for example
security.enumeratePermissions(slideToken, "/users") gives me an Enumeration
of all permissions that have object = /users). How can I do the reverse -
get an Enumeration of all permissions that have subject = *something* so
that I can list all permissions that a certain group has been granted for
example?

Regards, Peder


- Original Message - 
From: "Martin Holz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 09, 2004 3:25 PM
Subject: Re: Some newbie Security questions


> "Peder Nordvaller" <[EMAIL PROTECTED]> writes:
>
> > What do you mean by authentication? I'm doing most of the stuff towards
> > slide using the api, so I'm creating a domain via Domain.init() and
using
> > the helpers to check for permissions.
>
> I thought you use webdav and there was a mistake.
>
> > Given the following Domain.xml the
> > user /users/joe (which is linked to in /users/MyGroup/joe) should be
able to
> > have /actions/read on /files/test - correct?
> >
> > After initializing slide, however:
> >
> > security.checkPermission(new SubjectNode("/files/test"), new
> > SubjectNode("/users/joe), new ActionNode("/actions/read"));
> >
> > throws an AccessDeniedException, but the following two does not:
> >
> > security.checkPermission(new SubjectNode("/files/test"), new
> > SubjectNode("/users/MyGroup), new ActionNode("/actions/read"));
> > security.checkPermission(new SubjectNode("/files/test"), new
> > SubjectNode("/users/MyGroup/joe), new ActionNode("/actions/read"));
> >
> >
> > Following is my Domain.xml (which contains some other stuff used by my
> > application):
> >
> > 
> >
> >  > default="slide">
> >
> >   
> >
> > 
>[...]
> > 
> >
> > 
> [...]
> >
> >   
> >   /users
> >   guest
> >   /files
> >   true
> >   true
> >
> >   
> >   slideroles.basic.RootRole
> >   slideroles.basic.UserRole
> >   slideroles.basic.GuestRole
> >
> >   
> >   true
> >
> >
> > 
> >
> > 
> >
> >> uri="/">
> >
> >  
> >  
> >
> >  > uri="/users">
> >
> >  true
> >
> >
> >
> >> uri="/users/root">
> > 
> >> namespace="http://jakarta.apache.org/slide/";>root
> >   /users
> >   Root
> > 
> >   
> >
> >> uri="/users/guest">
> > 
> >> namespace="http://jakarta.apache.org/slide/";>guest
> >   /users
> >   Guest
> > 
> >   
> >
> >
> > 
> >> namespace="http://jakarta.apache.org/slide/";>joe
> >   /users
> >   User
> > 
> > 
> >
> > > uri="/users/MyGroup">
>
>   This should be a GroupNode, not a SubjectNode.
>
> >> uri="/users/MyGroup/joe" linkedUri="/users/joe"/>
> >
> >
> >
> > 
> >
> >  > uri="/actions">
> >
> >> uri="/actions/read"/>
> >> uri="/actions/write"/>
> >> uri="/actions/manage"/>
> >
> > 
> >
> >  > uri="/files">
> >
> >
> >
> >> uri="/files/test">
> >
> > > inherit="true" negative="false"/>
> >
> Add a + here, because it is group.
> subject="+/users/MyGroup"
>
> >   
> >
> >  
> >
> >
> >  > uri="/meta">
> >
> >   > uri="/meta/ContentType"/>
> >   > uri="/meta/ActionTemplate"/>
> >   > uri="/meta/PropertyTemplate"/>
> >   > uri="/meta/ImageMacro"/>
> >
> >  
> >
> >   
> >
> > 
> >
> >   
> >
> > 
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Slide/WebDAV and Mac

2004-02-02 Thread Peder Nordvaller
Hello!

I'm using slide 1.0.16. When using slide and storing files to slide via
webdav with Mac, the file that contains additional file information (type
etc.) that accompanies files on mac is added as a file (often called
._nameoforiginalfile) to slide and this is a bit annoying. Have anyone made
any changes to slide (or are there any already made in Slide 2.0, if so
where?) that takes care of this (filters out these meta-files and sets
content/filetype appropriatly for example) or have any ideas of how to take
care of this?

Sincerely, Peder



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Slide 1.0.16 Question

2004-03-25 Thread Peder Nordvaller
Hello,

I realize Slide 1.0.16 is outdated and isn't really supported any more, but
as I have a system running with it as a base and don't have the time to
update at the moment I have a quick question about it, if anyone have the
time to answer: If I have files in a FileContentStore, is there any way to
retrieve the actual path to a certain nodes content, if I would like to
access the files data without going through Slide?

Thankful for any hints (even references to where in the code the translation
between node-path and actual content is done so I can modify it myself to
achieve this).

Sincerely, Peder



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Slide2rc1 webdav weird behaviour

2004-04-09 Thread Peder Nordvaller
Hello, I just setup Slide 2 rc 1 and I experience a small bug(?) with the
webdav servlet... When creating a new folder IE creates a folder named "New
Folder". I then rename it and it works just fine. But when I refresh the IE
window the name "New Folder" reappears instead of the new name.

Doing a trace with Ethereal of the PROPFIND gives me for example:
...

/fsserver/bla


2004-04-09T16:05:05Z
Fri, 09 Apr 2004 16:05:05
GMT
0
New Folder (3)




HTTP/1.1 200 OK

















HTTP/1.1 404 Not Found


...

The displayname property does not update correctly when renaming (MOVE:ing)
the folder. Same thing with files (non-collections nodes). Is there
something I have set up wrong or is this something that needs to be fixed?
It could easily be added in the MoveMethod if so but might want to be done
in the Macro?

Regards, Peder Nordvaller



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Slide2rc1 users and groups

2004-04-09 Thread Peder Nordvaller
Is there any documentation regarding how to, via the Slide API, create
users, groups and permissions for these in Slide2? I'm coming directly from
1.0.16 where one created GroupNodes and UserRoleImpl objects but that seems
to be far from how it works today? Thankful for any pointers to docs,
snippets of code, or a brief explanation!

Regards, Peder Nordvaller



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: plz help on user role mapping

2004-04-10 Thread Peder Nordvaller
Hello,

I am too looking for some tips on how to create users, assign roles and
creates groups and permissions. I think I've found out how to assign a role
by some hints at the bottom of this page:
http://jakarta.apache.org/slide/howto-acl.html

Just set the property 'group-member-set' of the role so that it contains a
href to the new user. I.e. concatenate it with "/users/newuser" and the user should get that role.
This makes the webdav servlet work for new users at least.

Regards, Peder

- Original Message - 
From: "KeyEvent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 5:01 PM
Subject: plz help on user role mapping


> Hi there
>
> I can now add some users under /users folder as SubjectNode. But the
proble is that I can not find a way to assign the role to them, for example,
if I added an user call admin and want to him to act as root, how can I do
so?
>
> Thanks for any advice.
>
> Regards
>
>
>
>
>
> -
> Do You Yahoo!?
> 惠普TT游戏剧,玩游戏,中大奖!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Check Permissions on Groups

2004-04-12 Thread Peder Nordvaller
Is there any way to check what permissions a certain group or role has on a part of 
the /files tree in Slide 2rc1? I have managed to create groups and add users to them, 
as well as set permissions on groups that affect the users, and I can check their 
permissions just fine - but I can only check permissions on users and not groups. The 
only solution I can come up with is to create a unique user for _each_ group I create 
and add that user to the group, and check it's permission when I want to check the 
groups permission, but that can't possibly be the best way to do it? Hopefully?

Regards, Peder

Error when doing store & committing

2004-04-15 Thread Peder Nordvaller
Hi, when I try to store a revision to a node (content.store()) and commit, I get an 
exception:

org.apache.slide.store.txfile.rm.ResourceManagerException: Thread-14-1082064016763-6: 
Could not upgrade to commit lock for resource at '/files/fractal.jpg/thumb.jpg_1.0' 
(ERR_NO_LOCK)

together with some errors in the log:

15 Apr 2004 23:20:27 - org.apache.slide.store.txfile.AbstractTxFileStoreService - 
CRITICAL - Thread Thread[Thread-14,5,main] failed to prepare transaction branch 
Thread-14-1082064016763-6
15 Apr 2004 23:20:27 - org.apache.slide.transaction.SlideTransaction - WARNING - 
Prepare failure: Resource manager TxFileStore at D:\Slide2\store\store\content  
working on D:\Slide2\store\work\content Error code UNKNOWN in Transaction 6 xid 
Thread-14-1082064016763-6- in thread Thread-14

I've tried to lock the resource via lock.lock() but with no success. Does anyone know 
what I'm doing wrong?

Regards, Peder Nordvaller




Re: Error when doing store & committing

2004-04-20 Thread Peder Nordvaller
That would make sense, but I'm never getting a read-lock (at least not
explicitly, is it done implicitly by the structure or content-helper when
doing a retrieve?) that I could release?

I'm getting the same error when doing a macro.move() (recursive overwrite)
on a node but it happens only when I've recently created a node below -that-
node:

Say I have node /files/folder/image.jpg. I can move the folder to
/files/newfolder/image.jpg just fine to wherever I want using macro.move().
If I create a new node below that one at e.g.
/files/folder/image.jpg/thumb.jpg (read /files/folder/image.jpg latest
revision content, manipulate it and set the new node's content to it), and
then try to move the folder I get the above(and below)mentioned error:
Could not upgrade to commit lock for resource at
'/files/folder/image.jpg_1.0' (ERR_NO_LOCK)

Directly after creating the new node I look at the xml-documents for the
node /files/folder/image.jpg and it seems to contain no locks ().

If I restart tomcat and try to do the move, however, it works just fine to
move the folder with the created node (created before the restart).

Am I creating the new node in some wrong way?

Regards, Peder


- Original Message - 
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 10:10 AM
Subject: Re: Error when doing store & committing


> Hmmm, it seems here you have two transactions: One does a single read on
> a resources, but never frees the lock on it. The next tries to acquire a
> commit locks which needs the read lock to be released first. As this
> never happens it times out and tells you it could not commit. I'd
> suggest to find the spot where you acquire the read lock and make sure
> to release.
>
> Oliver
>
> Peder Nordvaller wrote:
>
> > Hi, when I try to store a revision to a node (content.store()) and
commit, I get an exception:
> >
> > org.apache.slide.store.txfile.rm.ResourceManagerException:
Thread-14-1082064016763-6: Could not upgrade to commit lock for resource at
'/files/fractal.jpg/thumb.jpg_1.0' (ERR_NO_LOCK)
> >
> > together with some errors in the log:
> >
> > 15 Apr 2004 23:20:27 -
org.apache.slide.store.txfile.AbstractTxFileStoreService - CRITICAL - Thread
Thread[Thread-14,5,main] failed to prepare transaction branch
Thread-14-1082064016763-6
> > 15 Apr 2004 23:20:27 - org.apache.slide.transaction.SlideTransaction -
WARNING - Prepare failure: Resource manager TxFileStore at
D:\Slide2\store\store\content  working on D:\Slide2\store\work\content Error
code UNKNOWN in Transaction 6 xid Thread-14-
> 1082064016763-6- in thread Thread-14
> >
> > I've tried to lock the resource via lock.lock() but with no success.
Does anyone know what I'm doing wrong?
> >
> > Regards, Peder Nordvaller
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error when doing store & committing

2004-04-21 Thread Peder Nordvaller
Solved it - if anyone is interested: It seems like when I read the content
of a node slides puts an implicit lock on it (saw this in the logs when
setting loglevel to 7). I was using the NodeRevisionContent.StreamContent()
to get the content later on in another transaction to save the data to
another node and this caused slide not to release the lock on the node I
read it from. By not using the inputstream and just getting the bytearray
and reading the content from that it released the lock! Probably should have
thought about using the Node's content across transactions like that...


- Original Message - 
From: "Peder Nordvaller" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 12:44 AM
Subject: Re: Error when doing store & committing


> That would make sense, but I'm never getting a read-lock (at least not
> explicitly, is it done implicitly by the structure or content-helper when
> doing a retrieve?) that I could release?
>
> I'm getting the same error when doing a macro.move() (recursive overwrite)
> on a node but it happens only when I've recently created a node
below -that-
> node:
>
> Say I have node /files/folder/image.jpg. I can move the folder to
> /files/newfolder/image.jpg just fine to wherever I want using
macro.move().
> If I create a new node below that one at e.g.
> /files/folder/image.jpg/thumb.jpg (read /files/folder/image.jpg latest
> revision content, manipulate it and set the new node's content to it), and
> then try to move the folder I get the above(and below)mentioned error:
> Could not upgrade to commit lock for resource at
> '/files/folder/image.jpg_1.0' (ERR_NO_LOCK)
>
> Directly after creating the new node I look at the xml-documents for the
> node /files/folder/image.jpg and it seems to contain no locks ().
>
> If I restart tomcat and try to do the move, however, it works just fine to
> move the folder with the created node (created before the restart).
>
> Am I creating the new node in some wrong way?
>
> Regards, Peder
>
>
> - Original Message - 
> From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
> To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 10:10 AM
> Subject: Re: Error when doing store & committing
>
>
> > Hmmm, it seems here you have two transactions: One does a single read on
> > a resources, but never frees the lock on it. The next tries to acquire a
> > commit locks which needs the read lock to be released first. As this
> > never happens it times out and tells you it could not commit. I'd
> > suggest to find the spot where you acquire the read lock and make sure
> > to release.
> >
> > Oliver
> >
> > Peder Nordvaller wrote:
> >
> > > Hi, when I try to store a revision to a node (content.store()) and
> commit, I get an exception:
> > >
> > > org.apache.slide.store.txfile.rm.ResourceManagerException:
> Thread-14-1082064016763-6: Could not upgrade to commit lock for resource
at
> '/files/fractal.jpg/thumb.jpg_1.0' (ERR_NO_LOCK)
> > >
> > > together with some errors in the log:
> > >
> > > 15 Apr 2004 23:20:27 -
> org.apache.slide.store.txfile.AbstractTxFileStoreService - CRITICAL -
Thread
> Thread[Thread-14,5,main] failed to prepare transaction branch
> Thread-14-1082064016763-6
> > > 15 Apr 2004 23:20:27 - org.apache.slide.transaction.SlideTransaction -
> WARNING - Prepare failure: Resource manager TxFileStore at
> D:\Slide2\store\store\content  working on D:\Slide2\store\work\content
Error
> code UNKNOWN in Transaction 6 xid Thread-14-
> > 1082064016763-6- in thread Thread-14
> > >
> > > I've tried to lock the resource via lock.lock() but with no success.
> Does anyone know what I'm doing wrong?
> > >
> > > Regards, Peder Nordvaller
> > >
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



+ in an URI

2004-06-14 Thread Peder Nordvaller
Hello,

I'm having some troubles with '+' in filenames/URI's in Slide. I can create nodes with 
the + sign in them just fine (either via Slide or PUT's via webdav), but when I try to 
access the file(s)/folders via WebDAV in Internet Explorer the + is interpretted as a 
space and hence the file isn't found. Even if I encode the + to %2B I can't seem to 
retrieve the file properly. Have someone noticed this as well and perhaps found a 
solution to the problem? Like encoding the URI of the node in dav some way or?

Sincerely, Peder