Testsuite

2005-03-16 Thread Denis Zvonov
Hi guys,
Are there any documentation (or description or any other useful info) on 
Slide WebDAV Testsuite (found in Slide CVS tree) exist?

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


DASL questions

2005-03-16 Thread Luke Noel-Storr
Hi,
Sorry if this has been asked an answered previously, only there no 
longer seems to be a search feature on the mail asrchive, and searching 
it with Google returned nothing helpful.

Anyway, I have a couple of problems using DASL:
Firstly setting the depth to infinity, seem to actually set it to 
somewhere around 3, rather than infinity.  For example, if I have the 
following:

D:scope
   D:hrefproject/Demo/data/funds/D:href
   D:depthinfinity/D:depth
/D:scope
no results are returned, but if I use:
D:scope
   D:hrefproject/Demo/data/funds/1002/D:href
   D:depthinfinity/D:depth
/D:scope
two results are returned.
Am I doing something wrong, or is this a bug (or just how it works)?
Next, when I've tried to use database powered DASL serach by adding the 
following line to my config

parameter name=use-rdbms-expression-factorytrue/parameter
I get the following warning:
16 Mar 2005 12:30:46 - org.apache.slide.common.Domain - WARNING -
http8080-Processor25, 16-Mar-2005 12:30:46, luke, SEARCH, 400 Bad 
Request, 750 ms, /files

and no results.  The line above in my log files shows the SQL that was 
being executed, and it seems the problem is that it isn't Oracle 
friendly.  Any suggestions?

Cheers
Luke.
-

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


RE: DASL questions

2005-03-16 Thread Miguel Figueiredo

Hello Luke,

 See some comments inline below.

May the force be with you,
Miguel Figueiredo


-Original Message-
From: Luke Noel-Storr [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 16 de Março de 2005 12:34
To: Slide Users Mailing List
Subject: DASL questions

Hi,

Sorry if this has been asked an answered previously, only there no 
longer seems to be a search feature on the mail asrchive, and searching 
it with Google returned nothing helpful.

Miguel   There is a site that is taking care of it now. It's independent
Miguel from Apache, but it's better than nothing. Also I believe that the
Miguel archive at http://www.archivum.info/slide-user@jakarta.apache.org/
Miguel only contains the last six months... again, it's better than
Miguel nothing. The development mailing list is also being archived.

Anyway, I have a couple of problems using DASL:

Firstly setting the depth to infinity, seem to actually set it to 
somewhere around 3, rather than infinity.  For example, if I have the 
following:

D:scope
D:hrefproject/Demo/data/funds/D:href
D:depthinfinity/D:depth
/D:scope

no results are returned, but if I use:

D:scope
D:hrefproject/Demo/data/funds/1002/D:href
D:depthinfinity/D:depth
/D:scope

two results are returned.

Am I doing something wrong, or is this a bug (or just how it works)?


Miguel I believe you're using it correctly. Check the depth-limit parameter
Miguel in the WEB-INF\web.xml file of slide webapp:
Miguel  This init-parameter determines the depth limit for PROPFIND and
Miguel othermethods, to avoid performance hits on the server for
Miguel requests with infinite depth. The default value is '3'.

Next, when I've tried to use database powered DASL serach by adding the 
following line to my config

parameter name=use-rdbms-expression-factorytrue/parameter

I get the following warning:

16 Mar 2005 12:30:46 - org.apache.slide.common.Domain - WARNING -
http8080-Processor25, 16-Mar-2005 12:30:46, luke, SEARCH, 400 Bad 
Request, 750 ms, /files

and no results.  The line above in my log files shows the SQL that was 
being executed, and it seems the problem is that it isn't Oracle 
friendly.  Any suggestions?

Miguel Hmm... that's the trick part. Are you using the oracle rdbms
Miguel adapter?

Cheers

Luke.
-




-
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: DASL questions

2005-03-16 Thread Luke Noel-Storr
Miguel Figueiredo wrote:
Miguel I believe you're using it correctly. Check the depth-limit parameter
Miguel in the WEB-INF\web.xml file of slide webapp:
Miguel  This init-parameter determines the depth limit for PROPFIND and
Miguel othermethods, to avoid performance hits on the server for
Miguel requests with infinite depth. The default value is '3'.
 

Ah, cheers, I'll have a look at that, I guess that's probably the problem.
Next, when I've tried to use database powered DASL serach by adding the 
following line to my config

parameter name=use-rdbms-expression-factorytrue/parameter
I get the following warning:
16 Mar 2005 12:30:46 - org.apache.slide.common.Domain - WARNING -
http8080-Processor25, 16-Mar-2005 12:30:46, luke, SEARCH, 400 Bad 
Request, 750 ms, /files

and no results.  The line above in my log files shows the SQL that was 
being executed, and it seems the problem is that it isn't Oracle 
friendly.  Any suggestions?

Miguel Hmm... that's the trick part. Are you using the oracle rdbms
Miguel adapter?
 

Yep, that's the one.  I guess the relevant methods for this haven't been 
overridden in the oracle adapter, or something.

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


Re: Compression options for TxFileContentStore, TxXMLFileDescriptorsStore?

2005-03-16 Thread Oliver Zeigermann
There is no such option, but patches for that would be welcome.

Oliver


On Fri, 11 Mar 2005 09:54:21 -0500, Darren Hartford
[EMAIL PROTECTED] wrote:
 Hey all,
 I may just be blind and not see how to set it up, but is there any
 configuration options for the 'TxFileContentStore' to auto-compress (and
 uncompress) object files?  Something similar for the
 TxXMLFileDescriptorsStore would be nice too for large-volume stores (for
 TxXMLFileDescriptorsStore, obviously if compressed highly recommend
 using Lucene indexing for searching instead of default DASL search).
 
 Thanky,
 -D
 


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



Locking Question

2005-03-16 Thread John Gilbert

I have successfully locked a resource. However, when I try to unlock it the 
return value of WebResource.unlock() is false, but the status code is 200. The 
resource stays locked. Any ideas why I am getting these conflicting messages? 
Is there a way to see the actual XML that is returned?

Here are examples of my method calls.

lockMethod(path, user, LockMethod.TIMEOUT_INFINITY, LockMethod.SCOPE_EXCLUSIVE)
unlockMethod(path, user)

Also, it only seems that I have this problem when I lock the resource in one 
session and then come back later and try to unlock in a different session (same 
user).

Thanks
John


Re: Recent behavior change

2005-03-16 Thread John Rousseau
Anyone with any thoughts on this?
Can others run litmus against their server running recent HEAD code?
Thanks
-John
John Rousseau wrote:
I just updated to HEAD after ignoring our WebDAV gateway for several (6 
or so) weeks. I'm using the WCK (this obviously stands for WebDAV For 
Dummies, I just don't know in what language :-P ).

With the latest code, several of the the litmus 
(http://www.webdav.org/neon/litmus/) copymove tests are failing. I can 
reproduce this with the slide webdavclient. For example a simple COPY 
source destination through the webdav client returns a 412 Precondition 
failed because destination already exists. If I trace the calls I see 
the WCK setResourceContent() being called correctly and then I see a 
subsequent createFolder() call on the same resource. This is the call 
that fails and generates the error that the client is seeing (because 
the resource already exists).

The ContentImpl is trying to store the revision descriptor after storing 
the content, and that's why I'm getting called with the createFolder().

I'm configured to not use DeltaV in slide.properties. This worked 
correctly before I updated the codebase. Bug or configuration issue?

Here's a call trace from the WCK createFolder.
Ideas?
Thanks!
-John
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1101)
at 
com.ris.manager.gateway.http.WebdavStoreImpl.createFolder(WebdavStoreImpl.java:198) 

at 
org.apache.slide.simple.store.WebdavStoreAdapter$TransactionId.storeRevisionDescriptor(WebdavStoreAdapter.java:733) 

at 
org.apache.slide.simple.store.WebdavStoreAdapter.storeRevisionDescriptor(WebdavStoreAdapter.java:295) 

at 
org.apache.slide.store.AbstractStore.storeRevisionDescriptor(AbstractStore.java:1373) 

at 
org.apache.slide.store.ExtendedStore.storeRevisionDescriptor(ExtendedStore.java:1093) 

at 
org.apache.slide.content.ContentImpl.create(ContentImpl.java:607)
at org.apache.slide.macro.MacroImpl.copyObject(MacroImpl.java:838)
at org.apache.slide.macro.MacroImpl.copy(MacroImpl.java:274)
at 
org.apache.slide.webdav.method.CopyMethod.executeRequest(CopyMethod.java:202) 

at 
org.apache.slide.webdav.method.AbstractWebdavMethod.executeRedirect(AbstractWebdavMethod.java:586) 

at 
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:419) 

at 
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)


--
John Rousseau
Archivas, Inc.
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Locking Question

2005-03-16 Thread Warwick Burrows

You _may_ need to make a lock discovery call before you go to unlock a
file. That will go out to Slide and pick up the list of current locks
for the resource. The locks are kept in the WebdavResource object that
you construct to lock the resource but if you use another WebdavResource
to unlock it then you need to first discover what locks the resource
has. I made this change to my client at one stage when I noticed that
the locks weren't passed to the server during checkin/checkout calls on
resources that were already locked. There's a discoverOwnLocks(String
user) method in the WebdavResource that lets you discover the locks for
a particular user.

Now having said this I would have thought that any locks on the resource
should be discovered automatically when you construct the WebdavResource
object with at least the BASIC action as this level of property detail
fetches the lock details. But from a quick look at the
setWebdavProperties() call it looks like we fetch the lock discovery
property but it isn't processed into a list of active locks that is kept
in the resource state. Calling discoverLock() does do this. New locks
are also added to this list whenever the lockMethod is called.

Warwick



 -Original Message-
 From: John Gilbert [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 16, 2005 3:20 PM
 To: slide-user@jakarta.apache.org
 Subject: Locking Question
 
 
 
 I have successfully locked a resource. However, when I try to 
 unlock it the return value of WebResource.unlock() is false, 
 but the status code is 200. The resource stays locked. Any 
 ideas why I am getting these conflicting messages? Is there a 
 way to see the actual XML that is returned?
 
 Here are examples of my method calls.
 
 lockMethod(path, user, LockMethod.TIMEOUT_INFINITY, 
 LockMethod.SCOPE_EXCLUSIVE) unlockMethod(path, user)
 
 Also, it only seems that I have this problem when I lock the 
 resource in one session and then come back later and try to 
 unlock in a different session (same user).
 
 Thanks
 John
 

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



Re: Testsuite

2005-03-16 Thread James Mason
There's some documentation in CVS along with the sources. I don't know
how complete it is. If you don't want to check out a working copy you
can view it at
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/testsuite/

-James

On Wed, 2005-03-16 at 11:03 +0300, Denis Zvonov wrote:
 Hi guys,
 
 Are there any documentation (or description or any other useful info) on 
 Slide WebDAV Testsuite (found in Slide CVS tree) exist?
 
 Thanks,
 Denis
 
 -
 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]