RE: A question on Http Connection obtained by WebdavResoruce

2005-02-09 Thread Ritu Kedia
Warwick,

Thanks for your reply.

The HttpConnection that I am referring to is 
method.releaseConnection() after the method is executed.

Calling this method would just close the current request and not re-set the
HttpClient state. In other words the HttpClient will still hold on to any
cookies from the previous handshake and the next Method execution would not
have to re-authenticate. So you would still be able to use the same
WebdavResource by setting a new path to perform another operation.
Calling releaseConnection may also be useful for uploading files with
Transfer-Encoding:Chunked. Certain WebServers/AppServers expect an explicit
client close connection as an indication for end of stream.

Could there be any other reason for not releasing the connection? Or is this
just an oversight?

Thanks,
Ritu



-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 9:54 PM
To: Slide Users Mailing List
Subject: RE: A question on Http Connection obtained by WebdavResoruce



I believe this was a design choice to allow connections to be reused
(persistent connections) rather than opening/closing a connection on
every DAV method call. For example I have one webdavresource per thread
and reuse the webdavresource by making use of the setPath() command to
change the resource target for the webdavresource or by using the
methods that take a path to specify which resource is the target of the
method call.

Warwick


> -Original Message-
> From: Ritu Kedia [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 08, 2005 1:36 AM
> To: Slide Users Mailing List (E-mail)
> Subject: A question on Http Connection obtained by WebdavResoruce
> 
> 
> Hello,
> 
> I was looking into a caching solution to cache the 
> WebdavResource obtained for a user so as to avoid the time 
> taken to re-authenticate that user to Slide App. In doing so 
> I came across the way the HttpClient is managed by the 
> WebdavResource. After execution of any method the 
> HttpConnection is not being released. Is there any specific 
> reason for this? 
> 
> On Commons HttpClient
> site(http://jakarta.apache.org/commons/httpclient/tutorial.htm
> l) it is mentioned that "It is important to always release 
> the connection regardless of whether the server returned an 
> error or not."
> 
> If the connection is not released when will it be closed by 
> default? I believe that would depend on the ConnectionTimeout 
> setting of HttpClient. However I saw that in WebdavSession 
> the timeout is not being explicitly set, so the default value 
> of 0 must be applied. In this case when would the connection 
> be closed? Would it then depend on the server timeout 
> settings? Anyone having any knowledge of these issues, please 
> do reply.
> 
> Thanks,
> Ritu
> 
> 
> -
> 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]



A question on Http Connection obtained by WebdavResoruce

2005-02-07 Thread Ritu Kedia
Hello,

I was looking into a caching solution to cache the WebdavResource obtained
for a user so as to avoid the time taken to re-authenticate that user to
Slide App. In doing so I came across the way the HttpClient is managed by
the WebdavResource. After execution of any method the HttpConnection is not
being released. Is there any specific reason for this? 

On Commons HttpClient
site(http://jakarta.apache.org/commons/httpclient/tutorial.html) it is
mentioned that "It is important to always release the connection regardless
of whether the server returned an error or not."

If the connection is not released when will it be closed by default? I
believe that would depend on the ConnectionTimeout setting of HttpClient.
However I saw that in WebdavSession the timeout is not being explicitly set,
so the default value of 0 must be applied. In this case when would the
connection be closed? Would it then depend on the server timeout settings?
Anyone having any knowledge of these issues, please do reply.

Thanks,
Ritu


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



RE: A question on TxFileStore configured with Binding Store

2005-02-04 Thread Ritu Kedia
Posting this mail again If anyone is using TxFileStore with Binding
Store or has knowledge about it.. please see my question below.

Thanks,
Ritu

-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 02, 2005 11:55 AM
To: Slide Users Mailing List (E-mail)
Subject: A question on TxFileStore configured with Binding Store


Hello All,

Is anyone using TxFileStore with BindingStore? I have a question on the way
the files are stored in the file system when using Binding Store. 

In Binding Store the resources are identified by a Unique Id instead of the
resource path and they are stored by the Id name directly under the store's
top level content directory configured in Domain.xml.

My question is that since all the resources are stored directly under a
single content directory will this not cause performance issues as the no.
of files grows very large? Please point out if I am missing something here
and if there is any config setting to create sub-directories under content
directory as the no. of files increases.

Thanks,
Ritu


-
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]



A question on TxFileStore configured with Binding Store

2005-02-01 Thread Ritu Kedia
Hello All,

Is anyone using TxFileStore with BindingStore? I have a question on the way
the files are stored in the file system when using Binding Store. 

In Binding Store the resources are identified by a Unique Id instead of the
resource path and they are stored by the Id name directly under the store's
top level content directory configured in Domain.xml.

My question is that since all the resources are stored directly under a
single content directory will this not cause performance issues as the no.
of files grows very large? Please point out if I am missing something here
and if there is any config setting to create sub-directories under content
directory as the no. of files increases.

Thanks,
Ritu


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



Does Slide support adding/removing Labels on Collections

2004-12-24 Thread Ritu Kedia
Hello All,

I would like to know whether Slide supports Adding/Removing labels on
Collections.

As per the DeltaV specs:
The request MAY include a Depth header.  If no Depth header is
included, Depth:0 is assumed.  Standard depth semantics apply, and
the request is applied to the collection identified by the
request-URL and to all members of the collection that satisfy the
Depth value.  If a Depth header is included and the request fails
on any resource, the response MUST be a 207 Multi-Status that
identifies all resources for which the request has failed.


I am using WebdavResource.labelMethod. But the resources in my collection
were not added the label. Could someone please clarify Slide's behavior?

Thanks,
Ritu




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



Question on Remove Label correct usage

2004-12-24 Thread Ritu Kedia
Hello All,

I have a question on the correct way of using WebdavResource.labelMethod for
removing a label.

boolean success = webdavResource.labelMethod(**path**, "label",
WebdavResource.LABEL_REMOVE)

In the above method "labelMethod" should **path** be the version path or the
resource path? In other words should **path** be something like
"/slide/history/1/1.0" or can it be "/slide/files/testingRemoveLabel.file".

I tried using resource path (i.e. "/slide/files/testingRemoveLabel.file"),
but it threw a 409 error. My resource has 2 versions: 1.0 and 1.1 of which
version 1.0 has been labeled. Ideally I expected the labelMethod to remove
the label from any version which has that label, given the resource path.
Could someone please point what am I doing wrong?

When I try removing label using the version path, of the specific version
which has that label, then it works fine. But this unnecessarily requires me
to first find which version has a given label. Am I missing something? 

Thanks,
Ritu
 




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



RE: Choosing between multiple namespace and multiple stores

2004-12-09 Thread Ritu Kedia
One big advantage of multiple namespaces is complete isolation of user,
history, roles, etc. all stores. I am not sure whether this is achievable
with multiple stores as well. At least with reference to the current thread
going around regarding incompatibility between history-collection-hack and
history folder separation per store, it appears that separating history
folder will not be possible (given that history-collection-hack is as good
as mandatory).

I tried configuring multiple namespaces by defining 2 servlets in web.xml
both using the same WebdavServlet Class.

webdav_ns1
Slide DAV Server

org.apache.slide.webdav.WebdavServlet

namespace
ns1

...


webdav_ns2
Slide DAV Server

org.apache.slide.webdav.WebdavServlet

namespace
ns2

...


webdav_ns1
/ns1/*


webdav_ns2
/ns2/*


In Domain.xml I have the 2 namespaces ns1 and ns2 defined. There is one
store defined in each of these namespaecs with the scope of the stores
defined as "/". I am able to access the 2 namespaces using:
http://hostname:portno/slide/ns1 and  http://hostname:portno/slide/ns2

I am even able to add resources and view them from either namespace. But the
resources are internally being added to and retrieved from the store
configured for the first namespace. So I see the same view from either
namespace. I am not sure whether this is a bug or there is some error in my
configuration.

Is anyone using multiple namespaces or has any knowledge about how they
should be configured? Please reply.

Thanks,
Ritu

-Original Message-
From: Mirko Froehlich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 10:22 PM
To: Slide Users Mailing List
Subject: Re: Choosing between multiple namespace and multiple stores


I asked the same question a little while ago. It sounds like the
advantages of using one configuration over the other are not entirely
clear. Multiple stores are much easier to configure than multiple
namespaces, so I would probably go with this configuration. I suppose
that using multiple namespaces might give you more control if you want
these namespaces to behave very differently (e.g. with regards to
versioning, permissions, etc.), but then again I don't really know.

-Mirko


On Wed, 2004-12-08 at 00:00, Ritu Kedia wrote:

> Could someone please point out the pros and cons of using multiple
> namespaces vs multiple stores. I have a requirement of configuring
multiple
> slide stores in a single App Instance. Each store will be used by a
> different set of people.
> I would also like to know if there are known issues with either
> configuration and which one would be more performant and stable.
> 
> Thanks,
> Ritu
> 
> 
> -
> 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]



Choosing between multiple namespace and multiple stores

2004-12-08 Thread Ritu Kedia
Could someone please point out the pros and cons of using multiple
namespaces vs multiple stores. I have a requirement of configuring multiple
slide stores in a single App Instance. Each store will be used by a
different set of people.
I would also like to know if there are known issues with either
configuration and which one would be more performant and stable.

Thanks,
Ritu


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



RE: Need help: Facing Connection reset: Read timed out: problem w hen invoking any method on WebdavResource after PUT

2004-10-14 Thread Ritu Kedia
Thanks a lot for the quick reply Ingo.

After sending out my first mail I did a small test: I explicitly closed the
HttpConnection at the end of the Put Method.
More specifically: I added the following lines at the end of the putMethod
of WebdavResource:
closeSession();
client = getSessionInstance(httpURL);

And yeah this fixed the problem. 

I don't have much experience with HttpUtil. I have a couple of questions:
1. What should be the expected behavior? Should the session have been closed
by default or is it something the program has to do explicitly?

2. Why does this problem surface only in case of Weblogic and not JBoss?

3. Will the above fix cause any other issues?

4. Is there any other better fix for this issue?

Thanks again,
Ritu

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 8:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Need help: Facing Connection reset: Read timed out: problem
when invoking any method on WebdavResource after PUT


The first thing that comes to my mind is that Weblogic might not be able to
handle the chunked transfer encoding correctly that is used when your
upload source is a stream. It looks like it cannot detect the end of
the request body.

I would rather expect this to be a Weblogic problem than a bug in
Httpclient since the latter doesn't give any problems with other
servers.

Ingo

> Hello all,
> 
> I am accessing Slide Server via Slide Client API (using WebdavResource).
> Slide is deployed on Weblogic App Server. I am facing a "Connection reset
:
> Read timed out" issue when accessing any method of WebdavResource after
PUT
> method. Has anyone faced a similar issue or has any idea of what is
causing
> this issue? 
> 
> Things to note:
> -- This error comes only when executing any method immediately after PUT.
> I.e. If I execute "putMethod" followed by a "proppatchMethod", I see the
> below stack trace.
> -- But very importantly the putMethod itself goes fine and the file gets
> uploaded to Slide server.
> -- It does not happen when executing any other 2 methods in succession.
For
> e.g. if I execute "copyMethod" followed by a "proppatchMethod", everything
> works fine.
> -- This error is only on WebLogic. It works fine on JBoss APP server.
> 
> It looks like this has something to do with the fact that the PUT method
> uploads a data stream, which is not being handled correctly by either
> WebLogic server or HttpClient (the way weblogic expects it).
> 
> I am pasting the stack trace of the Weblogic Server. Please help, if you
> have any idea. This is urgent for me. Any suggestions are also very
welcome.
> 
> java.net.SocketException: Connection reset at
> java.net.SocketInputStream.read(SocketInputStream.java:168)
> at
> weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:136)
> at
> weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:156)
> at
>
weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl
> .java:180)
> at
> org.apache.xerces.utils.ChunkyByteArray.fill(ChunkyByteArray.java:222)
> at
> org.apache.xerces.utils.ChunkyByteArray.(ChunkyByteArray.java:98)
> at
>
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac
> tory.java:153)
> at
>
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
> ultEntityHandler.java:493)
> at
> org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
> at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:455)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:769)
> at
>
org.apache.slide.webdav.method.AbstractWebdavMethod.parseRequestContent(Abst
> ractWebdavMethod.java:630)
> at
>
org.apache.slide.webdav.method.AbstractWebdavMethod.parseRequestContent(Abst
> ractWebdavMethod.java:599)
> at
>
org.apache.slide.webdav.method.PropPatchMethod.parseRequest(PropPatchMethod.
> java:160)
> at
>
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
> .java:314)
> at
> org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
> (ServletStubImpl.java:971)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :402)
> at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
> at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
> org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)
> 
> at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
>
weblogic.servlet.internal.WebAppServletContext$Servlet

Need help: Facing Connection reset: Read timed out: problem when invoking any method on WebdavResource after PUT

2004-10-14 Thread Ritu Kedia
Hello all,

I am accessing Slide Server via Slide Client API (using WebdavResource).
Slide is deployed on Weblogic App Server. I am facing a "Connection reset :
Read timed out" issue when accessing any method of WebdavResource after PUT
method. Has anyone faced a similar issue or has any idea of what is causing
this issue? 

Things to note:
-- This error comes only when executing any method immediately after PUT.
I.e. If I execute "putMethod" followed by a "proppatchMethod", I see the
below stack trace.
-- But very importantly the putMethod itself goes fine and the file gets
uploaded to Slide server.
-- It does not happen when executing any other 2 methods in succession. For
e.g. if I execute "copyMethod" followed by a "proppatchMethod", everything
works fine.
-- This error is only on WebLogic. It works fine on JBoss APP server.

It looks like this has something to do with the fact that the PUT method
uploads a data stream, which is not being handled correctly by either
WebLogic server or HttpClient (the way weblogic expects it).

I am pasting the stack trace of the Weblogic Server. Please help, if you
have any idea. This is urgent for me. Any suggestions are also very welcome.

java.net.SocketException: Connection reset at
java.net.SocketInputStream.read(SocketInputStream.java:168)
at
weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:136)
at
weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:156)
at
weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl
.java:180)
at
org.apache.xerces.utils.ChunkyByteArray.fill(ChunkyByteArray.java:222)
at
org.apache.xerces.utils.ChunkyByteArray.(ChunkyByteArray.java:98)
at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac
tory.java:153)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.java:493)
at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:455)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:769)
at
org.apache.slide.webdav.method.AbstractWebdavMethod.parseRequestContent(Abst
ractWebdavMethod.java:630)
at
org.apache.slide.webdav.method.AbstractWebdavMethod.parseRequestContent(Abst
ractWebdavMethod.java:599)
at
org.apache.slide.webdav.method.PropPatchMethod.parseRequest(PropPatchMethod.
java:160)
at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
.java:314)
at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6356)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at
weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:136)
at
weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:156)
at
weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl
.java:180)
at
org.apache.xerces.utils.ChunkyByteArray.fill(ChunkyByteArray.java:222)
at
org.apache.xerces.utils.ChunkyByteArray.(ChunkyByteArray.java:98)
at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac
tory.java:153)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.java:493)
at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
 

RE: can't set up the simplest possible example due to: followRedi rects is disabled problem

2004-09-21 Thread Ritu Kedia
Just a wild guess... try a "/" at the end of your URL. See if it works.
In other words.. try: http://oden/exchange/tobias/Notes/

The trailing / solved a similar follow redirects problem on WebSphere for
me. 

Regards,
Ritu

-Original Message-
From: Tobias Eriksson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 12:18 PM
To: Slide Users Mailing List
Subject: can't set up the simplest possible example due to:
followRedirects is disabled problem


Hi 

 I trying my first example ever with SLIDE and doesn't seem to get it
right.

I get a "followRedirects is disabled" response, but have absolutely no
idea why. So any help would be appreciated.

 

My aim is to access MS Exchange server so that I can update the public
folder for example. And of course if you have a better alternative to
accessing MS Exchange, then I'm more than happy to listen to any
suggestions. I have only found the Compoze-library which costs a lot of
money, and then SLIDE which I'm trying to use now.

 

The source code is as follows:

 

package com.tobias.webdav;

 

import java.io.File;

import java.io.IOException;

import java.net.MalformedURLException;

 

import org.apache.commons.httpclient.HttpException;

import org.apache.commons.httpclient.HttpURL;

import org.apache.webdav.lib.WebdavResource;

 

/**

 * @author tobias

 *

 * TODO To change the template for this generated type comment go to

 * Window - Preferences - Java - Code Style - Code Templates

 */

public class WebDAVTest {

   public static void main (String args[]) 

  {

  try

  {

  HttpURL hrl = new
HttpURL("http://oden/exchange/tobias/Notes";);

  hrl.setUserinfo("tobias","lindae77"); 

  WebdavResource wdr = new WebdavResource(hrl);

  File fn = new File("remote-file");

  String arr[] = wdr.list();

  int i=arr.length;

  while( --i >= 0 ) {

System.out.println( "["+i+"] "+arr[ i  ] );

  }

  wdr.close();

  }

  catch(MalformedURLException mue)

  {

  System.out.println( "exception "+mue );

  mue.printStackTrace();

  }

  catch(HttpException he)

  {

  System.out.println( "exception; "+he );

  he.printStackTrace();

  }

  catch(IOException ioe)

  {

  System.out.println( "exception; "+ioe );

  ioe.printStackTrace();

  } 

  }

 

}

 

 

Output when I run the program above:

 

 

 

Sep 20, 2004 2:19:51 PM org.apache.commons.httpclient.HttpMethodBase
processRedirectResponse INFO: Redirect requested but followRedirects is
disabled

exception; org.apache.commons.httpclient.HttpException

org.apache.commons.httpclient.HttpException

  at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:
3185)

  at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:
3145)

  at
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:87
9)

  at
org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.j
ava:824)

  at
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1
746)

  at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1156
)

  at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1175
)

  at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1261
)

  at
org.apache.webdav.lib.WebdavResource.(WebdavResource.java:274)

  at com.tobias.webdav.WebDAVTest.main(WebDAVTest.java:32)



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



RE: New checked-in property class to submit

2004-09-15 Thread Ritu Kedia
Hi Warwick,

I had the same issue sometime back about fetching the history uri of the
last checked in version (the report method not returning a sorted list of
versions). Coincidentally my first solution was just the same as what you
did, i.e. add a CheckedinProperty class for retrieving the href element of
the checked-in property :) But I realized that this is a generic problem for
any property which has xml value and so here is the solution I adopted:

Vector properties = new Vector();
properties.add("checked-in");
String lastCheckedInVersion = null;
Enumeration e =
getWebdavResource().propfindMethod(resourcePath, DepthSupport.DEPTH_0,
properties);
if(e.hasMoreElements())
{
ResponseEntity resp =
(ResponseEntity)e.nextElement();
Enumeration props = resp.getProperties();
if(props.hasMoreElements())
{
BaseProperty prop =
(BaseProperty)props.nextElement();
if(prop.getLocalName().equals("checked-in"))
{
NodeList list =
prop.getElement().getElementsByTagNameNS("DAV:", "href");
if (list != null &&
list.getLength() > 0 ) 
{
lastCheckedInVersion =
list.item(0).getFirstChild().getNodeValue();
}
}
}
}

return lastCheckedInVersion;

This approach could be used for any xml property value (for e.g. Labels)

Regards,
Ritu




-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 3:52 AM
To: '[EMAIL PROTECTED]'
Subject: New checked-in property class to submit


Hi,
 
I found today that when callling the propfindMethod for the "checked-in"
property that the returned property value isn't being unwrapped from the XML
response correctly. The value returned for the checked in property is the
entire  element within the "checked-in" element definition rather than
the value of the href. I noticed that the owner property is the same and
that in the case of the owner the XML response is further decoded and the
actual value is returned. So I've defined an additional property class
called CheckedinProperty that behaves like the OwnerProperty class so that
only the value of the href (the latest history URI) is returned.  If you
don't see any problems with this then I'd like to know if it can be
submitted to the slide 2.1 head.
 
I've actually created an HrefValuedProperty base class that extends the
BaseProperty class as OwnerProperty does now and moved the common
functionality of the Owner and CheckedinProperty classes to this common
class. The OwnerProperty and CheckedinProperty now extend this class and
define only their TAGNAME and a constructor. If there are more properties
that could benefit from href decoding then they could also extend the
HrefValuedProperty class.
 
Warwick
 
 


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



Version of commons-httpclient.jar

2004-09-15 Thread Ritu Kedia
Revisiting this old mail... I really really need this information as part of
our company policy. I went through the old httpclient archives
http://archive.apache.org/dist/jakarta/commons/httpclient/binary/ and
downloaded all the files from 
Jan-16-2004, Feb-15-2004, Feb-17-2004 and May-17-2204. There is no binary
available between Feb-17 and May-17. And the ones from these 2 dates don't
match in size with the one used by slide-2.1.M1 (whose date is 02-24-2004).
Has it been compiled from source code dated 02-24?

I really request the one who knows anything about this jar version, to
please respond. 

Thanks,
Ritu


-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 7:57 PM
To: 'Slide Users Mailing List'
Subject: RE: httpclient code


I'd be interested too.
The CVS log shows that the last checkin was done on 02-24-04 by Daniel. 
Daniel>> Could you please let me know which version this is.
Is this going to be version used by 2.1 Beta as well?

Thanks,
Ritu

-Original Message-
From: Warwick Burrows [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 8:26 PM
To: 'Slide Users Mailing List'
Subject: RE: httpclient code



I'd be interested to know what version the client uses too.



-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 30, 2004 9:44 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: httpclient code


It's more recent than the 2.0 release, since there were some important
bugfixes. For the exact date see the CVS log.

Ingo

> What version of the commons-httpclient code is being used with Slide 
> in HEA= D? I have downloaded the 2.0 version of httpclient but the 
> source doesn't s= eem to line up with the binaries supplied with Slide 
> in the debugger.
> 
> Karl Koster
> [EMAIL PROTECTED]
> 
> 
> 
> 
> **
> This e-mail contains privileged attorney-client communications and/or 
> confi= dential information, and is only for the use by the intended 
> recipient. Rec= eipt by an unintended recipient does not constitute a 
> waiver of any applica= ble privilege.
> 
> Reading, disclosure, discussion, dissemination, distribution or 
> copying of = this information by anyone other than the intended 
> recipient or his or her = employees or agents is strictly prohibited.  
> If you have received this comm= unication in error, please immediately 
> notify us and delete the original ma= terial from your computer.
> 
> Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or 
> SoCal= Gas, the utilities owned by SET's parent company.  SET is not 
> regulated by = the California Public Utilities Commission and you do 
> not have to buy SET's=  products and services to continue to receive 
> quality regulated service fro= m the utilities.
> **


-
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]


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



RE: Has anyone seen connection warnings when deploying slide in a n App Server(JBoss)

2004-09-15 Thread Ritu Kedia
Hi Oliver,

I think you may have some idea about these warnings:
WARN  [WrappedConnection] Closing a statement you left open, please do your
own housekeeping

They appear when deploying slide in JBoss. Seems like some Slide db
statements are not being closed. Could you suggest something that I should
try to suppress these warnings? 

Thanks,
Ritu


-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 5:04 PM
To: 'Slide Users Mailing List'
Subject: RE: Has anyone seen connection warnings when deploying slide in
a n Ap p Server(JBoss)


Not sure I understood what you imply by the static block. But anyways are
you referring to suppressing the client side warning messages or server
side? I was referring to the deployment time warnings thrown by the App
server, which I don't think have any relation with slide logging. Since I am
using J2EE store, the App Server's Wrapped Connection is throwing these
warnings. May be some slide DB methods are not closing the statements before
returning.

Have you faced a similar problem? If yes, what is the error message you see?


Thanks,
Ritu


-Original Message-
From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 4:34 PM
To: Slide Users Mailing List
Subject: RE: Has anyone seen connection warnings when deploying slide in
a n Ap p Server(JBoss)


Ok,

I think slide uses common-logging API to print the warning messages.

Just supress them. 

May be something like this

 static Log log;
static
{
log =
LogFactory.getLog(org.apache.commons.httpclient.HttpClient.class);
}

public void init()
{
lOG.setLevel(lOG.LOG_LEVEL_OFF);

}


But not sure. You should see the API referces for this

Regards
Sudhakar
--- Ritu Kedia <[EMAIL PROTECTED]> wrote:

> For now the intention is to only suppress the messages. But if the same
> warnings are being issued in WebSphere as well,then it may become a
> potential problem with log file increasing in size with every server
> operation.
> Secondly, I just thought it better to address the warnings now before they
> result in some erroneous behavior.
> 
> Thanks,
> Ritu
> 
> -Original Message-
> From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 3:59 PM
> To: Slide Users Mailing List
> Subject: Re: Has anyone seen connection warnings when deploying slide in
> an Ap p Server(JBoss)
> 
> 
> Is this is becoming a problem for you?? Or You just want to supress those
> messages??
> 
> Regards
> Sudhakar
> 
> 
> --- Ritu Kedia <[EMAIL PROTECTED]> wrote:
> 
> > I see a lot of warnings when deploying Slide in JBoss App Server. 
> > WARN  [WrappedConnection] Closing a statement you left open, please do
> your
> > own housekeeping
> > 
> > The same warnings also come when performing any server side operations.
I
> > saw the DB Adapter classes.. they do close the statements in the final
> > clause. Then why do the warnings come?
> > Has anyone faced a similar problem? Or could someone suggest a way of
> > avoiding these warnings.
> > 
> > Thanks,
> > Ritu
> > 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> =
> "No one can earn a million dollars honestly."- William Jennings Bryan
> (1860-1925) 
> 
> "Make everything as simple as possible, but not simpler."- Albert Einstein
> (1879-1955)
> 
> "It is dangerous to be sincere unless you are also stupid."- George
Bernard
> Shaw (1856-1950)
> 
> 
>   
> __
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
> -
> 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]
> 
> 


=
"No one can earn a million dollars honestly."- William Jennings Bryan
(1860-1925) 

"Make everything as simple as possible, but not simpler."- Albert Einstein
(1879-1955)

"It is dangerous to be sincere unless you are also stupid."- George Bernard
Shaw (1856-1950)



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-

RE: Problem disabling slide authorization

2004-09-15 Thread Ritu Kedia
Alon,

Your problem could be solved by turning auto-create-user on in domain.xml
(true)
This would ensure that if the principal is not already there in slide db
then one would be created prior to executing the requested method.

Hope this helps.

Regards,
Ritu

-Original Message-
From: alon salant [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 10:06 PM
To: Slide Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Problem disabling slide authorization


So after letting this sit for just a little bit, it strikes me that
this may be considered a bug in SecurityImpl (or the calling Method
implementations). The Methods are calling getPrincipal() so that they
can set the owner metadata in the node being created. When security is
off but webapp security is on, there is a Principal in the
CredentialsToken but it does not exist in the store. So you get an
ObjectNotFoundException.

If SecurityImpl finds a Principal in the CredentialsToken but not in
the NodeStore, why not return a SubjectNode with the principal name as
the path? Or do this if slide security is disabled?

Alon


On Tue, 14 Sep 2004 00:24:16 -0700, alon salant <[EMAIL PROTECTED]> wrote:
> With a little digging, I appear to have a solution.
> 
> It looks like you can set your own implementation of Security in
> Domain.xml with .
> 
> I created an AllowAllSecurityImpl that does its best to be okay with
> everything. The only method I really implemented is
> getPrincipal(SlideToken token) which returns SubjectNode.UNAUTHORIZED
> if there is no user principal in the SlideToken, or a SubjectNode with
> the principal name as the path if there is a principal.
> 
> So I configure my domain to load it with:
> 
> 
> org.apache.slide.store.file.AllowAllSecurityImpl
> 
> 
>
http://cvs.sourceforge.net/viewcvs.py/photospace/slidespace/WEB-INF/src/org/
apache/slide/store/file/
> 
> Seems to work for me. Any comments or gotchas I may have missed?
> 
> Alon
> 
> 
> 
> 
> On Mon, 13 Sep 2004 23:41:17 -0700, alon salant <[EMAIL PROTECTED]> wrote:
> > When working on SimpleFileStore, it was easy to disable Slide security
> > by setting
> >
> >   org.apache.slide.security=false
> >
> > in slide.properties.
> >
> > However, I do want to be able configure basic webapp security using
> > security constraints on paths and HTTP methods. But I do not want to
> > manage users and roles within slide.
> >
> > So I have slide configured with security=false, SimpleFileStore,
> > TransientSecurityStore, and TransientLockStore for my store
> > implementations, all user and role definitions removed from Domain.xml
> > and basic auth configured in my web.xml for the path to the webdav
> > servlet.
> >
> > With this config, I can connect via webdav, log in and browse.
> >
> > However, I cannot create files or folders, copy, move, delete
> >
> > The problem that I am running in to is that Methods (MkcolMethod for
> > example), still try to authorize the current principal. If the
> > principal is null, things work fine b/c SecurityImpl returns
> > SubjectNode.UNAUTHENTICATED and slide lets this continue. However, if
> > the principal is not null (it is not when the webapp makes the user
> > log in), SecurityImpl.getPrincipal( ) tries to retrieve an object for
> > that user resulting in an ObjectNotFoundException.
> >
> > This looks like hard behavior to change (unfortunately).
> > AbstractWebDavMethod creates the SlideToken with the user principal in
> > run( ) using req.getUserPrincipal().
> >
> > I haven't traced through the other methods to see if/how the user
> > principal is used. It looks like copy/delete/put/move/mkcol (at least)
> > all have issues related to this.
> >
> > Any thoughts? What I am trying to do seems like a pretty common use
> > case. Is there a good way to address this need? I'm hoping I've missed
> > something simple.
> >
> > Alon
> >
>

-
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: Has anyone seen connection warnings when deploying slide in a n Ap p Server(JBoss)

2004-09-03 Thread Ritu Kedia
Not sure I understood what you imply by the static block. But anyways are
you referring to suppressing the client side warning messages or server
side? I was referring to the deployment time warnings thrown by the App
server, which I don't think have any relation with slide logging. Since I am
using J2EE store, the App Server's Wrapped Connection is throwing these
warnings. May be some slide DB methods are not closing the statements before
returning.

Have you faced a similar problem? If yes, what is the error message you see?


Thanks,
Ritu


-Original Message-
From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 4:34 PM
To: Slide Users Mailing List
Subject: RE: Has anyone seen connection warnings when deploying slide in
a n Ap p Server(JBoss)


Ok,

I think slide uses common-logging API to print the warning messages.

Just supress them. 

May be something like this

 static Log log;
static
{
log =
LogFactory.getLog(org.apache.commons.httpclient.HttpClient.class);
}

public void init()
{
lOG.setLevel(lOG.LOG_LEVEL_OFF);

}


But not sure. You should see the API referces for this

Regards
Sudhakar
--- Ritu Kedia <[EMAIL PROTECTED]> wrote:

> For now the intention is to only suppress the messages. But if the same
> warnings are being issued in WebSphere as well,then it may become a
> potential problem with log file increasing in size with every server
> operation.
> Secondly, I just thought it better to address the warnings now before they
> result in some erroneous behavior.
> 
> Thanks,
> Ritu
> 
> -Original Message-
> From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 3:59 PM
> To: Slide Users Mailing List
> Subject: Re: Has anyone seen connection warnings when deploying slide in
> an Ap p Server(JBoss)
> 
> 
> Is this is becoming a problem for you?? Or You just want to supress those
> messages??
> 
> Regards
> Sudhakar
> 
> 
> --- Ritu Kedia <[EMAIL PROTECTED]> wrote:
> 
> > I see a lot of warnings when deploying Slide in JBoss App Server. 
> > WARN  [WrappedConnection] Closing a statement you left open, please do
> your
> > own housekeeping
> > 
> > The same warnings also come when performing any server side operations.
I
> > saw the DB Adapter classes.. they do close the statements in the final
> > clause. Then why do the warnings come?
> > Has anyone faced a similar problem? Or could someone suggest a way of
> > avoiding these warnings.
> > 
> > Thanks,
> > Ritu
> > 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> =
> "No one can earn a million dollars honestly."- William Jennings Bryan
> (1860-1925) 
> 
> "Make everything as simple as possible, but not simpler."- Albert Einstein
> (1879-1955)
> 
> "It is dangerous to be sincere unless you are also stupid."- George
Bernard
> Shaw (1856-1950)
> 
> 
>   
> __
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
> -
> 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]
> 
> 


=
"No one can earn a million dollars honestly."- William Jennings Bryan
(1860-1925) 

"Make everything as simple as possible, but not simpler."- Albert Einstein
(1879-1955)

"It is dangerous to be sincere unless you are also stupid."- George Bernard
Shaw (1856-1950)



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-
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: Has anyone seen connection warnings when deploying slide in a n Ap p Server(JBoss)

2004-09-03 Thread Ritu Kedia
For now the intention is to only suppress the messages. But if the same
warnings are being issued in WebSphere as well,then it may become a
potential problem with log file increasing in size with every server
operation.
Secondly, I just thought it better to address the warnings now before they
result in some erroneous behavior.

Thanks,
Ritu

-Original Message-
From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 3:59 PM
To: Slide Users Mailing List
Subject: Re: Has anyone seen connection warnings when deploying slide in
an Ap p Server(JBoss)


Is this is becoming a problem for you?? Or You just want to supress those
messages??

Regards
Sudhakar


--- Ritu Kedia <[EMAIL PROTECTED]> wrote:

> I see a lot of warnings when deploying Slide in JBoss App Server. 
> WARN  [WrappedConnection] Closing a statement you left open, please do
your
> own housekeeping
> 
> The same warnings also come when performing any server side operations. I
> saw the DB Adapter classes.. they do close the statements in the final
> clause. Then why do the warnings come?
> Has anyone faced a similar problem? Or could someone suggest a way of
> avoiding these warnings.
> 
> Thanks,
> Ritu
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


=
"No one can earn a million dollars honestly."- William Jennings Bryan
(1860-1925) 

"Make everything as simple as possible, but not simpler."- Albert Einstein
(1879-1955)

"It is dangerous to be sincere unless you are also stupid."- George Bernard
Shaw (1856-1950)



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

-
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]



Has anyone seen connection warnings when deploying slide in an Ap p Server(JBoss)

2004-09-03 Thread Ritu Kedia
I see a lot of warnings when deploying Slide in JBoss App Server. 
WARN  [WrappedConnection] Closing a statement you left open, please do your
own housekeeping

The same warnings also come when performing any server side operations. I
saw the DB Adapter classes.. they do close the statements in the final
clause. Then why do the warnings come?
Has anyone faced a similar problem? Or could someone suggest a way of
avoiding these warnings.

Thanks,
Ritu




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



RE: A question on security configuration

2004-08-27 Thread Ritu Kedia
:( ... The distinguishing factor in my requests is neither the user
credential nor the resource being accessed. The same user should be able to
access the Slide Repository either via my WebService or via
MS-Word/Excel/etc. I.e. The same user could access the same resource in
either mode. When accessed via WebService, my application is doing the
authorization. When accessed directly, I would have to override the default
slide security implementation with my custom implementation. 

I think I would have to try the clustering solution only with my custom
security implementation (since the direct slide access should also follow
the same security checks as done in my application). But I won't be able to
get to it may be for another month.
A couple of questions regarding custom security implementation... 
1. Is the security implementation class configurable via Domain.xml? There
is a security store configuration in Domain.xml but I haven't seen the entry
for the security helper class.
2. Which methods would have to be implemented if I am interested only in the
authorization checks and not the assignments?

Thanks,
Ritu

-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 11:44 AM
To: Slide Users Mailing List
Subject: Re: A question on security configuration


Done a little more thinking about this. I think separate namespaces 
sounds like a good idea, but there may be a problem. Since the Store 
configurations are per-namespace it's likely that the ExtendedStore 
cache will be per namespace as well. If this is the case then you're 
back to a situation where you'll need clustering to keep the caches in 
sync. Unless you really want everything to run in the same webapp you'd 
probably be better off just running a cluster with two nodes.

Stefan's suggestion gave me an idea, though (several actually). What you 
really need is a way to bypass the security checks in SecurityImpl based 
on some aspect of the request. I went through several ideas involving 
extending WebdavServelt or Domain to provide different 
NamespaceAccessTokens with different Security implementations based on 
where the request came from. This should be viable, but as I was writing 
this I realized that simply providing your own Security implementation 
that always returned true for a specific user should be enough. You'll 
still need to authenticate to the app server as that user, but since the 
Security implementation doesn't actually do any checking it should speed 
things up. For requests that aren't from the special user come in your 
implementation can just call ACLSecurityImpl (or another implementation) 
to do the checking, which should add very little overhead to the 
existing system.

-James

Ritu Kedia wrote:
>>>BTW how does JAAS decide what client currently accesses the webdav
server?
> 
> 
> JAAS can't detect that. In my case below I would have distinguished
between
> the 2 modes by the namespace (if that solution was possible). 
> 
> Regards,
> Ritu
> 
> -Original Message-
> From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 2:50 PM
> To: Slide Users Mailing List
> Subject: Re: A question on security configuration
> 
> 
> 
> I recently thought about a "scoped SecurityImpl" because we want
> to have different security checking mechanics on different scopes.
> On one scope we want to use Slides ACL Security and on an other
> we want to use the Security checking of our own system.
> 
> We could of course have a SecurityImpl that permits all actions.
> 
> But I'm not sure that meets your problem, because your need to use
> different scopes.
> 
> BTW how does JAAS decide what client currently accesses the webdav server?
> 
> Regards, Stefan
> 
> Ritu Kedia wrote:
> 
>>I am using Slide in 2 modes:
>>1. From within my Application, in which case my application acts as the
>>entry point for a client.
>>2. From a third party client, in which case Slide is the entry point for
> 
> the
> 
>>client.
>>
>>Slide is accessed from within my application using the Slide WebDAV client
>>lib. Whereas it is accessed from the third party client via WebDAV (e.g.
>>WebFolders in MS).
>>In both these cases, the authentication is done using JAAS. And
>>authorization depends on the mode of access. When accessed from within my
>>application, the authorization will be done by my application but when
>>accessed directly from a 3rd party client, the authorization should be
> 
> done
> 
>>by Slide's security support. In other words, my requirement is to turn off
>>Slide's security in one mode and turn it on in the other mode. Both modes
>>would be active simultaneously. Could som

RE: A question on security configuration

2004-08-26 Thread Ritu Kedia
>>BTW how does JAAS decide what client currently accesses the webdav server?

JAAS can't detect that. In my case below I would have distinguished between
the 2 modes by the namespace (if that solution was possible). 

Regards,
Ritu

-Original Message-
From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 2:50 PM
To: Slide Users Mailing List
Subject: Re: A question on security configuration



I recently thought about a "scoped SecurityImpl" because we want
to have different security checking mechanics on different scopes.
On one scope we want to use Slides ACL Security and on an other
we want to use the Security checking of our own system.

We could of course have a SecurityImpl that permits all actions.

But I'm not sure that meets your problem, because your need to use
different scopes.

BTW how does JAAS decide what client currently accesses the webdav server?

Regards, Stefan

Ritu Kedia wrote:
> I am using Slide in 2 modes:
> 1. From within my Application, in which case my application acts as the
> entry point for a client.
> 2. From a third party client, in which case Slide is the entry point for
the
> client.
> 
> Slide is accessed from within my application using the Slide WebDAV client
> lib. Whereas it is accessed from the third party client via WebDAV (e.g.
> WebFolders in MS).
> In both these cases, the authentication is done using JAAS. And
> authorization depends on the mode of access. When accessed from within my
> application, the authorization will be done by my application but when
> accessed directly from a 3rd party client, the authorization should be
done
> by Slide's security support. In other words, my requirement is to turn off
> Slide's security in one mode and turn it on in the other mode. Both modes
> would be active simultaneously. Could someone please provide me any
> hints/help with designing a solution for the above requirement?
> 
> One thought is to have 2 different namespaces, one for each of the above
> mode. Both these namespaces would access the same store but would have
> different security configurations. Is this achievable? I think this
depends
> on whether slide.properties is applicable per namespace or per domain. If
> anyone has implemented such a solution, then please do let me know.
> 
> 
> Regards,
> Ritu
> 
> 
> 
> -
> 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: what is J2EE store??

2004-08-25 Thread Ritu Kedia
I can't infer much from "Error instantiating OracleRDBMSAdapter". Could you
provide the stack trace? One thing that I observed below is that the class
name in error message is OraclRDBMSAdapter instead of OracleRDBMSAdapter
Could that be the problem?
 
Regards,
Ritu
p.s.: please include Slide User List as well; you never know when the help
arrives from unexpected quarters :). Moreover this info could be useful to
others too.

-Original Message-
From: Dharmesh Rana [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 10:42 AM
To: Ritu Kedia
Subject: Re: what is J2EE store??


Hi Ritu,
 
I am into designing pahse for the development of a web application using
WebDAV protocol.
The main functionality that I have to check are as under:-
1) The WebDAV server must interact with our repository (Oracle 8.1.7).
2) The WebDAV server must work with WebLogic app server.
3) The app server (WebLogic) shd. implement WebDAV protocol and basic Delta
V protocol
4) The WebDAV server shd authenticate users and requests against the
database.
 
I tested the following things with the WebLogic Server 8.1:-
 
a) I created a security realm for user authentication on WebLogic Server
using BASIC authentication.
I configured the security role in web.xml and weblogic.xml so that only a
particular user can access the resource.
 
b) I want to check up whether WebDAV server can establish Connection with
Oracle 8i database using WebLogic.
Since in slide version 2.1 b has OracleRDBMSAdapter, it gets compiled, but
on deployment of slide.war it gives me error like 
"Error instantiating OraclRDBMSAdapter". 
 
Can you please tell me how to use connection pooling using Slide J2EE store
so that I can access Oracle 8.1.1 database?
I just want to ensure (point no. 1 above) before starting development of
this WebDAV application, whether WebDAV server can interact with Oracle.
 
I would be grateful to you if you can provide me some hint.
I can also available online on [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> .
 
 
Regards & Thanks,
 
 
Dharmesh Rana
 
 
 

- Original Message - 
From: Ritu Kedia <mailto:[EMAIL PROTECTED]>  
To: 'Dharmesh Rana' <mailto:[EMAIL PROTECTED]>  
Sent: Wednesday, August 25, 2004 5:18 PM
Subject: RE: what is J2EE store??

Hi Dharmesh,
 
Yes I did test it... but currently I am off that work.. Here are the details
of what I did:
I was using Slide 2.1M1 (not yet tested 2.1B1), with Oracle 9i. I configured
the slide pool and datasource in weblogic and added the resource-ref to
web.xml and the corresponding resource mapping to weblogic.xml. The Slide
deployment went fine, and I could perform WebDAV operations from DAVExplorer
client. However I was facing some problem when accessing slide from inside
my application (using their webdav client lib). I didn't get time to look
into that.
 
If you give me more details of the nature of the problem you are facing,
then perhaps I could help.
 
Regards,
Ritu


-Original Message-
From: Dharmesh Rana [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 4:34 PM
To: [EMAIL PROTECTED]
Subject: RE: what is J2EE store??


Ritu,
 
Have u configured j2ee store on WebLogic Server 8.1?
 
I would like to deploy Oracle database (Oracle 8.1.7) driver on WebLogice
Server 8.1.
 
In the mail list I found that you are also working on slide using WebLogic
Server 8.1.
 
Can you please give some hint how you have set up Oracle store and tested
that?
 
 
Regards,
 
 
 
Dharmesh Rana
 



RE: A question on security configuration

2004-08-25 Thread Ritu Kedia
I very much appreciate your taking the time to think about the different
issues that people have (I have seen you giving great suggestions on a lot
of other issues too). Definitely thanks for your help. 

The second suggestion that you gave below about clustering, is exactly what
I was thinking of. But as you pointed out that it is a new feature and *very
untested*, I would opt for that solution as a last resort. At this point I
am looking for a very quick and sure shot solution. I was just hoping that
may be slide.properties could be configured per namespace. Alas I don't
think thats possible, at least with the current implementation.

One question on performance impact due to security checks: what is the most
time consuming aspect of slide security? Is it the enumeratePermissions
method? 

Regards,
Ritu

-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 9:42 AM
To: Slide Users Mailing List
Subject: Re: A question on security configuration


Ok, so you don't like my ideas :).

I've never played with namespaces, so that could be a good option and I 
wouldn't know it :). However, since security is controlled in the 
slide.properties file you're probably going to need a completely 
separate instance of Slide.

So my *new* suggestion is to try running two instance of Slide in a 
cluster, one with security and the other without. There's info for how 
to configure this on the Wiki. Clustering is very untested at this 
point, so if you've got the time it would be great if you could put it 
through its paces :).

-James

Ritu Kedia wrote:
> Thanks for the reply James.
> 
> Your approach has 2 problems:
> 1. The most important one is : I want to avoid slide security checks for
> performance reasons and specially since I am already doing the
> authorization, I definitely want to avoid slide side overhead.
> 2. Even if I ignore performance, I still face a problem with the user info
> logging against every activity. In other words I lose the information
about
> who uploaded the file/locked it/checked it in.
> 
> What about the namespace solution... is it possible to configure different
> security properties for a different namespace in the same App Server
> instance?
> Or could you suggest some other alternate whereby I could turn off
security
> checks when accessed from a particular client?
> 
> Regards,
> Ritu
> 
> -Original Message-
> From: James Mason [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 24, 2004 10:28 PM
> To: Slide Users Mailing List
> Subject: Re: A question on security configuration
> 
> 
> Ritu,
> One option might be to have a user account with all access to every node 
> in your store and always use that account when connecting with your 
> application.
> 
> -James
> 
> Ritu Kedia wrote:
> 
> 
>>I am using Slide in 2 modes:
>>1. From within my Application, in which case my application acts as the
>>entry point for a client.
>>2. From a third party client, in which case Slide is the entry point for
> 
> the
> 
>>client.
>>
>>Slide is accessed from within my application using the Slide WebDAV client
>>lib. Whereas it is accessed from the third party client via WebDAV (e.g.
>>WebFolders in MS).
>>In both these cases, the authentication is done using JAAS. And
>>authorization depends on the mode of access. When accessed from within my
>>application, the authorization will be done by my application but when
>>accessed directly from a 3rd party client, the authorization should be
> 
> done
> 
>>by Slide's security support. In other words, my requirement is to turn off
>>Slide's security in one mode and turn it on in the other mode. Both modes
>>would be active simultaneously. Could someone please provide me any
>>hints/help with designing a solution for the above requirement?
>>
>>One thought is to have 2 different namespaces, one for each of the above
>>mode. Both these namespaces would access the same store but would have
>>different security configurations. Is this achievable? I think this
> 
> depends
> 
>>on whether slide.properties is applicable per namespace or per domain. If
>>anyone has implemented such a solution, then please do let me know.
>>
>>
>>Regards,
>>Ritu
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PR

RE: A question on security configuration

2004-08-24 Thread Ritu Kedia
Thanks for the reply James.

Your approach has 2 problems:
1. The most important one is : I want to avoid slide security checks for
performance reasons and specially since I am already doing the
authorization, I definitely want to avoid slide side overhead.
2. Even if I ignore performance, I still face a problem with the user info
logging against every activity. In other words I lose the information about
who uploaded the file/locked it/checked it in.

What about the namespace solution... is it possible to configure different
security properties for a different namespace in the same App Server
instance?
Or could you suggest some other alternate whereby I could turn off security
checks when accessed from a particular client?

Regards,
Ritu

-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 10:28 PM
To: Slide Users Mailing List
Subject: Re: A question on security configuration


Ritu,
One option might be to have a user account with all access to every node 
in your store and always use that account when connecting with your 
application.

-James

Ritu Kedia wrote:

> I am using Slide in 2 modes:
> 1. From within my Application, in which case my application acts as the
> entry point for a client.
> 2. From a third party client, in which case Slide is the entry point for
the
> client.
> 
> Slide is accessed from within my application using the Slide WebDAV client
> lib. Whereas it is accessed from the third party client via WebDAV (e.g.
> WebFolders in MS).
> In both these cases, the authentication is done using JAAS. And
> authorization depends on the mode of access. When accessed from within my
> application, the authorization will be done by my application but when
> accessed directly from a 3rd party client, the authorization should be
done
> by Slide's security support. In other words, my requirement is to turn off
> Slide's security in one mode and turn it on in the other mode. Both modes
> would be active simultaneously. Could someone please provide me any
> hints/help with designing a solution for the above requirement?
> 
> One thought is to have 2 different namespaces, one for each of the above
> mode. Both these namespaces would access the same store but would have
> different security configurations. Is this achievable? I think this
depends
> on whether slide.properties is applicable per namespace or per domain. If
> anyone has implemented such a solution, then please do let me know.
> 
> 
> Regards,
> Ritu
> 
> 
> 
> -
> 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]



A question on security configuration

2004-08-23 Thread Ritu Kedia
I am using Slide in 2 modes:
1. From within my Application, in which case my application acts as the
entry point for a client.
2. From a third party client, in which case Slide is the entry point for the
client.

Slide is accessed from within my application using the Slide WebDAV client
lib. Whereas it is accessed from the third party client via WebDAV (e.g.
WebFolders in MS).
In both these cases, the authentication is done using JAAS. And
authorization depends on the mode of access. When accessed from within my
application, the authorization will be done by my application but when
accessed directly from a 3rd party client, the authorization should be done
by Slide's security support. In other words, my requirement is to turn off
Slide's security in one mode and turn it on in the other mode. Both modes
would be active simultaneously. Could someone please provide me any
hints/help with designing a solution for the above requirement?

One thought is to have 2 different namespaces, one for each of the above
mode. Both these namespaces would access the same store but would have
different security configurations. Is this achievable? I think this depends
on whether slide.properties is applicable per namespace or per domain. If
anyone has implemented such a solution, then please do let me know.


Regards,
Ritu



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



RE: Having problem in using Slide's Bind function

2004-08-23 Thread Ritu Kedia
Did you create a new schema and did the first time Slide deployment with
BindingStore in Domain.xml? If not, I think that should solve the problem.
You cannot switch between BindingStore and ExtendedStore on the same schema.

Secondly, are you using auto-create-users feature? On 2.1M1 I faced a
problem with that feature on BindingStore. I had to do a local fix to get
that working. Not sure whether that bug still exists in 2.1 B1.

Regards,
Ritu 

-Original Message-
From: Gao Jun [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 10:34 AM
To: [EMAIL PROTECTED]
Subject: Having problem in using Slide's Bind function


Hi Slide guys,
 
We are trying to use Slide's Bind function to create links for folders.
Following the tutorial, we did the following:
1. Add classname="org.apache.slide.store.BindingStore" to store
configuration.
2. Add org.apache.slide.binding=true to slide.properties
3. Remove all the existing folders (store and work)
 
Then we start the silde server (2.1b1). Everything seems all right. We've
noticed
several xml files have been created under /store/metadata, like
1093232302952.0.def.xml.
After that I use slide client tool to connect to server and try to create a
folder
under files folder (this user is of root role). However, we will get a "Not
Found (404)"
error. 
Then I tried to remove the classname="org.apache.slide.store.BindingStore"
from
store configuration and then try creating subfolder again. It will work
well. I'd like
to know whether any of you have met this kind of problem before? How to
solve this problem?
Thanks in advance.
 
regards,
 
Jun


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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



RE: OracleRDBMSAdapter no longer supportted?

2004-08-20 Thread Ritu Kedia
Co-incidentally I was testing Oracle Store with WebLogic and I came across
another issue with the storeContent implementation in OracleRDBMSAdapter.
The following line throws ClassCastException:
OutputStream out = ((oracle.sql.BLOB)
blob).getBinaryOutputStream();
Because weblogic is wrapping the blob in its own blob wrapper class:
"weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB".

I think what Kiran did was test Oracle Store with storeContent
implementation of DB2RDBMSAdapter. I tried the same on Oracle 9i and it
worked fine. 

So I think the storeContent implementation of DB2RDBMSAdapter should be
moved to CommonRDBMSAdapter and used by Oracle as well. This transition
would even remove the compile time dependency on oracle driver libs.

Also, another important thing... there was a patch applied by Davide for
Content-length to Oracle Adapter (storeContent method has the fix: bugId
30317). That fix should be applied to CommonRDBMSAdapter. 

Regards,
Ritu


-Original Message-
From: Davide Savazzi [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 5:16 PM
To: Slide Users Mailing List
Subject: Re: OracleRDBMSAdapter no longer supportted?


On Friday 20 August 2004 02:14, Kiran Patchigolla wrote:
> We are able to store and retrieve data in blobs in Oracle 9i using the
> storeContent implementation in CommonRDBMSAdapter which uses JDBC API and
> does not rely on specific oracle API.

In CommonRDBMSAdapter there isn't a storeContent method...
If I remove the storeContent method in the Oracle adapter (thus using 
storeContent in StandardRDBMSAdapter) with 10g and classes12.jar or 
ojdbc14.jar I get this error:

ORA-01461: can bind a LONG value only for insert into a LONG column

I haven't 9i installed so I can't try with it.

-- 
Davide Savazzi

-
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: Odd behavior with getChildResources of a Collection on WebSph ere

2004-08-20 Thread Ritu Kedia
Thats fine Stefan. Thanks for your time.

The default-servlet=false and url-pattern=/ works only with the Browser not
with any other client. In case of the browser, somehow the path is modified
to slide//files/etc don't know why the browser modifies the path. But it
works!

Anyways I think the problem should be fixed at WebSphere's end... they do
not set the correct servletPath in case of default servlet mapping in
web.xml (i.e. url-pattern=/). 

If I come up with some acceptable work-around, I will post to this list.

Regards,
Ritu

-Original Message-
From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 7:27 PM
To: Slide Users Mailing List
Subject: Re: Odd behavior with getChildResources of a Collection on
WebSph ere


Sorry Ritu, but I don't know much about WebSphere so I can't help
on this side.

But, to recall for me: with default-servlet=false and url-pattern=/
it works with other clients but not with slide client lib? If so,
may be we should make the client lib more tolerant?

Stefan


Ritu Kedia wrote:
> Hi Stefan,
> 
> Thanks for your help.
> 
> I modified the url-pattern in the servlet-mapping to /* and redeployed
Slide
> App in WAS. But now I get "403 Forbidden: Invalid URI passed to Security
> Collaborator" on accessing slide. My app context is /slide and the WAS
> plugin-config.xml has mapping for /slide/*.
> 
> Http trace when navigating from any client (IE 6.0 Browser, DAVExplorer)
> Request:
> 
> GET /slide HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword,
> application/x-shockwave-flash, */*
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
> 1.1.4322)
> Host: contentlab1:81
> Connection: Keep-Alive
> 
> Response:
> =
> HTTP/1.1 403 Forbidden
> Server: WebSphere Application Server/5.0
> Content-Type: text/html;charset=ISO-8859-1
> Content-Language: en-US
> Transfer-Encoding: chunked
> 
> 39
> Error 403: Invalid URI passed to Security Collaborator.
> 
> 0
> 
> 
> However one important point is that with url-pattern set to "/" and
> default-servlet parameter set to false, I don't see the odd behavior when
> navigating via Browser. See the following http trace:
> 
> From WebUI: using IE 6.0: 
> Request: (NOTE the // after slide: I did not manually change the URL, I
> simply navigated the folders on browser)
> 
> GET /slide//files/ProjectArea/prjct0001000/Module1 HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword,
> application/x-shockwave-flash, */*
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
> FunWebProducts; .NET CLR 1.1.4322)
> Host: localhost:81
> Connection: Keep-Alive
> Cookie: JSESSIONID=oediKlpB1l8TttdAZdsfZ6w:-1
> Authorization: Basic U2FiYVNpdGV8ZW5fdXN8dW9uZTp3ZWxjb21l
> 
> Response:
> =
> HTTP/1.1 200 OK
> Server: WebSphere Application Server/5.0
> Content-Type: text/html; charset=UTF-8
> Content-Language: en-US
> Transfer-Encoding: chunked
> 
> 701
> 
> 
> 
> 
> Directory listing for
> /files/ProjectArea/prjct0001000/Module1
> 
> 
> 
> 
> Directory listing for
> /files/ProjectArea/prjct0001000/Module1
> 
> 
> Up To
> /files/ProjectArea/prjct0001000
> 
>  
> 
>  size="+1">Filename
> Size
> Last
Modified
> 
> 
>   
> 
href="/slide//files/ProjectArea/prjct0001000/Module1/Folder1">&#
> x46;older1/
>  
> Fri, 20 Aug 2004 10:23:14 GMT
> 
> 
>   
> 
href="/slide//files/ProjectArea/prjct0001000/Module1/Folder2">&#
> x46;older2/
>  
> Fri, 20 Aug 2004 10:24:12 GMT
> 
>  
> Jakarta Slide
> 1.0
> Fri, 20
Aug
> 2004 16:46:02 IST
> 
> 
> 
> 
> 0
> Though on the browser I get "LocalTransactionRollbacked due to
> setRollbackOnly" exception at the bottom of the folder tree.
>   
> 
> Any idea of what could be going wrong or what else could I try?
> 
> The reason I had to set the default-servlet param to false was that with
> url-pattern set to '/' in servlet mapping, the req.getServletPath() always
> returns "/" and req.getPathInfo() returns the additional path info (for
e.g.
> files/ProjectArea), which I think is a bug in WebSphere 5.0. 
> 
> Regards,
> Ritu
> 
> -Original Message-
> From: Stefan Lützkend

RE: Odd behavior with getChildResources of a Collection on WebSph ere

2004-08-20 Thread Ritu Kedia
Hi Stefan,

Thanks for your help.

I modified the url-pattern in the servlet-mapping to /* and redeployed Slide
App in WAS. But now I get "403 Forbidden: Invalid URI passed to Security
Collaborator" on accessing slide. My app context is /slide and the WAS
plugin-config.xml has mapping for /slide/*.

Http trace when navigating from any client (IE 6.0 Browser, DAVExplorer)
Request:

GET /slide HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: contentlab1:81
Connection: Keep-Alive

Response:
=
HTTP/1.1 403 Forbidden
Server: WebSphere Application Server/5.0
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Transfer-Encoding: chunked

39
Error 403: Invalid URI passed to Security Collaborator.

0


However one important point is that with url-pattern set to "/" and
default-servlet parameter set to false, I don't see the odd behavior when
navigating via Browser. See the following http trace:

>From WebUI: using IE 6.0: 
Request: (NOTE the // after slide: I did not manually change the URL, I
simply navigated the folders on browser)

GET /slide//files/ProjectArea/prjct0001000/Module1 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
FunWebProducts; .NET CLR 1.1.4322)
Host: localhost:81
Connection: Keep-Alive
Cookie: JSESSIONID=oediKlpB1l8TttdAZdsfZ6w:-1
Authorization: Basic U2FiYVNpdGV8ZW5fdXN8dW9uZTp3ZWxjb21l

Response:
=
HTTP/1.1 200 OK
Server: WebSphere Application Server/5.0
Content-Type: text/html; charset=UTF-8
Content-Language: en-US
Transfer-Encoding: chunked

701




Directory listing for
/files/ProjectArea/prjct0001000/Module1




Directory listing for
/files/ProjectArea/prjct0001000/Module1


Up To
/files/ProjectArea/prjct0001000

 

Filename
Size
Last Modified


  
&#
x46;older1/
 
Fri, 20 Aug 2004 10:23:14 GMT


  
&#
x46;older2/
 
Fri, 20 Aug 2004 10:24:12 GMT

 
Jakarta Slide
1.0
Fri, 20 Aug
2004 16:46:02 IST




0
Though on the browser I get "LocalTransactionRollbacked due to
setRollbackOnly" exception at the bottom of the folder tree.


Any idea of what could be going wrong or what else could I try?

The reason I had to set the default-servlet param to false was that with
url-pattern set to '/' in servlet mapping, the req.getServletPath() always
returns "/" and req.getPathInfo() returns the additional path info (for e.g.
files/ProjectArea), which I think is a bug in WebSphere 5.0. 

Regards,
Ritu

-Original Message-
From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 2:33 PM
To: Slide Users Mailing List
Subject: Re: Odd behavior with getChildResources of a Collection on
WebSph ere


Hi Ritu,

if you set default-servlet to false please use /* as servlet mapping
pattern.

i.e.
  /*
instead of
  /

I'm not quite sure that solves your problem but it solves the problem
with the double slashes.

Regards, Stefan

Ritu Kedia wrote:
> Thanks for the reply Ingo.
> 
> I am on Slide 2.1M1
> 
> Request:
> 
> PROPFIND /slide/files/ProjectArea/prjct0001000/Module1/Folder1
> HTTP/1.1 Authorization: Basic SomeString:-1; $Path=/ Content-Length: 207
> Depth: 0  
xmlns:D="DAV:">
e/> ind>
> 
> Response:
> =
> HTTP/1.1 207 Unknown Server: WebSphere Application Server/5.0
Content-Type:
> text/xml; charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked
> 364  
> 
>
/slide//files/ProjectArea/prjct0001000/Module1/Folder1 ef>  
> 0

>  
> Fri, 20 Aug 2004 05:52:16 GMT
>   HTTP/1.1
200
> OK  
>  
 />  HTTP/1.1 404 Not
> Found   
> 0
> 
> 
> Some information that may be useful: On WebSphere WebdavServlet is not
> recognized as the default servlet even though the url-pattern under
> servlet-mapping, in web.xml is "/": /
> I had to set the default-servlet init parameter to false.
> 
> Regards,
> Ritu
> 
> -Original Message-
> From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 19, 2004 9:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Odd behavior with getChildResources of a Collection on
> WebSphere
> 
> 
> Hi Ritu,
> 
> please post a trace (tcpmon, ether

RE: Odd behavior with getChildResources of a Collection on WebSph ere

2004-08-19 Thread Ritu Kedia
Thanks for the reply Ingo.

I am on Slide 2.1M1

Request:

PROPFIND /slide/files/ProjectArea/prjct0001000/Module1/Folder1
HTTP/1.1 Authorization: Basic SomeString:-1; $Path=/ Content-Length: 207
Depth: 0  

Response:
=
HTTP/1.1 207 Unknown Server: WebSphere Application Server/5.0 Content-Type:
text/xml; charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked
364  

/slide//files/ProjectArea/prjct0001000/Module1/Folder1  
0 
 
Fri, 20 Aug 2004 05:52:16 GMT
  HTTP/1.1 200
OK  
HTTP/1.1 404 Not
Found   
0


Some information that may be useful: On WebSphere WebdavServlet is not
recognized as the default servlet even though the url-pattern under
servlet-mapping, in web.xml is "/": /
I had to set the default-servlet init parameter to false.

Regards,
Ritu

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 9:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Odd behavior with getChildResources of a Collection on
WebSphere


Hi Ritu,

please post a trace (tcpmon, ethereal, ...) of the session.
Btw., are you using Slide 2.1-beta1?

Ingo

> I have a slide deployment running on WebSphere with Oracle Store. I see an
> odd behavior with getChildResources of a Collection: the collection itself
> appears as one of its children. The same store when connected via JBoss or
> WebLogic works fine. Could someone please help?
> I read mail trail on similar issue with WebFolder on XP. But the cause
there
> was different:
>
http://www.greenbytes.de/tech/webdav/webfolder-client-list.html#issue-folder
> -mismatch
> 
> I am not connecting to slide on port 80. I connect to it directly on the
app
> server's port, which in case of websphere is 9080.
>   HttpURL hrl = new HttpURL(username,
> password, "mymachine", 9080, "/slide/");
>   WebdavResource wdr = new
> WebdavResource(hrl);
> 
> 
> If anyone could give me any hints... it would be great.
> 
> Thanks,
> Ritu


-
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]



Odd behavior with getChildResources of a Collection on WebSphere

2004-08-19 Thread Ritu Kedia
I have a slide deployment running on WebSphere with Oracle Store. I see an
odd behavior with getChildResources of a Collection: the collection itself
appears as one of its children. The same store when connected via JBoss or
WebLogic works fine. Could someone please help?
I read mail trail on similar issue with WebFolder on XP. But the cause there
was different:
http://www.greenbytes.de/tech/webdav/webfolder-client-list.html#issue-folder
-mismatch

I am not connecting to slide on port 80. I connect to it directly on the app
server's port, which in case of websphere is 9080.
HttpURL hrl = new HttpURL(username,
password, "mymachine", 9080, "/slide/");
WebdavResource wdr = new
WebdavResource(hrl);


If anyone could give me any hints... it would be great.

Thanks,
Ritu


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



RE: Why need read privilege on upstream folders to achieve a writ e permission

2004-08-11 Thread Ritu Kedia
Sorry! replied to the wrong message.

-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 6:47 PM
To: 'Slide Users Mailing List'
Subject: RE: Why need read privilege on upstream folders to achieve a
writ e permission


Alas! I hit the source of the bug!! The culprit was jdom.jar in
/lib. Slide uses a different version of jdom.jar. I
suspected this all the while that it was some third party jar. But the error
message gave no hint of which 3rd party jars to look for. Anyways... my
mistake.. I should have checked all the jars in the lib directories that
have a higher precedence than the deployed war. Well, better later than
never.

Thanks Oliver for your responses.

Regards,
Ritu

-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 6:46 PM
To: Slide Users Mailing List
Subject: Re: Why need read privilege on upstream folders to achieve a
write permission


This sounds like there is room for optimization, right? Why not always 
allow read access to data that is never returned to the outside? Peter, 
is it this you wanted to indicate?

Oliver

[EMAIL PROTECTED] wrote:

> Jun,
> currently it's a *must* in Slide. The Slide "helpers" (which build-up
> the Slide engine) internally need read access to all upstream folders to
> check permissions and locking, or resolve bindings. As currently the
> "helpers" cannot distinguish internal from original calls, they check
> the preconditions on each call.
> Regards,
> Peter
> 
> 
>>-Original Message-
>>From: Hu Yong [mailto:[EMAIL PROTECTED] 
>>Sent: Mittwoch, 11. August 2004 12:04
>>To: Slide-user-forum
>>Subject: Why need read privilege on upstream folders to 
>>achieve a write permission
>>
>>Hi everybody,
>>
>>I've a problem about Slide ACL. What we want is very simple:
>>We have a document tree managed by slide. We want to assign 
>>write priviliges on some nodes(folders) to specific users.
>>However, we found the users with assigned write privileges 
>>still cannot write on those nodes until we assign the users 
>>read privileges on all upstream folders.
>>
>>For example, the document tree is like this:
>>
>>A1
>>  - B1
>>  - B2
>>  - C1
>>  - D1
>>  - C2
>>  - B3
>>
>>We want to assign user Don write privilege on D1. However, we 
>>found although the write privilege is granted successfully, 
>>Don still can't write in D1 (like create a subfolder). But if 
>>we assign Don read privilege on C1, B2 and A1, then he can 
>>write in D1.
>>
>>I'd like to know whether this is a must in Slide or we can 
>>change some configuration to skip assigning read privilege on 
>>the upstream folders. Thanks.
>>
>>regards,
>>
>>Jun
>>
> 
> 
> -
> 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]


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



RE: Why need read privilege on upstream folders to achieve a writ e permission

2004-08-11 Thread Ritu Kedia
Sorry! replied to the wrong message.

-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 6:47 PM
To: 'Slide Users Mailing List'
Subject: RE: Why need read privilege on upstream folders to achieve a
writ e permission


Alas! I hit the source of the bug!! The culprit was jdom.jar in
/lib. Slide uses a different version of jdom.jar. I
suspected this all the while that it was some third party jar. But the error
message gave no hint of which 3rd party jars to look for. Anyways... my
mistake.. I should have checked all the jars in the lib directories that
have a higher precedence than the deployed war. Well, better later than
never.

Thanks Oliver for your responses.

Regards,
Ritu

-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 6:46 PM
To: Slide Users Mailing List
Subject: Re: Why need read privilege on upstream folders to achieve a
write permission


This sounds like there is room for optimization, right? Why not always 
allow read access to data that is never returned to the outside? Peter, 
is it this you wanted to indicate?

Oliver

[EMAIL PROTECTED] wrote:

> Jun,
> currently it's a *must* in Slide. The Slide "helpers" (which build-up
> the Slide engine) internally need read access to all upstream folders to
> check permissions and locking, or resolve bindings. As currently the
> "helpers" cannot distinguish internal from original calls, they check
> the preconditions on each call.
> Regards,
> Peter
> 
> 
>>-Original Message-
>>From: Hu Yong [mailto:[EMAIL PROTECTED] 
>>Sent: Mittwoch, 11. August 2004 12:04
>>To: Slide-user-forum
>>Subject: Why need read privilege on upstream folders to 
>>achieve a write permission
>>
>>Hi everybody,
>>
>>I've a problem about Slide ACL. What we want is very simple:
>>We have a document tree managed by slide. We want to assign 
>>write priviliges on some nodes(folders) to specific users.
>>However, we found the users with assigned write privileges 
>>still cannot write on those nodes until we assign the users 
>>read privileges on all upstream folders.
>>
>>For example, the document tree is like this:
>>
>>A1
>>  - B1
>>  - B2
>>  - C1
>>  - D1
>>  - C2
>>  - B3
>>
>>We want to assign user Don write privilege on D1. However, we 
>>found although the write privilege is granted successfully, 
>>Don still can't write in D1 (like create a subfolder). But if 
>>we assign Don read privilege on C1, B2 and A1, then he can 
>>write in D1.
>>
>>I'd like to know whether this is a must in Slide or we can 
>>change some configuration to skip assigning read privilege on 
>>the upstream folders. Thanks.
>>
>>regards,
>>
>>Jun
>>
> 
> 
> -
> 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]


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



RE: Why need read privilege on upstream folders to achieve a writ e permission

2004-08-11 Thread Ritu Kedia
Alas! I hit the source of the bug!! The culprit was jdom.jar in
/lib. Slide uses a different version of jdom.jar. I
suspected this all the while that it was some third party jar. But the error
message gave no hint of which 3rd party jars to look for. Anyways... my
mistake.. I should have checked all the jars in the lib directories that
have a higher precedence than the deployed war. Well, better later than
never.

Thanks Oliver for your responses.

Regards,
Ritu

-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 6:46 PM
To: Slide Users Mailing List
Subject: Re: Why need read privilege on upstream folders to achieve a
write permission


This sounds like there is room for optimization, right? Why not always 
allow read access to data that is never returned to the outside? Peter, 
is it this you wanted to indicate?

Oliver

[EMAIL PROTECTED] wrote:

> Jun,
> currently it's a *must* in Slide. The Slide "helpers" (which build-up
> the Slide engine) internally need read access to all upstream folders to
> check permissions and locking, or resolve bindings. As currently the
> "helpers" cannot distinguish internal from original calls, they check
> the preconditions on each call.
> Regards,
> Peter
> 
> 
>>-Original Message-
>>From: Hu Yong [mailto:[EMAIL PROTECTED] 
>>Sent: Mittwoch, 11. August 2004 12:04
>>To: Slide-user-forum
>>Subject: Why need read privilege on upstream folders to 
>>achieve a write permission
>>
>>Hi everybody,
>>
>>I've a problem about Slide ACL. What we want is very simple:
>>We have a document tree managed by slide. We want to assign 
>>write priviliges on some nodes(folders) to specific users.
>>However, we found the users with assigned write privileges 
>>still cannot write on those nodes until we assign the users 
>>read privileges on all upstream folders.
>>
>>For example, the document tree is like this:
>>
>>A1
>>  - B1
>>  - B2
>>  - C1
>>  - D1
>>  - C2
>>  - B3
>>
>>We want to assign user Don write privilege on D1. However, we 
>>found although the write privilege is granted successfully, 
>>Don still can't write in D1 (like create a subfolder). But if 
>>we assign Don read privilege on C1, B2 and A1, then he can 
>>write in D1.
>>
>>I'd like to know whether this is a must in Slide or we can 
>>change some configuration to skip assigning read privilege on 
>>the upstream folders. Thanks.
>>
>>regards,
>>
>>Jun
>>
> 
> 
> -
> 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: BindingStore Class Loading Error in JBoss App Server (Slide 2 .1.M 1)

2004-08-11 Thread Ritu Kedia
Thanks for your reply Oliver.

Yes I did check that no other jar in my JBoss has the BindingStore or the
org/apache/slide package. In fact I checked that no other jar on my machine
has that class or the slide package!! 
To rule out the compilation problems, I compiled the slide src code on the
machine which I am configuring.

It appears to me that there is a problem with the version of a third party
jar that ObjectNode/Uri or one of their imported classes, may be referring.
Could you please point out which third party packages I should search for? I
am really at a loss...:(

Regards,
Ritu

-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 4:56 PM
To: Slide Users Mailing List
Subject: Re: BindingStore Class Loading Error in JBoss App Server (Slide
2.1.M 1)


Hmmm,

I have only come across such errors when I compiled something to one 
class/interface and on run time the implementation is different. 
However, the signatures seem to be equal. Have you checked you have only 
one jar that contains BindingStore in JBoss' class path? Anyway, I am 
not even sure this would cause problem...

Oliver

Ritu Kedia wrote:
> I am facing a Class loading error in JBoss App Server. I have spent
> considerable time trying to figure the cause. Any help would be greatly
> appreciated.
> 
> I get the following error when deploying Slide in JBoss App Server:
> 
> org.apache.slide.common.Domain - ERROR - java.lang.VerifyError: (class:
> org/apache/slide/store/BindingStore,
> method: getXmlParentSet signature:
>
(Lorg/apache/slide/common/Uri;Lorg/apache/slide/structure/ObjectNode;)Ljava/
> lang/String;) Incompatible argument to function
> 15:13:56,156 ERROR [STDERR] java.lang.VerifyError: (class:
> org/apache/slide/store/BindingStore, method: getXmlParentSet signature:
>
(Lorg/apache/slide/common/Uri;Lorg/apache/slide/structure/ObjectNode;)Ljava/
> lang/String;) Incompatible argument to function
> 
> 
> I am deploying Slide 2.1M1 on JBoss 3.2. I have successful deployed the
same
> version of Slide on the same version of JBoss before. I was trying to
> configure another box with the same setup. I compared the versions of JVM
on
> the 2 boxes (the successful deployment and the one giving this class load
> error); the JVM versions are the same: 1.4.2_02. I have compiled Slide
2.1M1
> source code on my box.
> 
> Could anyone point out what I should look for?
> 
> Thanks in advance,
> 
> Regards,
> Ritu
> 
> 
> -
> 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]



BindingStore Class Loading Error in JBoss App Server (Slide 2.1.M 1)

2004-08-11 Thread Ritu Kedia
I am facing a Class loading error in JBoss App Server. I have spent
considerable time trying to figure the cause. Any help would be greatly
appreciated.

I get the following error when deploying Slide in JBoss App Server:

org.apache.slide.common.Domain - ERROR - java.lang.VerifyError: (class:
org/apache/slide/store/BindingStore,
method: getXmlParentSet signature:
(Lorg/apache/slide/common/Uri;Lorg/apache/slide/structure/ObjectNode;)Ljava/
lang/String;) Incompatible argument to function
15:13:56,156 ERROR [STDERR] java.lang.VerifyError: (class:
org/apache/slide/store/BindingStore, method: getXmlParentSet signature:
(Lorg/apache/slide/common/Uri;Lorg/apache/slide/structure/ObjectNode;)Ljava/
lang/String;) Incompatible argument to function


I am deploying Slide 2.1M1 on JBoss 3.2. I have successful deployed the same
version of Slide on the same version of JBoss before. I was trying to
configure another box with the same setup. I compared the versions of JVM on
the 2 boxes (the successful deployment and the one giving this class load
error); the JVM versions are the same: 1.4.2_02. I have compiled Slide 2.1M1
source code on my box.

Could anyone point out what I should look for?

Thanks in advance,

Regards,
Ritu


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



RE: BindingStore

2004-08-06 Thread Ritu Kedia
I use Binding Store too and everything seems to be working fine for me
(atleast so far). I have tested most of the methods available using
WebdavResource and no problems so far. I have tested using my java app as
well as via DAVExplorer 0.90. 
Christophe>> One suggestion would be to test your server with another client
(may be DAVExplorer).

Stefan>> I do not have this binding property that you mentioned below:
org.apache.slide.binding=true, in my slide.properties.
Is this a new property in 2.1? I use 2.1M1

Regards,
Ritu

-Original Message-
From: Stefan Fromm [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 1:03 PM
To: Slide Users Mailing List
Subject: Re: BindingStore


Hi Christophe,

have you set

org.apache.slide.binding=true in the configuration file slide.properties?

I've tried to reproduce the behaviour that you described. I took Windows
Explorer and could create the collection but also received the HEAD 404
response.

Regards
Stefan


Am Thu, 05 Aug 2004 21:29:08 +0200 schrieb Christophe Lombart
<[EMAIL PROTECTED]>:

> I'm trying to use the BindingStore but I got an exception when I try to
add a new collection with some methods.
> Only the BINDING method is working, other are not working correctly.
> Following the doc, I just set the my store with
classname="org.apache.slide.store.BindingStore" but I doesn't work.
>
> Is it necessary to set other parameters ?
>
> Christophe
>
>
> 05 Aug 2004 21:23:51 - org.apache.slide.webdav.WebdavServlet - ERROR -
org.apache.slide.webdav.WebdavException: Not Found
> org.apache.slide.webdav.WebdavException: Not Found
> at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
.java:391)
> at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
> at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:140)
> at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
> at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
> at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:551)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
> at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163
)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
> at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
> at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
> at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:700)
> at
or

RE: stuck on slide

2004-07-26 Thread Ritu Kedia
Do you get this error on put method or when you instantiate WebdavResource?
>From the stack trace below it appears to me that this is an authentication
error. I would suggest that you use a gui based Webdav Client like
DAVExplorer or Eclipse plugin to ensure that your server setup is working
correctly. 

Regards,
Ritu

-Original Message-
From: Jimmy Yu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 5:23 AM
To: [EMAIL PROTECTED]
Subject: stuck on slide


Hello,

I have downloaded the binary of slide 2.0 included tomcat 5.0.19.
I was able to run the startup.bat and view/log-in through
http://localhost:8080/slide and see a listing.

I then ran my sample program (at bottom of this e-mail) and saw
the output of WebdavResource exists, File is OK, and 
putMethod() Failed.

I then edited the web.xml file to only list the /files directory.
through the web and http://localhost:8080/slide I see that the
directory is currently empty and have nothing in it.

I then ran my sample program again, and got this exception:
org.apache.commons.httpclient.HttpException
at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3185
)
at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3145
)
at
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:879)
at
org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:
824)
at
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1746)
at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1156)
at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1175)
at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1261)
at
org.apache.webdav.lib.WebdavResource.(WebdavResource.java:274)
at SlideTest.main(SlideTest.java:15)
Cause null


My questions are: why is putMethod() keep on failing on me? And 
why do I get the exception error when I modified the web.xml to
only list /files?  Why is that I am able to see the web page after
I modified the web.xml but yet my sample program fails?

Here is my sample program::
import java.io.*;

import org.apache.commons.httpclient.*;
import org.apache.webdav.lib.*;

public class SlideTest
{
   public static void main(String args[])
   {
  try
  {
HttpURL hrl = new
HttpURL("http://localhost:8080/slide/files";);
 hrl.setUserinfo("root","root");
 WebdavResource wdr;
 wdr = new WebdavResource(hrl);
 if(wdr.exists())
System.out.println("WebdavResource exists");
 else
System.out.println("WebdavResource does NOT exists");

 File f = new File("SlideTest.java");
 if(f.exists())
System.out.println("File is OK");
 else
return;

 if(wdr.putMethod(f))
System.out.println("putMethod() Successful");
 else
System.out.println("putMethod() Failed");
  
 System.out.println("End of Test");
  }
  catch(Exception ie)
  {
 ie.printStackTrace();
 System.out.println("Cause " + ie.getCause());
  }
   }
}

Thanks for any kind of hints or pointers you might offer.
-- Jimmy


-
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]



Advise needed for a Single Sign-On solution for Authenticating Sl ide

2004-07-23 Thread Ritu Kedia
I have deployed Slide in the same App Server as my Business Code which uses
Slide's Client Library. Since Slide will always be accessed via my
Application, which gets authenticated by the App Server Container, I would
like to pass the same session information to WebdavResource to connect to
Slide Repository. I am associating the same Realm with my Business
Application and Slide Server. Can anyone give me any hints on how to achieve
this?

I was thinking on the lines of passing the session information (cookie or
jsessionid) available with my Business App to the WebdavResource via
HttpURL. But HttpURL does not have any methods to add cookies. So I
experimented with URL rewriting by passing the jsessionid in the URL. This
did not work. 
I constructed the HttpURL as follows:
HttpURL hrl = new HttpURL("localhost", 8080,
"/slide;jsessionid=xxx")

Any suggestions/ideas?

Regards,
Ritu


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



RE: Facing problem with version-controlling a resource created by Cop y method in BindingStore

2004-07-23 Thread Ritu Kedia
Thanks Ingo for looking into this.

The byte array solution is not acceptable due to memory constraints. 

I had apprehensions about available method, which you confirmed. You are
right that a server side solution is the correct fix. If you have already
filed a bug for this, please let me know or else I will file a bug. 

If someone familiar with the code could get to this before the 2.1 release,
it would be very much appreciated. 

Regards,
Ritu

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 7:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Facing problem with version-controlling a resource created
by Cop y method in BindingStore


Forgot to say, if you need a workaround now, just read the content into
a byte array and pass that to putMethod().

Regards,
Ingo

> Ritu,
> 
> this needs to be fixed on the server side.
> 
> Also your fix won't work in general because the available() method is
> not reliable for computing the length. Look at its documentation. It
> returns the number of bytes that can be read without blocking. That
> means it will propably work for small stream sources but not for
> reading from large files, for example.
> 
> Ingo
> 
> > Ingo,
> > 
> > I have a client side fix for it, which I tested and it works fine. I
have
> > created a patch for it on the latest WebdavResource obtained from CVS
Head.
> > Could you please take a look at it? I am attaching it here.
> > 
> > The fix is basically computing the length of the data from the
InputStream
> > by using *available* method. 
> > 
> > Regards,
> > Ritu


-
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: Facing problem with version-controlling a resource created by Cop y method in BindingStore

2004-07-23 Thread Ritu Kedia
Ingo,

I have a client side fix for it, which I tested and it works fine. I have
created a patch for it on the latest WebdavResource obtained from CVS Head.
Could you please take a look at it? I am attaching it here.

The fix is basically computing the length of the data from the InputStream
by using *available* method. 

Regards,
Ritu



-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 6:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Facing problem with version-controlling a resource created
by Cop y method in BindingStore


This looks like Slide fails to compute the getcontentlength if a
resource is PUT using "Transfer-Encoding: chunked". In fact there are
statements in PutMethod that look like this:

revisionDescriptor.setContentLength(req.getContentLength());

This is not sufficient. When using chunked transfer-encoding the
content-length has to be computed from the data actually received.

Anyone wants to file a bugreport?

Ingo

> On further investigation of this matter, I found the source of the problem
> with versioning a copied resource. 
> I am creating a resource using:
> WebdavResource.putMethod(String path, InputStream fileStream)
> This creates a resource fine but the *getcontentlength* property of the
> resource is set to -1.
> Therefore when I copy this resource, there must be some problem though the
> copy call returns fine without any errors.
> I face an error only when I try to version control this copied resource.
> 
> I am certain about the cause of the bug (which is getcontentlength
property
> being set to -1), because I tested by manually modifying the
> getcontentlength property and then repeating the steps of copy and
> versioncontrol. It worked fine.
> 
> This getcontentlength property bug happens only when using InputStream
with
> putMethod. When using File argument, everything goes fine.
> 
> Does anyone know the fix for this bug? 
> 
> Thanks and Regards,
> Ritu
> 
> 
> -Original Message-
> From: Ritu Kedia [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 16, 2004 6:25 PM
> To: Slide Users Mailing List (E-mail)
> Subject: Facing problem with version-controlling a resource created by
> Cop y method in BindingStore
> 
> 
> Has anyone faced a problem with *Put Under Version Control* on a resource
> created by *Copy* when using BindingStore?
> 
> I get the following error message: 500 Internal Server Error: Revision 1.0
> of object /xx not found.
> 
> If anyone could give me any hints on what is causing this, it would be
very
> helpful.
> 
> Thanks & Regards,
> Ritu


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

Index: WebdavResource.java
===
RCS file: 
/home/cvspublic/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java,v
retrieving revision 1.23
diff -u -r1.23 WebdavResource.java
--- WebdavResource.java 13 Jul 2004 13:29:59 -  1.23
+++ WebdavResource.java 23 Jul 2004 13:18:58 -
@@ -2612,7 +2612,10 @@
 generateIfHeader(method);
 if (getGetContentType() != null && !getGetContentType().equals(""))
 method.setRequestHeader("Content-Type", getGetContentType());
-method.setRequestContentLength(PutMethod.CONTENT_LENGTH_CHUNKED);
+   int contentLength = is.available();
+   method.setRequestContentLength(contentLength <= Integer.MAX_VALUE
+  
? contentLength
+  
: PutMethod.CONTENT_LENGTH_CHUNKED);
 method.setRequestBody(is);
 generateTransactionHeader(method);
 int statusCode = client.executeMethod(method);
@@ -2657,6 +2660,10 @@
 generateIfHeader(method);
 if (getGetContentType() != null && !getGetContentType().equals(""))
 method.setRequestHeader("Content-Type", getGetContentType());
+   int contentLength = data.length();
+   method.setRequestContentLength(contentLength <= Integer.MAX_VALUE
+  
? contentLength
+  
: PutMethod.CONTENT_LENGTH_CHUNKED);
 method.setRequestBody(data);
 generateTransactionHeader(method);
 int statusCode = client.executeMethod(method);
@@ -2752,7 +2759,12 @@
 generateIfHeader(method);
 if (getGetContentType() != null && !getGetContentType().equals(&

RE: Facing problem with version-controlling a resource created by Cop y method in BindingStore

2004-07-23 Thread Ritu Kedia
On further investigation of this matter, I found the source of the problem
with versioning a copied resource. 
I am creating a resource using:
WebdavResource.putMethod(String path, InputStream fileStream)
This creates a resource fine but the *getcontentlength* property of the
resource is set to -1.
Therefore when I copy this resource, there must be some problem though the
copy call returns fine without any errors.
I face an error only when I try to version control this copied resource.

I am certain about the cause of the bug (which is getcontentlength property
being set to -1), because I tested by manually modifying the
getcontentlength property and then repeating the steps of copy and
versioncontrol. It worked fine.

This getcontentlength property bug happens only when using InputStream with
putMethod. When using File argument, everything goes fine.

Does anyone know the fix for this bug? 

Thanks and Regards,
Ritu


-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 6:25 PM
To: Slide Users Mailing List (E-mail)
Subject: Facing problem with version-controlling a resource created by
Cop y method in BindingStore


Has anyone faced a problem with *Put Under Version Control* on a resource
created by *Copy* when using BindingStore?

I get the following error message: 500 Internal Server Error: Revision 1.0
of object /xx not found.

If anyone could give me any hints on what is causing this, it would be very
helpful.

Thanks & Regards,
Ritu


-
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]



Facing problem with version-controlling a resource created by Cop y method in BindingStore

2004-07-16 Thread Ritu Kedia
Has anyone faced a problem with *Put Under Version Control* on a resource
created by *Copy* when using BindingStore?

I get the following error message: 500 Internal Server Error: Revision 1.0
of object /xx not found.

If anyone could give me any hints on what is causing this, it would be very
helpful.

Thanks & Regards,
Ritu


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



RE: Using a JDBCRealm for authentication on slide?!

2004-07-14 Thread Ritu Kedia
Or else you could set *auto-create-users* to true under Configuration Node
in Domain.xml. The user authenticated by your JDBCRealm will be auto-created
in Slide if it does not already exist.

-Original Message-
From: Jacob Lund [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 6:09 PM
To: Slide Users Mailing List
Subject: Re: Using a JDBCRealm for authentication on slide?!


You need to create the users in slide too! Try to log on with a user called:
root.

/jacob

- Original Message - 
From: "Stefan Frank" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 14, 2004 1:38 PM
Subject: Using a JDBCRealm for authentication on slide?!


> Hi folks,
>
> we've got a JDBCRealm configured in tomcat, that handles the security
> for the webapplications - we now have installed slide and want to reuse
> this realm: My first naive approach was to just uncomment the
> constraints in slide/WEB-INF/web.xml and add the roles we want to allow
> access to slide - however, this does not work. When we access slide
> using a browser we get a simple HTTP Status 403(Access to the specified
> resource () has been forbidden.), when we access it using the
> DAVExplorer (http://www.ics.uci.edu/~webdav/), we get a "Access denied
> on / by User *** Could not determine principal for action /actions/read"
>
> This is the realm we defined inside web.xml that we want to authenticate
> against:
>
>driverName="oracle.jdbc.driver.OracleDriver"
>connectionURL="jdbc:oracle:thin:@**:1521:***"
>   connectionName="***" connectionPassword="***"
>userTable="users" userNameCol="user_name"
> userCredCol="user_password"
>userRoleTable="user_roles" roleNameCol="role_name" />
>
> I checked the username/password thrice, we can log into the other
> webapps on the same tomcat withouit any problems: Does slide do
> something else than just have the user authenticate against the realm???!
>
> any help appreciated!!
> cheers
> stf
>
> -- 
> Stefan Frank
> iBioS - Intelligent BioInformatics Systems
> http://www.dkfz-heidelberg.de/ibios
> DKFZ - German Cancer Research Center
> Im Neuenheimer Feld 580
> 69120 Heidelberg
> Tel.: +49 (0) 6221 42-3612
> 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]


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



RE: Checkin and checkout

2004-06-30 Thread Ritu Kedia
:)... I have seen this question being asked so many times. I had myself
asked the same questions some time back...Just a piece of advice from
personal experience.. it would be of help if you refer the Webdav and DeltaV
specs when in doubt about any specific behavior.

Checkout just marks the resource as being checked-out. When another user
tries to checkout the same resource s/he gets a conflict error. So yes you
would have to explicitly get the resource for downloading it locally.
Similarly Checkin just creates a new version and unmarks the resource.
You could perform n no. of resource modifications between checkout-checkin
(using PUT or PROPPATCH), without creating a new version. In other words,
after checkout a new version will be created only when the checkin is
called.

Regards,
Ritu

-Original Message-
From: r d [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 12:13 PM
To: Slide Users Mailing List
Subject: RE: Checkin and checkout


Hi Ritu,
 
Yes. It started working after I set auto-version-control  to true in
Domain.xml.
 
I have some more queries.
For Checkout and checkin methods, there is only one parameter path.
Generally after checkout, we need to get working copy. Where does slide put
this?
Do I have to do explicit get after checkout?
Similarly for checkin, how do get the updated file in?
 
Thanks,
rd.

Ritu Kedia <[EMAIL PROTECTED]> wrote:
Check whether your versioncontrol property in slide.properties is true.
slide.properties is in slide-kernel.jar.
The following property should be set to true.
# Use version control (DeltaV)
# Default: true
org.apache.slide.versioncontrol=true 

Most likely that should be true since you say that you haven't changed
default properties.
Next your resource should be "put under version control" for
checkin-checkout to work. Use WebdavResource.versionControlMethod.
You could also set 
true

in Domain.xml, if you want every resource to be versioned by default.

Regards,
Ritu

-Original Message-
From: r d [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 11:11 AM
To: [EMAIL PROTECTED]
Subject: Checkin and checkout


Hi,
I am using Webdav client api.
It seems I can do get and put but not any checkin and checkout on
webdavresource. When I try, it says (405) method not allowed. What is the
problem?
Are there any specific steps before we can do checkout?
I have default slide configuration and have not changed any settings.

Thanks,
rd.


-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!


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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!


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



RE: Checkin and checkout

2004-06-30 Thread Ritu Kedia
Check whether your versioncontrol property in slide.properties is true.
slide.properties is in slide-kernel.jar.
The following property should be set to true.
# Use version control (DeltaV)
# Default: true
org.apache.slide.versioncontrol=true 

Most likely that should be true since you say that you haven't changed
default properties.
Next your resource should be "put under version control" for
checkin-checkout to work. Use WebdavResource.versionControlMethod.
You could also set true
in Domain.xml, if you want every resource to be versioned by default.

Regards,
Ritu

-Original Message-
From: r d [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 11:11 AM
To: [EMAIL PROTECTED]
Subject: Checkin and checkout


Hi,
I am using Webdav client api.
It seems I can do get and put but not any checkin and checkout on
webdavresource. When I try, it says (405) method not allowed. What is the
problem?
Are there any specific steps before we can do checkout?
I have default slide configuration and have not changed any settings.
 
Thanks,
rd.


-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!


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



RE: Properties with a different namespace

2004-06-20 Thread Ritu Kedia
Brett,

This looks like a DAVExplorer error. I am using DAVExplorer-0.90, which has
this bug. Slide server does create the property with the correct namespace.
You could check the Properties table entry of your resource for
verification.

Regards,
Ritu

-Original Message-
From: Brett Collett [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 11:51 AM
To: '[EMAIL PROTECTED]'
Subject: Properties with a different namespace


When I set a NodeProperty object with a different namespace it is still seen
in DavExplorer as being in the "DAV:" namespace.
 
How can I get these properties to be correctly prefixed?
 
An example of the response from Slide is shown below:
 
 
 
HTTP/1.1 207 Multi-Status

Pragma: No-cache

Cache-Control: no-cache

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Content-Type: text/xml; charset="UTF-8"

Transfer-Encoding: chunked

Date: Thu, 17 Jun 2004 22:03:16 GMT

Server: Apache Coyote/1.0

822







/slide/files/1087359535593





http://www.objective.com/OBJECTIVE_TYPE_CATALOGUE"; />





































test comment in DAV namespace

http://www.objective.com/OBJECTIVE_TYPE_CATALOGUE"; />

test comment in MICROSOFT namespace

false

2004-06-16T04:18:56Z



0

1087359535593

getcontenttype

Wed, 16 Jun 2004 04:18:56 GMT

false

test comment in OBJECTIVE namespace

http://www.objective.com/OBJECTIVE_TYPE_CATALOGUE";
/>

vA119



HTTP/1.1 200 OK







 
 

_ 
Brett Collett 

  Senior Consultant 
  Objective Corporation Limited 
  Ph: + 61 (0)2 9965 7812 
  http://www.objective.com   
  mailto:brett.collett   @objective.com 

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

_ 

 


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



Auto Create Users is not working with BindingStore

2004-06-18 Thread Ritu Kedia
On further investigation of the problem described below I observed that the
default users(root, guest) are being created. Sorry.. I was confused on the
first look at the URI table which had some nos (i.e. /1087541713531.0) in
the URI_STRING column instead of "/users" as in case of ExtendedStore. 

But this still leaves me with the problem of auto-create-users. This
functionality is not working with BindingStore. I observed that the new
users are being created in the URI table but the BINDING and PARENT_BINDING
tables are not being updated. Has anyone faced similar problem? I am using
Slide 2.1M1 with Oracle Store.

If it would be helpful: I debugged the code path on making an OPTIONS method
call to the Slide server with a new user. Here are my findings: The first
time the getPrincipal(SlideToken token) method is invoked on SecurityImpl,
the code path for creating a new user is entered since auto-create-users is
true. The *children* vector contains the newly added user and the
parentUri.getStore().storeObject(parentUri, object) call returns fine. When
the Slide server method returns, the URI table contains the new user entry
but the Parent_Binding and Binding tables do not have new entries for the
new user.   
Also via the code path(StandardRDBMSAdapter.storeObject(Connection, URI,
ObjectNode, boolean)) the bindings including the new user are being inserted
for "/users"... However the DB does not show those inserts on server call
return. Any idea of what could be going wrong?

Thanks for help,
Regards,
Ritu



-Original Message-----
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 5:56 PM
To: Slide Users Mailing List (E-mail)
Subject: Default Users not being created on first deployment when using
Bi ndingStore


Has anyone faced a problem with default user creation when using
BindingStore?

I switched from ExtendedStore to BindingStore... I deleted the Slide DB
Schema (Oracle) and recreated it. Modified my store classname to use
BindingStore. On Server deployment, the Initialization went through fine and
default roles and actions were created but the default users were not
created. I am getting a "Conflict 409" error on performing any action (e.g.
MKCOL). Could anyone please point what am I doing wrong. Note that
everything works fine with ExtendedStore. I am using Slide 2.1 M1.

Thanks for any help,
Regards,
Ritu





-
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]



Default Users not being created on first deployment when using Bi ndingStore

2004-06-17 Thread Ritu Kedia
Has anyone faced a problem with default user creation when using
BindingStore?

I switched from ExtendedStore to BindingStore... I deleted the Slide DB
Schema (Oracle) and recreated it. Modified my store classname to use
BindingStore. On Server deployment, the Initialization went through fine and
default roles and actions were created but the default users were not
created. I am getting a "Conflict 409" error on performing any action (e.g.
MKCOL). Could anyone please point what am I doing wrong. Note that
everything works fine with ExtendedStore. I am using Slide 2.1 M1.

Thanks for any help,
Regards,
Ritu





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



RE: Not able to modify DAV:displayname property of a Collection

2004-06-11 Thread Ritu Kedia
I apologize if I am inconveniencing by reposting this mail. 
I would really appreciate if someone could please let me know whether I can
modify the DAV:displayname property of a collection. 

Ideally I expected the displayname to be a modifiable property but proppatch
is not overwriting that property instead it is creating a new displayname
property with empty namespace. I can use this displayname with my custom
namespace, but this would require me to make one additional propfind call
after getting the resource using WebdavResource. I would like to avoid this
additional call per resource when doing getChildResources.

Any reply would be greatly appreciated.
Regards,
Ritu

-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 7:13 PM
To: Slide Users Mailing List (E-mail)
Subject: Not able to modify DAV:displayname property of a Collection


My requirement is to rename a Collection. 
I tried using: *proppatch("collectionPath", new
PropertyName("DAV:","displayname"), "newName", true)*
But this method created a new property "displayname" with empty namespace
instead of modifying the "DAV:displayname" property.

Could anyone please tell me what is the expected behavior? 

Regards,
Ritu

-
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]



Not able to modify DAV:displayname property of a Collection

2004-06-10 Thread Ritu Kedia
My requirement is to rename a Collection. 
I tried using: *proppatch("collectionPath", new
PropertyName("DAV:","displayname"), "newName", true)*
But this method created a new property "displayname" with empty namespace
instead of modifying the "DAV:displayname" property.

Could anyone please tell me what is the expected behavior? 

Regards,
Ritu

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



RE: Checkin problem with Slide 2.0

2004-06-03 Thread Ritu Kedia
This should be because of the restriction of 255 chars on the
"Property_Value" column of "Properties" table. With 255 characters you can
go up to only 5 versions. I think this has been fixed in 2.1 M1. 

Regards,
Ritu

-Original Message-
From: Shuji Aono [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: Checkin problem with Slide 2.0


Hi,
I have a problem in check-in.
I'm running version 2.0 of slide server and client library.
An exception of "value too long for type character varying(255) " occurs
that RDBMS continues repeating check-out and check-in with the same file in
case of Postgres.
The check-out and the check-in repeated themselves six times.
-- 
Shuji Aono <[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]



Report Method is not returning versions in order (bug?)

2004-06-01 Thread Ritu Kedia
I use the WebdavResource "reportMethod" to get the version report of a VCR.
It works fine but it is not returning versions in the creation order.

O/P:
[0]= "/slide/history/13/1.2"
[1]= "/slide/history/13/1.1"
[2]= "/slide/history/13/1.0"
[3]= "/slide/history/13/1.4"
[4]= "/slide/history/13/1.3"

Is this the expected behavior?

Regards,
Ritu

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



RE: Overwriting Version Content/Properties

2004-05-28 Thread Ritu Kedia
Julian, Thanks for the reply.

You are right in that versions should ideally be immutable. But I think
having a server side feature of overwriting the content would be certainly
nice, specially in situations where the authors/developers can be trusted to
decide whether or not to overwrite (to avoid proliferation of unwanted
versions). 

With reference to your reply below: Is it at least possible to
overwrite/modify Live Properties of earlier versions without creating a new
version? I tried passing the history URI of a VCR to the PROPPATCH method,
with a "set" action for one of its live properties, but I got a
"cannot-modify-version" error (403 status). If its possible to overwrite
such client set properties, could you please tell me what WebdavResource api
to use and what path to pass?

Regards,
Ritu


-Original Message-
From: Julian Reschke [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 10:28 PM
To: Slide Users Mailing List
Subject: Re: Overwriting Version Content/Properties


Ritu Kedia wrote:

> Thanks again Ingo
> 
> I have yet another versioning question. I would really appreciate if you
> could please answer the following:
> 
> The behavior that you have described below(i.e. multiple put and proppatch
> after checkout without creating multiple versions) is part of the
> checkout-in-place feature. Right? 
> 
> Is there any way to overwrite the content/properties of a particular
version
> without creating a new version?
 > ...

No. Versions are immutable (at least their content and their dead 
properties). That's the whole point of having a versioning system, isn't it?

Regards, Julian

-- 
bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

-
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]



Overwriting Version Content/Properties

2004-05-27 Thread Ritu Kedia
Thanks again Ingo

I have yet another versioning question. I would really appreciate if you
could please answer the following:

The behavior that you have described below(i.e. multiple put and proppatch
after checkout without creating multiple versions) is part of the
checkout-in-place feature. Right? 

Is there any way to overwrite the content/properties of a particular version
without creating a new version?

As I understand, WebdavResource provides an "updateMethod" which copies the
content from one version to another. However my requirement is different, I
just want to overwrite the last version without creating a new version.
Basically I want to have the version tree but also give the user an option
to overwrite the last version.
I think I can achieve this by doing a checkout-put-checkin and then
overwriting the contents of the previous version with that of the newly
created version and finally deleting the newly created version (not sure
whether deleting versions is supported).  However even if this route is
possible, it is very cumbersome. 

Secondly, I tried updating/adding property values to a particular version
but got an error "cannot-modify-version". Is it possible to modify the
properties of an earlier version without forking/versioning?

Regards,
Ritu

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 8:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Adding Labels to Resource Versions


A CHECKIN does exactly what you cited: It effectively creates a new
version as a copy (content and properties) of the version controlled
resource.

To create a new version with different content than the currently
checked-in version controlled resource you first have to check-out the
VCR, than modify it with PUT and/or PROPPATCH and finally do a
CHECKIN. The previous version is not affected by this procedure.

Ingo

> Thanks Ingo
> 
> The labeling did work on the version href.
> 
> I have another versioning question: The checkin method does not take data
> input-stream/bytes. Ideally I expected that a checkin would take the
revised
> content from the client for creating the new version.
> 
> I saw the DeltaV specs:
> 
> CHECKIN Method (applied to a version-controlled resource)
> 
>A CHECKIN request can be applied to a checked-out version-controlled
>resource to produce a new version whose content and dead properties
>are copied from the checked-out resource.
> 
> The above comment suggests that the same content as the previous
checked-out
> version will be copied into the new version.
> Given this, Slide is doing the right thing. But I did not understand the
> rationale behind this. Shouldn't a "put" be implicit as part of a Checkin?
> 
> Given the way it works, does it mean that for checking in a new version I
> will have to do an explicit put for the version URI just created by the
> "checkin" method?
> 
> Thanks and Regards,
> Ritu


-
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: Adding Labels to Resource Versions

2004-05-26 Thread Ritu Kedia
Thanks Ingo

The labeling did work on the version href.

I have another versioning question: The checkin method does not take data
input-stream/bytes. Ideally I expected that a checkin would take the revised
content from the client for creating the new version.

I saw the DeltaV specs:

CHECKIN Method (applied to a version-controlled resource)

   A CHECKIN request can be applied to a checked-out version-controlled
   resource to produce a new version whose content and dead properties
   are copied from the checked-out resource.

The above comment suggests that the same content as the previous checked-out
version will be copied into the new version.
Given this, Slide is doing the right thing. But I did not understand the
rationale behind this. Shouldn't a "put" be implicit as part of a Checkin?

Given the way it works, does it mean that for checking in a new version I
will have to do an explicit put for the version URI just created by the
"checkin" method?

Thanks and Regards,
Ritu

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Adding Labels to Resource Versions


You can add labels to and get a specific version. But you first have
to find out (via REPORT) where that version is located, because you
need to act directly on that version (yes, that's how WebDAV works).

And labels are supported by the server side of Slide.

Ingo

> Need help with adding labels to specific resource versions.
> 
> I could not find a method on WebdavResource to add label to a specific
> version of a resource.
> The available methods are:
> public boolean labelMethod(String labelname, int type)
> public boolean labelMethod(String path, String labelname, int type)
> 
> Neither of these methods takes the version parameter. If I want to label
> Version 1.0 of Resource1 as "Release 1.0" and Version 1.1 as "Release
2.0":
> Is there server side support for this and could it be achieved via
> WebdavResource?
> 
> Also, does WebdavResource support "Getting Resource" by version/by label?
> (Again the getMethod takes only the path and no version or label
parameter)
> 
> Thanks for any help
> Regards,
> Ritu


-
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]



Adding Labels to Resource Versions

2004-05-25 Thread Ritu Kedia
Need help with adding labels to specific resource versions.

I could not find a method on WebdavResource to add label to a specific
version of a resource.
The available methods are:
public boolean labelMethod(String labelname, int type)
public boolean labelMethod(String path, String labelname, int type)

Neither of these methods takes the version parameter. If I want to label
Version 1.0 of Resource1 as "Release 1.0" and Version 1.1 as "Release 2.0":
Is there server side support for this and could it be achieved via
WebdavResource?

Also, does WebdavResource support "Getting Resource" by version/by label?
(Again the getMethod takes only the path and no version or label parameter)

Thanks for any help
Regards,
Ritu

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



RE: JSR 170 available for Public Review

2004-05-19 Thread Ritu Kedia
Hi Stefan,

I was trying to get the RI of JSR170 under Slide's proposal module on CVS.
But the jcrri folder is empty. Is there an existing RI (other than the one
available with public review) or is it yet to be started? Also is there any
time frame for implementing JSR170 with slide as backend? I am particularly
interested in the transactional support.

Regards,
Ritu

-Original Message-
From: Stefan Guggisberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 7:39 PM
To: Slide Users Mailing List
Subject: RE: JSR 170 available for Public Review


> Hi Stefan,
> is the RI using slide as backend or is your implementation a replacement
> for the slide core?

the current implementation of the ri has no dependencies on slide. it is
a proposal only. what future direction the implementation will take is open.

> As we spent some time on improving the slide backend (tx filestore,
> improved db-stores) it would be nice to have this features available by
> using the jsr170 api.

i totally agree.

> What about the webdav layer? Is your plan that it will be using the
> jsr170-RI in future. If so please remind that we are working hardly to
> make slide more MS exchange compatible by adding notification, search
> and transaction-support via webav.

remy sketched a possible architecture in his initial proposal:


- WebDAV powered JSR 170 client API
- WebDAV server layer, using JSR 170 API
- Slide core, providing a JSR 170 API


imo, such an architecture would make perfectly sense. but of course, the
community
has to come up with a strategy/decision regarding a future version of slide
& jsr 170.

cheers
stefan

> Best regards,
> Daniel
>
> Stefan Guggisberg wrote:
>
> >hi davide
> >there will be an implementation of the jcr api located in
> >the slide cvs under /proposals/jcrri, available soon.
> >this implementation will represent work in progress.
> >
> >fyi:
> >i'am working on this proposal, on and off, since feb 2003.
> >we had to remove the code from the slide cvs a while ago
> >for legal reasons. but since the jsr 170 spec is now in
> >public review these issues do not exist anymore.
> >
> >for a possible architecture, see remy's initial post:
> >http://www.mail-archive.com/[EMAIL PROTECTED]/msg05538.html
> >
> >
> >cheers
> >stefan
> >
> >
> >
> >
> >>-Original Message-
> >>From: Davide Savazzi [mailto:[EMAIL PROTECTED]
> >>Sent: Dienstag, 18. Mai 2004 10:07
> >>To: 'Slide Users Mailing List'
> >>Subject: JSR 170 available for Public Review
> >>
> >>
> >>
> >>http://www.jcp.org/en/jsr/detail?id=170
> >>It could be interesting to write a store that uses jcr or
> >>implement jcr using
> >>slide :)
> >>
> >>--
> >>Davide Savazzi
> >>
> >>
> >>-
> >>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]
>
>


-
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: URL for getting a versioned resource

2004-04-30 Thread Ritu Kedia
Thanks Ingo for your reply.

Actually I was looking for defining a URL based on the resource path that I
see my resource under. That was more intuitive and meaningful, specially if
I have to pass that URL to a client to fetch the resource. I was wondering
if the Slide WebDavServlet's GET method already handles such request with
just a version parameter passed to it. In other words the GET method would
internally find out what is history folder where the resource version is
stored and fetch the correct version.

Regards,
Ritu



-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: URL for getting a versioned resource


If you want to know what versions are associated to your version
controlled resource, then use the REPORT method. That gives you the
hrefs (paths) of the versions and anditionally you can ask for
properties similar to a PROPFIND.

Ingo

> I am looking for a way to construct a URL to get a specific version of a
> resource.
> 
> For e.g. I have a doc1.txt in test1 folder in files collection. "doc1.txt"
> is a versioned resource. I can get the original copy using URL:
> http://server:port/slide/files/test1/doc1.txt
> 
> What URL should I use to get a specific version of doc1.txt? 
> 
> Internally Slide is storing versioned resources under history collection,
so
> I could get version #1.1 of doc1.txt using URL:
> http://server:port/slide/history/1/1.1 (assuming that doc1 is under
> history/1). However I wouldn't know which history folder my resource is
> under and even I find that from the properties table, I wouldn't want to
> construct such a URL.
> 
> Does the Get Command of Slide's WebDavServlet take a version parameter?
> (such that I could use the following URL to get version 1.1 of doc1.txt:
> http://server:port/slide/files/test1/doc1.txt?v=1.1)
> 
> Regards,
> Ritu
> 
> 
> 
> -
> 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]



URL for getting a versioned resource

2004-04-30 Thread Ritu Kedia
I am looking for a way to construct a URL to get a specific version of a
resource.

For e.g. I have a doc1.txt in test1 folder in files collection. "doc1.txt"
is a versioned resource. I can get the original copy using URL:
http://server:port/slide/files/test1/doc1.txt

What URL should I use to get a specific version of doc1.txt? 

Internally Slide is storing versioned resources under history collection, so
I could get version #1.1 of doc1.txt using URL:
http://server:port/slide/history/1/1.1 (assuming that doc1 is under
history/1). However I wouldn't know which history folder my resource is
under and even I find that from the properties table, I wouldn't want to
construct such a URL.

Does the Get Command of Slide's WebDavServlet take a version parameter?
(such that I could use the following URL to get version 1.1 of doc1.txt:
http://server:port/slide/files/test1/doc1.txt?v=1.1)

Regards,
Ritu



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



RE: what is J2EE store??

2004-04-09 Thread Ritu Kedia
J2EE store is any store that supports JCA. 

Slide's J2EEStore is for any RDBMS. You can deploy a database driver in the
App server and access it via Slide's J2EEStore.
Refer the App Server's manual for deploying DataStores.

For JBoss (when accessing from servlet side code): 

1. The sample files for the different databases are in docs/examples/jca
Copy the applicable ds.xml file to server/default/deploy and change the
properties to match those of your system.

2. In web.xml:
Add the following before 
   
   jdbc/DefaultDS
   javax.sql.DataSource
   SERVLET
   

3. In jboss-web.xml:

jdbc/DefaultDS
java:/DefaultDS


where DefaultDS is the jndi-name you provided in the ds.xml file above

For access from EJB you need to do similar setup in ejb-jar.xml and
jboss.xml inside meta-inf.

Also note that currently Slide uses only Connection Pooling of the J2EE
server and does its own TxMgmt. 
Hope this helps.

Regards,
Ritu


> -Original Message-
> From: Slide Tao [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 09, 2004 3:40 PM
> To: [EMAIL PROTECTED]
> Subject: what is J2EE store??
> 
> 
> hi,
> 
> I have used JDBC Store and File Store, but don't know what is 
> J2EE store. I 
> have read the J2EEStore how-too, and still  have no idea of 
> J2EEStore. Who 
> can tell what it is???
> 
> and if I want to use J2EEStore, do I need set web.xml and 
> server.xml as 
> following?? Any reply would be appreciated.
> 
> web.xml
> 
> Testing Tomcat-wide datasource usage
> jdbc/mtx
> javax.sql.DataSource
> Container
> 
> 
> server.xml
> 
>  type="javax.sql.DataSource"/>
> 
> 
> user
> bar
> 
> 
> password
> foo
> 
> 
> driverClassName
> org.hsqldb.jdbcDriver
> 
> 
> driverName
> jdbc:hsqldb:slide
> 
> 
> 
> 
> _
> Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -
> 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]



CSharp WebDAV Client

2004-04-08 Thread Ritu Kedia
Does anyone know of a CSharp WebDAV Client?

Regards,
Ritu

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



Manual distributed Tx Mgmt in J2EE--> Manually managing Slide Tra nsaction + Custom DB operation as a single Tx

2004-04-05 Thread Ritu Kedia
Basically I want to club some of my custom DB operations with the Slide Tx.
For e.g.

Get Slide's UserTransaction
Get Custom DB Connection
Perform Slide Operations
Perform Custom Operations
Commit Slide's UserTx
Commit Custom DB Connection

In this scenario, if the commit of the custom DB operations fails, there is
no way to rollback Slide's UserTx (and vice-versa if I were to reverse the
order of the commits). The problem is that of a 2PC. Till Slide supports
plugging external TxMgr, is there a workaround to achieve this use case?

I defined a XADataSource in my J2EE server. It deployed fine. Is there a way
to access XAResource on this XADataSource inside the J2EE environment? I am
looking at the following:

Get Slide's UserTransaction
Get Custom DB XAResource
Perform Slide Operations
Perform Custom Operations
Custom XAResource.prepare()
if (above step returns success)
{
try {
Commit Slide's UserTx
Commit Custom DB Connection 
}
catch (Exception e)
{
Rollback Custom DB Connection
Rollback Slide's UserTx
}

}
else
{
Rollback Slide's UserTx
Rollback Custom DB Connection
}

I am unable to obtain XAResource on my XADataSource connection. The
container is returning its Wrapper DataSource which has no methods for
getting an XAConnection. Has anyone had a similar requirement? Please help. 

Regards,
Ritu





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



RE: Performance TestScripts

2004-04-02 Thread Ritu Kedia
Martin thanks for your reply.

But I am getting "Unauthorized" error when executing the test script. Could
anyone please point out the problem:

The same commands run fine when executed via the commandline tool
(user=root).


I issued the following command:
install_dir> tprocessor -testcase
\testsuite\junit\xmltestcases\functional\copy\code\copy201.xml -davuser root
-davpassword root

And I get the following Test output:

 
D:\jakarta-slide-2.0b1-src\testsuite\bin\..\testsuite\junit\xmltes
tc
ases\functional\copy\code\copy201.xml
  
PUT
/slide/files/help-doc.html

  Unauthorized   401
  Created   [201]

ERROR
250
  
  
MKCOL
/slide/files/test

  Unauthorized   401
  Created   [201]

ERROR
93
  
  
COPY
/slide/files/help-doc.html

  Unauthorized   401
  Created   [201]

ERROR
109
  
  
DELETE
/slide/files/test

  Unauthorized   401
  No Content   [204]

ERROR
94
  
  
DELETE
/slide/files/help-doc.html

  Unauthorized   401
  No Content   [204]

ERROR
94
  
  ERROR
  938
  5
  5


Server Side Log:
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "PUT /slide/files/help-doc.html
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "PUT /slide/files/help-doc.html
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "MKCOL /slide/files/test HTTP/1.1"
401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "MKCOL /slide/files/test HTTP/1.1"
401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "COPY /slide/files/help-doc.html
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "COPY /slide/files/help-doc.html
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "DELETE /slide/files/test
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "DELETE /slide/files/test
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "DELETE /slide/files/help-doc.html
HTTP/1.1" 401 728
127.0.0.1 - - [02/Apr/2004:18:42:30 5050] "DELETE /slide/files/help-doc.html
HTTP/1.1" 401 728

Looks like TProcessor is not setting the username and password correctly.
However I am explicitly passing the parameters davuser and davpassword. 

Any idea what cold be going wrong? 

Regards,
Ritu
(p.s. just wanted to avoid debugging if anyone could point out my obvious
error...thanks)

> -Original Message-
> From: Martin Holz [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Performance TestScripts
> 
> 
> Ritu Kedia <[EMAIL PROTECTED]> writes:
> 
> > Are there any performance parameters available for Slide, in a
> > {DesktopClient --> J2EE Server/ Plain Servlet Container} 
> environment? 
> > 
> > Are there any load test scripts available using Slide's Client LIB?
> 
> In the slide CVS repository is a complete testsuite. While it focuses
> on functional tests, there are also performance tests. 
> Its available using 
> "cvs -d pserver:[EMAIL PROTECTED]:/home/cvspublic co 
> jakarta-slide/testsuite/"
> 
> 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]



Performance TestScripts

2004-04-01 Thread Ritu Kedia
Are there any performance parameters available for Slide, in a
{DesktopClient --> J2EE Server/ Plain Servlet Container} environment? 

Are there any load test scripts available using Slide's Client LIB?

Regards,
Ritu


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



Linked Resources

2004-04-01 Thread Ritu Kedia

Does Slide support creating Linked Resources? More specifically, instead of
copying a resource from one collection to another, can I create a
reference/link to the resource? 
In other words, can the PUT command take the Source
URI(/slide/files/Folder1/Fiel1) instead of actual file contents?

I am not sure whether WebDAV has any support for linked resources.  Though
in the WebDAV specs (http://www.ietf.org/rfc/rfc2518.txt), I did read the
following:

4.6 Media Independent Links

   Although HTML resources support links to other resources, the Web
   needs more general support for links between resources of any media
   type (media types are also known as MIME types, or content types).
   WebDAV provides such links. A WebDAV link is a special type of
   property value, formally defined in section 12.4, that allows typed
   connections to be established between resources of any media type.
   The property value consists of source and destination Uniform
   Resource Identifiers (URIs); the property name identifies the link
   type.

12.4 link XML Element

   Name:   link
   Namespace:  DAV:
   Purpose:Identifies the property as a link and contains the source
   and destination of that link.
   Description: The link XML element is used to provide the sources and
   destinations of a link.  The name of the property containing the link
   XML element provides the type of the link.  Link is a multi-valued
   element, so multiple links may be used together to indicate multiple
   links with the same type.  The values in the href XML elements inside
   the src and dst XML elements of the link XML element MUST NOT be
   rejected if they point to resources which do not exist.

   

12.4.1 dst XML Element

   Name:   dst
   Namespace:  DAV:
   Purpose:Indicates the destination of a link
   Value:  URI

   

12.4.2 src XML Element

   Name:   src
   Namespace:  DAV:
   Purpose:Indicates the source of a link.


Does anyone know what is WebDAVs link property used for?

Regards,
Ritu


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



RE: Which API should I use for a web app?

2004-03-31 Thread Ritu Kedia
Hi Andreas,

Could you please share the performance enhancements that you mentioned
below? Are those enhancements generic enough to be incorporated in Slide
2.0?

Also it would be great if you could provide more details of your
configuration in which you have 150,000 up documents?
More specifically I am looking at the following:
Which Slide APIs are you using (Server, Client, WVCM)?
What is the end to end configuration? (for e.g. DesktopClient --> WebServer
--> J2EE App Server --> Servlet --> EJB --> SlideServerAPI --> J2EEStore for
Metadata + FileStore for Content)
Is slide authorization turned on or off?
What store are you using for Metadata?
What store are you using for Content?
What is the average size of the documents?
What is the average depth of top most collection under /files?
What is the peak load (no. of concurrent users)?
Does your client do download of complete top level folders (recursive
download of all files in all sub-folders)? if yes, approximately how long
does it take for a top level folder with 1000 documents each being of approx
.5 MB?


Does Slide has test scripts for load tests? OR Has anyone written their own
test scripts to do the same? 

Regards,
Ritu



> -Original Message-
> From: Andreas Probst [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 11:11 PM
> To: Slide Users Mailing List
> Subject: RE: Which API should I use for a web app?
> 
> 
> On 30 Mar 2004 at 16:26, [EMAIL PROTECTED] wrote:
> 
> > >>If you use the slide API for storing data from your app, 
> take into 
> > >>account that it is reallly complicated to store content 
> in a way that 
> > >>you can use the versioning stuff, because all of the 
> versioning is done 
> > in the webdav layer. 
> > 
> > What do you mean ? The slide API can manage 
> NodeRevisionDescriptors and
> > NodeRevisionDescriptor.
> > It is not what you expect to do ? or are you speaking about 
> other features ?
> > 
> > >>For fast content retrieval in the same vm, slide 
> > >>API might be a good choice.
> > 
> > I'm using the Slide API from a Jetspeed service and its 
> works fine. We have
> > -/+ 20.000 documents and no problem at all.
> > Maybe, if we have more and more documents, this solution will not be
> > scalable. So, next plan is to access to different 
> "external" repositories
> > via the webdav client.
> 
> Hi Christophe,
> 
> there are major performance issues in the Slide kernel and 
> database layer.
> 
> 1. A collection SubjectNode always knows about all its children. 
> With increasing collections the time to retrieve a collection 
> SubjectNode will increase. Apart from this all children 
> SubjectNodes are instanced to prepare the binding information.
> 
> Solution would be to load the information about the children 
> only on demand. To do this, the SubjectNode needs a pointer to 
> the right NodeStore, which in turn needs some new methods. I 
> implemented this with sub-classing the SubjectNode, which had 
> been made more complicated than necessary with some private 
> members and methods in ObjectNode :-( Of course some WebDAV 
> methods need adaption to use the custom SubjectNode.
> 
> 2. When adding a new child to a collection resource, all the old 
> child entries of the collection resource are deleted, just to be 
> saved again afterwards together with the information about the 
> new child. The same is true for removing children.
> 
> Solution would be to enhance the NodeStore interface with 
> methods such as addChild and removeChild or so. Of course 
> StructureImpl needs to be adapted too.
> 
> Having done these two enhancements, I can tell you the 
> performance has increased dramatically, especially when talking 
> about many documents (>1000). Nevertheless, the old database 
> schema with "slow" datatypes (CLOB), which I had to use when 
> doing the changes, prevents the usage of Slide with really many 
> documents: On a server with 150,000 documents (70,000 in one 
> collection) a put of a new document still needs a few seconds -- 
> and unfortunately is rising with every new document. Maybe the 
> new database schema is much better in this regard, but the two 
> problems above remain.
> 
> Regards,
> 
> Andreas
> 
> > 
> > Christophe
> > 
> > 
> -
> > 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: Which API should I use for a web app?

2004-03-30 Thread Ritu Kedia
Daniel thanks really for all your feedback. 
Just one last question:

If I decide to use the Slide APIs directly and turn off Slide's Security
Checks using SlideTokenWrapper

SlideToken token = new SlideTokenImpl(credentials);
token.setEnforceLockTokens(true);
SlideToken tokenWrapper = new SlideTokenWrapper(token,true);
tokenWrapper.setForceSecurity(false);

And provide my own LockStore, since I will be maintaining user list in my
own Schema. Will this configuration significantly reduce the performance
bottleneck? Basically, is security check the main performance impairer?

Regards and Thanks,
Ritu



> -Original Message-
> From: Daniel Florey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 5:15 PM
> To: Slide Users Mailing List
> Subject: Re: Which API should I use for a web app?
> 
> 
> Ritu Kedia wrote:
> 
> >Hello Daniel,
> >
> >Thanks a lot for your reply. Please find my comments inline.
> >
> >  
> >
> >>-Original Message-
> >>From: Daniel Florey [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, March 30, 2004 3:08 PM
> >>To: Slide Users Mailing List
> >>Subject: Re: Which API should I use for a web app?
> >>
> >>Yes, Slide is an abstract content repository but it depends 
> >>on the kind 
> >>of application you want to build on top of it, if it is 
> really usable.
> >>What I was talking about was a portal like webapplication 
> >>using some of 
> >>the content displayed to the user by using slide. If you are 
> >>thinking of 
> >>a totally different app, the performance problems might not occur.
> >>Let's say you are thinking of a webapp that has several 
> >>JSP-pages that 
> >>work without retrieving data from slide while generating 
> >>output and you 
> >>have a download area where users can download documents it 
> >>might be ok. 
> >>But if you think of web pages that contain content that is 
> stored in 
> >>slide and will be retrieved while generating the page it will 
> >>be really 
> >>slow. The API you use will not make a very big difference as the 
> >>performance problems occur inside the slide kernel 
> >>(permission checking 
> >>etc.)
> >>
> >>
> >>
> >
> >If the performance impact occurs inside the Slide Kernel, 
> then how would it
> >be different when accessed via a Web-Client as opposed to a 
> Desktop-Client?
> >The only difference is: in case of a Web-Client I would use 
> some JSP/XSP and
> >in case of a Desktop-Client I would use some Web-Service.  
> With both the
> >JSP/XSP and Web-Services internally using the Slide Client 
> LIB to access
> >Slide's WebDAV Service.
> >
> >In your example above, when you say "retrieving data from 
> Slide", do you
> >imply retrieving actual Content or retrieving any 
> information: MetaData or
> >Content?
> >E.G. 1. if the client(Web/Desktop) wants to view all the 
> sub-folders inside
> >a folder, a Slide WebDAV  command would be issued and 
> the results would
> >be wrapped in respective format and returned to the client. 
> >E.G. 2. if the client(Web/Desktop) wants to download all the 
> files in a
> >folder, a recursive Slide WebDAV  command would be 
> issued and the
> >results would be wrapped in respective format and returned 
> to the client.
> >Will there be performance impact in both cases or only case 2 (large
> >information download)?
> >
> >Sorry for going into so much details... But I really did not 
> understand the
> >difference between a Web-Client and a Desktop-Client. The 
> security and lock
> >checks would be required in both cases. And most likely both 
> cases would be
> >communicating with server over http. 
> >
> >
> >  
> >
> >>>When you mention "background-building of webpages"... are 
> >>>  
> >>>
> >>you referring to
> >>
> >>
> >>>the fact that Slide communicates over the WebDAV(HTTP 
> >>>  
> >>>
> >>extension) protocol
> >>
> >>
> >>>and by that fact it would be required to return a webpage in 
> >>>  
> >>>
> >>response to any
> >>
> >>
> >>>request?
> >>>If yes, would that mean that the performance impact is due to the
> >>>communication layer between a WebApp and Slide? In other words, the
>

RE: Which API should I use for a web app?

2004-03-30 Thread Ritu Kedia
Hello Daniel,

Thanks a lot for your reply. Please find my comments inline.

> -Original Message-
> From: Daniel Florey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 3:08 PM
> To: Slide Users Mailing List
> Subject: Re: Which API should I use for a web app?
> 
> Yes, Slide is an abstract content repository but it depends 
> on the kind 
> of application you want to build on top of it, if it is really usable.
> What I was talking about was a portal like webapplication 
> using some of 
> the content displayed to the user by using slide. If you are 
> thinking of 
> a totally different app, the performance problems might not occur.
> Let's say you are thinking of a webapp that has several 
> JSP-pages that 
> work without retrieving data from slide while generating 
> output and you 
> have a download area where users can download documents it 
> might be ok. 
> But if you think of web pages that contain content that is stored in 
> slide and will be retrieved while generating the page it will 
> be really 
> slow. The API you use will not make a very big difference as the 
> performance problems occur inside the slide kernel 
> (permission checking 
> etc.)
>

If the performance impact occurs inside the Slide Kernel, then how would it
be different when accessed via a Web-Client as opposed to a Desktop-Client?
The only difference is: in case of a Web-Client I would use some JSP/XSP and
in case of a Desktop-Client I would use some Web-Service.  With both the
JSP/XSP and Web-Services internally using the Slide Client LIB to access
Slide's WebDAV Service.

In your example above, when you say "retrieving data from Slide", do you
imply retrieving actual Content or retrieving any information: MetaData or
Content?
E.G. 1. if the client(Web/Desktop) wants to view all the sub-folders inside
a folder, a Slide WebDAV  command would be issued and the results would
be wrapped in respective format and returned to the client. 
E.G. 2. if the client(Web/Desktop) wants to download all the files in a
folder, a recursive Slide WebDAV  command would be issued and the
results would be wrapped in respective format and returned to the client.
Will there be performance impact in both cases or only case 2 (large
information download)?

Sorry for going into so much details... But I really did not understand the
difference between a Web-Client and a Desktop-Client. The security and lock
checks would be required in both cases. And most likely both cases would be
communicating with server over http. 


> >When you mention "background-building of webpages"... are 
> you referring to
> >the fact that Slide communicates over the WebDAV(HTTP 
> extension) protocol
> >and by that fact it would be required to return a webpage in 
> response to any
> >request?
> >If yes, would that mean that the performance impact is due to the
> >communication layer between a WebApp and Slide? In other words, the
> >performance impact can be attributed to using Slide's Client 
> APIs inside our
> >WebApp. And that could be avoided if we access Slide APIs 
> directly from
> >inside our WebApp. Is this interpretation correct?
> >  
> >
> No, the api makes no big difference. You should use the webdav lib or 
> wvcm to access slide, otherwise your app is bound to the same vm.

When using the Client LIB, wouldn't there be a big performance difference
due to the additional HTTP communication layer introduced(I am referring to
using Client LIB from inside a JSP or Web-Service on the Server side)?
(Having the Slide APIs run in the same VM is acceptable).
However I think not having a clean separation between the WebDAV and the
Slide API layer would mandate the use of the Client or WVCM libraries. 




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



RE: Which API should I use for a web app?

2004-03-30 Thread Ritu Kedia
Hi Daniel,

This thread was of great interest to me, because very recently I
experimented using Slide APIs directly from my Application. After reading
this mail thread, I am considering using Slide's Client APIs instead of
directly the server side APIs, though this would require me to code
separately for distributed transaction management (My App specific DB
operations + Slide operations --> in one atomic operation).

Before making the final decision, I wanted to confirm whether I understood
this correctly:

>BTW: Slide is (at the moment) far to slow to serve any webapp in real time.
>I'm currently working on a process engine that is doing all the caching 
>and background-building of webpages so that a webapp can be build on top 
>of slide. It will take some weeks until it is at a usable stage, but 
>this might be a choice for webapps in the future.

First of all: Why would Slide be used for building webpages? As I see it,
Slide is Abstract Content Repository, which in turn could map to multiple
physical Data Stores. In that sense, Slide is parallel to any other Data
Store when viewed from an Application's perspective. And so the only
difference is in the communication layer that an Application uses to
communicate with any other Data Store and that with Slide.
When you mention "background-building of webpages"... are you referring to
the fact that Slide communicates over the WebDAV(HTTP extension) protocol
and by that fact it would be required to return a webpage in response to any
request?
If yes, would that mean that the performance impact is due to the
communication layer between a WebApp and Slide? In other words, the
performance impact can be attributed to using Slide's Client APIs inside our
WebApp. And that could be avoided if we access Slide APIs directly from
inside our WebApp. Is this interpretation correct?

I have diagrammatically represented the above scenario(Slide being accessed
from a WebApplication). In this scenario do you see Slide being usable
(basically will there be any performance issue)?

My apologies if I misunderstood you.


Regards,
Ritu
 



-Original Message-
From: Daniel Florey [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 9:20 PM
To: Slide Users Mailing List
Subject: Re: Which API should I use for a web app?


Hi Ryan,
at the moment it is not recommended to use the slide api directly as you 
don't have access to many features that are hacked into the webdav 
layer. I don't know if versioning is working by using the slide api, 
there is some revision support but it is somehow mixed up with the 
webdav layer, so my advice would be not to use it. If you use slide api 
you are tied to the same vm so your webapp is not very scalable.
The client library is a good way to access slide as the webdav-layer 
will not change soo much in future.
WVCM is an abstraction layer on top of webdav, so it is little slower 
than webdav clientlib but it would be nice, if you would give it a try 
so that the jsr can get some feedback.
Regards,
Daniel

BTW: Slide is (at the moment) far to slow to serve any webapp in real time.
I'm currently working on a process engine that is doing all the caching 
and background-building of webpages so that a webapp can be build on top 
of slide. It will take some weeks until it is at a usable stage, but 
this might be a choice for webapps in the future.


ryan wrote:

>I'm looking at the slide client library, the slide API, and the WVCM
>API, and I can't figure out which one I should use for a web
>application.  Can someone explain what the difference in these API's is?
> 
>Does the Slide API support versioning?  Would the Slide API be much
>faster than the other two because of the network traffic?  Which API
>will support external transactions in the future?
> 
>Thanks,
> 
>Ryan Rhodes
>
>  
>



-
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]

Clubbing external XAResource with SlideTransaction

2004-03-23 Thread Ritu Kedia
Hello,

I have a requirement to define a custom XAResource (for our application
specific DB operations) and to club it in the same transaction as the
operations defined by Slide. For e.g. Creating a Collection + updating some
tables in my DB.

I am wrapping Slide's APIs in my server code. Inside my code I want hold of
current SlideTransaction to enlist/delist my custom XAResource. 

I looked into the slide implementation and the SlideTransactionManager
instance is held by the Namespace, which is not accessible to my
application. Is there a way to meet my requirement without locally modifying
the Slide Code? Any help would be greatly appreciated. I have an urgent
requirement.

Regards,
Ritu




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



RE: JBoss help

2004-03-12 Thread Ritu Kedia
Something that may be useful to those using JBoss and facing problem with
explicit commits and rollbacks (as described by Igor in the first mail of
this thread):

Initially I had applied Oliver's patch (of committing the explicit commits
and rollbacks), to deploy Slide in JBoss. However that is not required if
you define the  of the DataSource in web.xml as "SERVLET". 
Sample:
   
   jdbc/slideDS
   javax.sql.DataSource
   SERVLET
   

Regards,
Ritu


-Original Message-
From: Igor I. Nuzhnov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 12:33 PM
To: Slide Users Mailing List
Subject: Re: JBoss help


Thank you for the help, Oliver
After your patch, all works just fine
Can you, please, make usage of commit and rollback in AbstractRDBMSStore
configurable (Domain.xml)

And another question
When I use new TxFileStore on slide start I get exception
...
08:13:58,078 INFO  [STDOUT] 09 Dec 2003 08:13:58 -
org.apache.slide.common.Namespace - INFO - Content store:
org.apache.slide.store.txfile.TxFileContentStore
08:13:58,125 INFO  [STDOUT] 09 Dec 2003 08:13:58 -
org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - File Store
configured to store/content, working directory work/content
...
08:13:58,203 INFO  [STDOUT] 09 Dec 2003 08:13:58 -
org.apache.slide.store.txfile.rm.impl.FileResourceManager - INFO - Starting
RM at 'store/content' / 'work/content'
08:13:58,203 INFO  [STDOUT] 09 Dec 2003 08:13:58 -
org.apache.slide.store.txfile.rm.impl.FileResourceManager - INFO -
Recovering dwarf
08:13:58,218 INFO  [STDOUT] 09 Dec 2003 08:13:58 -
org.apache.slide.store.txfile.rm.impl.FileResourceManager - EMERGENCY -
Recovering status information from 'work/content/dwarf/transaction.log'
faile
d! Could not find file
08:13:58,218 INFO  [STDOUT] 09 Dec 2003 08:13:58 -
org.apache.slide.store.txfile.rm.impl.FileResourceManager - EMERGENCY -
java.io.FileNotFoundException: work\content\dwarf\transaction.log
08:13:58,218 ERROR [STDERR] java.io.FileNotFoundException:
work\content\dwarf\transaction.log
08:13:58,218 ERROR [STDERR] at java.io.FileInputStream.open(Native
Method)
08:13:58,218 ERROR [STDERR] at
java.io.FileInputStream.(FileInputStream.java:106)
08:13:58,218 ERROR [STDERR] at
org.apache.slide.store.txfile.rm.impl.FileResourceManager$TransactionContext
.recoverState(FileResourceManager.java:1517)
08:13:58,218 ERROR [STDERR] at
org.apache.slide.store.txfile.rm.impl.FileResourceManager.recoverContexts(Fi
leResourceManager.java:1243)
08:13:58,218 ERROR [STDERR] at
org.apache.slide.store.txfile.rm.impl.FileResourceManager.recover(FileResour
ceManager.java:480)
08:13:58,218 ERROR [STDERR] at
org.apache.slide.store.txfile.rm.impl.FileResourceManager.start(FileResource
Manager.java:433)
08:13:58,281 ERROR [STDERR] at
org.apache.slide.store.txfile.AbstractTxFileStoreService.connect(AbstractTxF
ileStoreService.java:160)
08:13:58,281 ERROR [STDERR] at
org.apache.slide.common.AbstractServiceBase.connect(AbstractServiceBase.java
:162)
08:13:58,281 ERROR [STDERR] at
org.apache.slide.store.AbstractStore.connect(AbstractStore.java:227)
08:13:58,281 ERROR [STDERR] at
org.apache.slide.common.AbstractServiceBase.connectIfNeeded(AbstractServiceB
ase.java:234)
08:13:58,281 ERROR [STDERR] at
org.apache.slide.common.Namespace.connectService(Namespace.java:534)
08:13:58,328 ERROR [STDERR] at
org.apache.slide.common.Namespace.retrieveStore(Namespace.java:633)
08:13:58,328 ERROR [STDERR] at
org.apache.slide.common.Uri.parseUri(Uri.java:379)
08:13:58,328 ERROR [STDERR] at
org.apache.slide.common.Uri.(Uri.java:106)
08:13:58,328 ERROR [STDERR] at
org.apache.slide.common.Namespace.getUri(Namespace.java:681)
08:13:58,328 ERROR [STDERR] at
org.apache.slide.common.Namespace.getUri(Namespace.java:661)
...

As I understand, slide can't set correct txId:
public synchronized void recoverState() throws
ResourceManagerException {
String statePath = workDir + "/" + txId + "/" + CONTEXT_FILE;
'work\content\dwarf\transaction.log'

but transaction log in 'work\content\dwarf\65\transaction.log'

Thanks

Igor

- Original Message - 
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2003 10:02 PM
Subject: Re: JBoss help


> Hi Igor,
>
> I suppose you use the patch provided by Grant that allows for external
> TMs, right? I have never tried it and did not check with JBoss as well,
> so I can only guess. When I was merging the stores I was really
> wondering if a commit on the XAResource should also commit the
> transaction as one implementation did and another did not. If I remember
> correctly the implementation that was in
> org.apache.slide.store.impl.rdbms before did not, but now does. Did you
> use this implementation before? Slide's TM does not commit the
> transaction, except over the XAResource, I guess JBoss is closer to the
> specification and actually does a

RE: slide and external UserTransactions

2004-03-04 Thread Ritu Kedia
Daniel,

I am also very much interested in J2EE transaction support. Is there any
time frame in which this support is planned to be released? 

Regards,
Ritu

-Original Message-
From: Daniel Florey [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 2:54 PM
To: Slide Users Mailing List
Subject: Re: slide and external UserTransactions


Hi Steve,
I'm sorry to tell you that it is not possible to use slide as a 
transactional file store in j2ee-context. We are working on making slide 
available as a xa datasource via jca, but this will take some time.
This feature will not make it into slide 2.0 but perhaps in slide 2.x (x>0).
Regards,
Daniel


Steve Ebersole wrote:

>I am interested in proofing usage of Slide as a transactional file store
>inside some existing apps.  The transactional part, however, must be bound
>to global JTA UserTransactions through external TransactionManager lookups
>(specifically WebLogic and JBoss TM lookups).  I searched the archives and
>found a message
>http://marc.theaimsgroup.com/?l=slide-dev&m=105698978309612&w=2 that
>references a patch to allow Slide to be used in this manner.  That message
>was dated June 6, 2003.
>
>Did that feature make the new 2.0 beta release?
>
>Thanks
>
>
>-
>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: File Get is not working (J2EE Store -- JBoss with MySQL)

2004-03-02 Thread Ritu Kedia
Hi Oliver,

I am using the ExtendedStore. The problem is not with the resource not being
delisted. 

The problem is that I had commented all explicit rollbacks and commits on
the Connection to make Slide run under JBoss. Therefore even though the
rollback method is called, the transaction is not being rollbacked.

Code Path: ExtendedStore.createRevisionContent -->
AbstractStore.createRevisionContent --> catch ServiceAccessException -->
delist contentstore with failure--> .. --> AbstractRDBMSStore.rollback

I am not conversant with JTA and J2EE connector specifications:: Under the
current Slide implementation is there a way to /?

It appears to me that Slide is using J2EE store only to maintain the
Connection pool and the complete transaction management is parallel to the
App Server's transaction management support. Is that right? If yes, is there
any plan to move to using the App Server's TM support?

Regards,
Ritu


-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 7:13 PM
To: Slide Users Mailing List
Subject: Re: File Get is not working (J2EE Store -- JBoss with MySQL)


Hi Ritu!

I see, maybe we should just catch the IOException thrown by is.close() 
and silently ignore it?

Why the transaction is not rolled back completely, I do not know. Maybe 
the exception gets eaten up somewhere and does not come through.

Are you using the BindingStore? There might be an issue with it in

> public void storeRevisionContent
> (Uri uri, NodeRevisionDescriptor revisionDescriptor,
>  NodeRevisionContent revisionContent)
> throws ServiceAccessException, RevisionNotFoundException {
> 
> if (uri instanceof ResourceId) {
> super.storeRevisionContent(uri, revisionDescriptor,
revisionContent);
> }
> else {
> try {
> ResourceId resourceId = obtainResourceId(uri);
> resourceId.getStore().storeRevisionContent(resourceId,
revisionDescriptor, revisionContent);
> }
> catch (ObjectNotFoundException e) {
> // TODO: throw RevisionNotFoundException???
> throw new ServiceAccessException(this, e);
> }
> }
> }

Not delisting the store with failure...

Oliver

Ritu Kedia wrote:

> Hi Oliver,
> 
> I figured the problem: 
> Basically the "put" content was not going through fine. It failed in the
> last step of store content. Therefore even though the Content was put in
> Version_Content table, the Properties were never populated.
> 
> 
> Slide Source: 2.0b1 source distribution
> File: StandardRDBMSAdapter.java
> method: storeContent
> code snippet causing the problem: 
>   finally {
> if (is != null) {
> **is.close();**
> }
> }
> cause of the above: statement.setBinaryStream(1, is, (int) contentLength);
> closes the InputStream "is".
> 
> I am using MySQL Connector 3.0.10
> 
> This MySQL connector closes the InputStream on setBinaryStream:
> http://www.mysql.com/documentation/connector-j/ -->  under Known Issues>
> 
> I have fixed the problem locally by commenting the "is.close()".
Everything
> goes fine after the fix. 
> Should I enter a bug for this? 
> 
> And this bug raises an important question about transaction management.
The
> "put" content should have been completely rollbacked. 
> 
> Regards,
> Ritu
> 
> 
> 
> 
> -Original Message-
> From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 9:47 PM
> To: Slide Users Mailing List
> Subject: Re: File Get is not working (J2EE Store -- JBoss with MySQL)
> 
> 
> Ritu Kedia wrote:
> 
>>Slide Dev Team>> Has "Get" been tested with MySQL store on any other App
>>server? 
> 
> 
> I have just done a create, put, get sequence and it worked just fine. No 
>   idea what your problem might be, sorry...
> 
> Oliver
> 
> -
> 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]

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



RE: File Get is not working (J2EE Store -- JBoss with MySQL)

2004-03-01 Thread Ritu Kedia
Hi Oliver,

I figured the problem: 
Basically the "put" content was not going through fine. It failed in the
last step of store content. Therefore even though the Content was put in
Version_Content table, the Properties were never populated.


Slide Source: 2.0b1 source distribution
File: StandardRDBMSAdapter.java
method: storeContent
code snippet causing the problem: 
finally {
if (is != null) {
**is.close();**
}
}
cause of the above: statement.setBinaryStream(1, is, (int) contentLength);
closes the InputStream "is".

I am using MySQL Connector 3.0.10

This MySQL connector closes the InputStream on setBinaryStream:
http://www.mysql.com/documentation/connector-j/ --> 

I have fixed the problem locally by commenting the "is.close()". Everything
goes fine after the fix. 
Should I enter a bug for this? 

And this bug raises an important question about transaction management. The
"put" content should have been completely rollbacked. 

Regards,
Ritu




-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 9:47 PM
To: Slide Users Mailing List
Subject: Re: File Get is not working (J2EE Store -- JBoss with MySQL)


Ritu Kedia wrote:
> Slide Dev Team>> Has "Get" been tested with MySQL store on any other App
> server? 

I have just done a create, put, get sequence and it worked just fine. No 
  idea what your problem might be, sorry...

Oliver

-
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: RDBMS Store for Oracle

2004-02-26 Thread Ritu Kedia
I had the same question We too need adapter for Oracle Store. Has
someone already come up with one?

Regards,
Ritu



-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 4:11 PM
To: Slide Users Mailing List
Subject: Re: RDBMS Store for Oracle


Both me and Christophe do not seem to get this done soon, but Ajay K. 
Mallik seems to work on a port. Ajay, can you say something about your 
progress?

Thanks,

Oliver

Var George wrote:

> Hi
> 
> I am looking to use Oracle and I came across this posting:
> 
>
http://www.mail-archive.com/[EMAIL PROTECTED]/msg03855.html
> 
> Is there any update on when the RDBMS Store for Oracle may become 
> available? I am looking to use something in the near term and I was 
> wondering whether I should start writing one on my own or  is the code 
> planned by Oliver Zeigermann/Christophe LOMBART expected to be available 
> soon (before March 2004)?
> 
> regards
> Varughese George



-
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: File Get is not working (J2EE Store -- JBoss with MySQL)

2004-02-26 Thread Ritu Kedia
Thanks Martin...>> There is a property entry "checked-in" which points to
the corresponding history file.

Back to my original question of performing "Get" operation:
Has anyone(who is using RDBMS Store) come across NullPointerException when
performing file "Get"?
I am using JBoss + MySQL... Apparently there is a bug with creating
non-versioned files: the "creationdate" property is not being created. After
I manually added this property to the non-versioned entry, the "Get" works
fine. 

(Note that the creationdate property is being set for the versioned history
files of the above non-versioned file. )


Slide Dev Team>> Has "Get" been tested with MySQL store on any other App
server? 

Regards,
Ritu


-Original Message-
From: Martin Holz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 7:18 PM
To: [EMAIL PROTECTED]
Subject: Re: File Get is not working (J2EE Store -- JBoss with MySQL)


Hello,

Ritu Kedia <[EMAIL PROTECTED]> writes:

> Need some help in understanding the RDBMS Schema of Slide::
> 
> When we put a non-versioned file under version control a new URI entry is
> made for the versioned counterpart (history/#)
> How is the URI entry of the original non-versioned file bound to its
> versioned counterpart ? In other words if the URI_ID of the non-versioned
> file is 30 and that of the versioned-counterpart 35, then how are these 2
> linked? The Parent_Binding and Binding tables show the association between
> the parent collection and the non-versioned file but there is no binding
> present between the non-versioned file and the history entry of its
> versioned counterpart. Could someone please point out what am I missing?

WebDAV versioning and slide versioning do not work that smooth together.
DeltaV is implemented on top of the slide API. The connection between
the resource at /files and the resources at /history are made by properties.

/files/foo.c has a property  "checked-out", which points to something
like /history/32212/1.1.
For the exact meaning of the related properties look into the
DeltaV specification. 

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: File Get is not working (J2EE Store -- JBoss with MySQL)

2004-02-25 Thread Ritu Kedia
Need some help in understanding the RDBMS Schema of Slide::

When we put a non-versioned file under version control a new URI entry is
made for the versioned counterpart (history/#)
How is the URI entry of the original non-versioned file bound to its
versioned counterpart ? In other words if the URI_ID of the non-versioned
file is 30 and that of the versioned-counterpart 35, then how are these 2
linked? The Parent_Binding and Binding tables show the association between
the parent collection and the non-versioned file but there is no binding
present between the non-versioned file and the history entry of its
versioned counterpart. Could someone please point out what am I missing?


Regards,
Ritu


-Original Message-
From: Ritu Kedia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 7:56 PM
To: Slide Users Mailing List (E-mail)
Subject: File Get is not working (J2EE Store -- JBoss with MySQL)


Hi All,

I am running slide 2.0b1 in JBoss_Tomcat integrated environment, using J2EE
store with MySQL DB.
The "create collection", "write file", "put under version control"
operations all go through fine. But I get a NullPointerException on "Get
file" operation.

Here is the top part of the stack trace:

19:30:15,062 ERROR [STDERR] java.lang.NullPointerException
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.method.GetMethod$ResourceInfo.(GetMethod.java:
943)
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.method.GetMethod.executeRequest(GetMethod.java:216)
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
.java:315)
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:164)
19:30:15,062 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
19:30:15,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)


domain.xml:


jdbc/lcmsDS
org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter
false




















I debugged the cause of this problem:
the "creationdate" property is not being retrieved for any file

Has anyone faced a similar issue? 

I have a couple more questions (for the Slide team):
1. For a non-versioned file I don't see any entry in the Properties table.
When I put the file under version control, an entry gets created. (I am
looking by version_id picked from version_history table for the
corresponding uri_id)... Am I missing something?

2. After putting a file under version control I did 2 checkins and from my
WebDAV Client I see 3 versions in the version report: 1.0, 1.1, 1.2. But
in the version_history table I see only 2 entries for that file and in the
Properties table I see only one entry Shouldn't both the version_history
and properties table show 3 entries for that file?

3. What is revision_no in version_history table?

Is there any document explaining the Slide RDBMS schema?

Regards,
Ritu


-
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]



File Get is not working (J2EE Store -- JBoss with MySQL)

2004-02-24 Thread Ritu Kedia
Hi All,

I am running slide 2.0b1 in JBoss_Tomcat integrated environment, using J2EE
store with MySQL DB.
The "create collection", "write file", "put under version control"
operations all go through fine. But I get a NullPointerException on "Get
file" operation.

Here is the top part of the stack trace:

19:30:15,062 ERROR [STDERR] java.lang.NullPointerException
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.method.GetMethod$ResourceInfo.(GetMethod.java:
943)
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.method.GetMethod.executeRequest(GetMethod.java:216)
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
.java:315)
19:30:15,062 ERROR [STDERR] at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:164)
19:30:15,062 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
19:30:15,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)


domain.xml:


jdbc/lcmsDS
org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter
false




















I debugged the cause of this problem:
the "creationdate" property is not being retrieved for any file

Has anyone faced a similar issue? 

I have a couple more questions (for the Slide team):
1. For a non-versioned file I don't see any entry in the Properties table.
When I put the file under version control, an entry gets created. (I am
looking by version_id picked from version_history table for the
corresponding uri_id)... Am I missing something?

2. After putting a file under version control I did 2 checkins and from my
WebDAV Client I see 3 versions in the version report: 1.0, 1.1, 1.2. But
in the version_history table I see only 2 entries for that file and in the
Properties table I see only one entry Shouldn't both the version_history
and properties table show 3 entries for that file?

3. What is revision_no in version_history table?

Is there any document explaining the Slide RDBMS schema?

Regards,
Ritu


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



RE: Connecting to Slide using DAV Explorer

2004-01-30 Thread Ritu Kedia
Thanks Martin!

The problem was with the web.xml... I created a tomcat project using eclipse
and as specified in the "Getting-Started With Eclipse" Slide Document, I
copied the web.xml from Slide Projects src directory to the web-inf
directory of the new Tomcat Project created by Eclipse. However the Web-Inf
folder under Tomcat installation had its own generated web.xml file (which I
did not suspect since it had the correct servlet mapping). 

If possible, someone from the Slide team should update the "Copy the
Domain.xml and web.xml files from the Slide source folder" section of the
doc http://jakarta.apache.org/slide/getting-started.html. Instead of "new
project's WEB-INF folder" it should be Tomcat installation's WEB-INF folder.

Thanks again,
Ritu
p.s. I truly appreciate the quick replies Feel very positive about
pursuing to use Slide as our base framework.

-Original Message-
From: Martin Holz [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Connecting to Slide using DAV Explorer


Ritu Kedia <[EMAIL PROTECTED]> writes:

> Hello Martin,
> 
> I am using the JBoss_Tomcat combo (JBoss 3.2.1 and Tomcat 4.1)
> 
> I placed the slide war directory in the
/server/default/deploy.
> It deploys fine. What security setup needs to be done to avoid the NPE in
> this deployment?
> 
> After reading your mail I tried deploying slide in Tomcat 4.1.27 (Tomcat
> without JBoss). This time I can connect to the slide server from DAV
> Explorer but I cannot perform any operation other than read. I get a
> forbidden 403 error. This must be due to permissions. In Domain.xml I gave
> "all" permissions to "all" users, but that did not help. 
> I have 2 questions:
> 1. How do I login as root? (the open URL command does not take
> username/password.. AND.. DAV Explorer is not prompting for username
either)
> 2. How do I turn off security? I read
> http://jakarta.apache.org/slide/conf-lib.html. But I did not understand
> where is the default slide configuration file and how do I specify the
> security property when starting tomcat.

Did you enable authentication in web.xml? Slide will not do any 
authentication on its own. The servlet container will do the
authentication and some coarse grained authorization. 
Slide will ask the the container for the username and do fine 
grained access controll.
 
> Also it appears that Slide does not yet support versioning. I get a 501
> error for methods Version-Control and Version-Report. Am I missing
> something?

No sure about that and no server at reach, which uses default configuration.
But IIRC auto-version-control is disabled by default. Have a look at the end
of Domain.xml. Probably you must put the resource under version control
first.


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: Connecting to Slide using DAV Explorer

2004-01-30 Thread Ritu Kedia
I had tried this URL. But it failed with "HTTP Error or Server Timeout,
please retry the last operation".
Though this URL works fine through the browser.

I am using version 0.90 of DAV Explorer. Looks like a bug in that.

Thanks,
Ritu

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 2:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Connecting to Slide using DAV Explorer


http://www.sharemation.com/your_user_name

> Also have you tried connecting to sharemation account through DAV
Explorer?
> If yes, could you please give me the connection URL?
> 
> Regards,
> Ritu


-
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]



Versioning Support in Slide

2004-01-30 Thread Ritu Kedia
The Slide 2.0 Changelog says "Preliminary support for Delta V in the
client". What does this entail? 
More specifically is "Put under version Control", "Check Out", "Check In" of
resources supported?

Secondly, I have a generic WebDAV question regarding locking. From the Delta
V specs it appears that "Check Out" does not really lock the resource, it
only copies the resource to a workspace area on the server. Another user
could check-out the same revision in another workspace for parallel update. 
Does Delta V provide for Exclusive Locking of resources? If yes, how?

Thirdly, If check-out copies the resource to the workspace area on the
server side, does Slide provide for checking out the resource to the desktop
instead?

Lastly, does Delta V support checking out specific revisions? If yes, will
checking in of this resource insert the new revision after the revision
which was checked out?

Regards,
Ritu




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



RE: Connecting to Slide using DAV Explorer

2004-01-29 Thread Ritu Kedia
Hello Martin,

I am using the JBoss_Tomcat combo (JBoss 3.2.1 and Tomcat 4.1)

I placed the slide war directory in the /server/default/deploy.
It deploys fine. What security setup needs to be done to avoid the NPE in
this deployment?

After reading your mail I tried deploying slide in Tomcat 4.1.27 (Tomcat
without JBoss). This time I can connect to the slide server from DAV
Explorer but I cannot perform any operation other than read. I get a
forbidden 403 error. This must be due to permissions. In Domain.xml I gave
"all" permissions to "all" users, but that did not help. 
I have 2 questions:
1. How do I login as root? (the open URL command does not take
username/password.. AND.. DAV Explorer is not prompting for username either)
2. How do I turn off security? I read
http://jakarta.apache.org/slide/conf-lib.html. But I did not understand
where is the default slide configuration file and how do I specify the
security property when starting tomcat.

Also it appears that Slide does not yet support versioning. I get a 501
error for methods Version-Control and Version-Report. Am I missing
something?

Thanks,
Ritu

-Original Message-
From: Martin Holz [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 8:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Connecting to Slide using DAV Explorer


Hello,

Ritu Kedia <[EMAIL PROTECTED]> writes:

> When browsing slide through browser the default page that comes up shows
the
> directory listings for /, which consists of /users, /roles, /files, etc.
> When I click on /users and /roles I get a NullPointerException.
> 
> Top part of the stack trace:
> java.lang.NullPointerException
>   at java.lang.StringBuffer.replace(StringBuffer.java:717)
>   at
> org.apache.slide.webdav.filter.LogFilter.logLine(LogFilter.java:221)
>   at
> org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:193)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

This looks like a bug in Tomcat, not in Slide. 
At LogFilter.java:176 the filter calls java.security.Principal.getName(),
which returns null. The log filter does not check for null here. 

Which Tomcat version and what kind of authentication are you using?

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: Connecting to Slide using DAV Explorer

2004-01-29 Thread Ritu Kedia
Ingo,

Thanks for your prompt reply.

Do you imply that I should use the following connection URL through the DAV
Explorer: http://localhost:8080/slide/files instead of
http://localhost:8080/slide ?

If yes, I am still getting the *500 Internal Server Error*

I think I know why this is coming... (though I don't know the solution to
it)
When browsing slide through browser the default page that comes up shows the
directory listings for /, which consists of /users, /roles, /files, etc.
When I click on /users and /roles I get a NullPointerException.

Top part of the stack trace:
java.lang.NullPointerException
at java.lang.StringBuffer.replace(StringBuffer.java:717)
at
org.apache.slide.webdav.filter.LogFilter.logLine(LogFilter.java:221)
at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

I am attaching the Domain.xml that I am using (it is the Domain.sample
checked in branch Slide_2_0_Release_Branch)

It appears to me that when I try to connect through DAV Explorer it must be
performing the same action as when I click /users on the browser's default
page.

Could you please take a look and let me know what's the problem with the
Domain.xml file below?

Also have you tried connecting to sharemation account through DAV Explorer?
If yes, could you please give me the connection URL?

Regards,
Ritu


-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Connecting to Slide using DAV Explorer


You will most likely not want to upload anything to /slide/.

The actual content is stored in /slide/files/, so you should upload
your files there. /slide/ itself contains beside the content some
other "administrative" stuff like users and permissions.

Regards,
Ingo

> Hi All,
> 
> Is anyone using DAV Explorer to connect to the Slide Server? I get the
> following error message when trying to connect:
> 
> *DAV Interpreter:*
> *500 Server Error*
> 
> And I can't locate server error log either.
> 
> 
> I am new to Slide. I just downloaded code from *Slide_2_0_Release_Branch*
> and built the tomcat project. I can access the Slide Home page:
> http://localhost:8080/slide which gives the directory listings for /. I
want
> to test uploading files to Slide. 
> 
> The example.bat mentioned on the Slide Home page:
> http://jakarta.apache.org/slide/examples.html, is not checked in CVS. 
> 
> I tried the commandLine Client but that is failing too:
> [LOCALHOST] /slide/ $ put run.bat
> put run.bat null
> Uploading  'run.bat' to '/slide/': failed.
> Internal Server Error (500)
> 
> 
> Is this a server side or a client side error? Where is the error log
> generated? 
> 
> Could anyone please point out where I am going wrong? Lastly does anyone
> have a document on how to begin using Slide either via the DAV Explorer or
> the commandLine Slide Client.
> 
> Regards,
> Ritu


-
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]

FW: Connecting to Slide using DAV Explorer

2004-01-29 Thread Ritu Kedia
For some reason my earlier mail was not posted on the mailing list.

-Original Message-
From: Ritu Kedia 
Sent: Thursday, January 29, 2004 6:34 PM
To: 'Slide Users Mailing List'
Subject: RE: Connecting to Slide using DAV Explorer


Ingo,

Thanks for your prompt reply.

Do you imply that I should use the following connection URL through the DAV
Explorer: http://localhost:8080/slide/files instead of
http://localhost:8080/slide ?

If yes, I am still getting the *500 Internal Server Error*

I think I know why this is coming... (though I don't know the solution to
it)
When browsing slide through browser the default page that comes up shows the
directory listings for /, which consists of /users, /roles, /files, etc.
When I click on /users and /roles I get a NullPointerException.

Top part of the stack trace:
java.lang.NullPointerException
at java.lang.StringBuffer.replace(StringBuffer.java:717)
at
org.apache.slide.webdav.filter.LogFilter.logLine(LogFilter.java:221)
at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

I am attaching the Domain.xml that I am using (it is the Domain.sample
checked in branch Slide_2_0_Release_Branch)

It appears to me that when I try to connect through DAV Explorer it must be
performing the same action as when I click /users on the browser's default
page.

Could you please take a look and let me know what's the problem with the
Domain.xml file below?

Also have you tried connecting to sharemation account through DAV Explorer?
If yes, could you please give me the connection URL?

Regards,
Ritu


-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Connecting to Slide using DAV Explorer


You will most likely not want to upload anything to /slide/.

The actual content is stored in /slide/files/, so you should upload
your files there. /slide/ itself contains beside the content some
other "administrative" stuff like users and permissions.

Regards,
Ingo

> Hi All,
> 
> Is anyone using DAV Explorer to connect to the Slide Server? I get the
> following error message when trying to connect:
> 
> *DAV Interpreter:*
> *500 Server Error*
> 
> And I can't locate server error log either.
> 
> 
> I am new to Slide. I just downloaded code from *Slide_2_0_Release_Branch*
> and built the tomcat project. I can access the Slide Home page:
> http://localhost:8080/slide which gives the directory listings for /. I
want
> to test uploading files to Slide. 
> 
> The example.bat mentioned on the Slide Home page:
> http://jakarta.apache.org/slide/examples.html, is not checked in CVS. 
> 
> I tried the commandLine Client but that is failing too:
> [LOCALHOST] /slide/ $ put run.bat
> put run.bat null
> Uploading  'run.bat' to '/slide/': failed.
> Internal Server Error (500)
> 
> 
> Is this a server side or a client side error? Where is the error log
> generated? 
> 
> Could anyone please point out where I am going wrong? Lastly does anyone
> have a document on how to begin using Slide either via the DAV Explorer or
> the commandLine Slide Client.
> 
> Regards,
> Ritu


-
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]

Connecting to Slide using DAV Explorer

2004-01-29 Thread Ritu Kedia
Hi All,

Is anyone using DAV Explorer to connect to the Slide Server? I get the
following error message when trying to connect:

*DAV Interpreter:*
*500 Server Error*

And I can't locate server error log either.


I am new to Slide. I just downloaded code from *Slide_2_0_Release_Branch*
and built the tomcat project. I can access the Slide Home page:
http://localhost:8080/slide which gives the directory listings for /. I want
to test uploading files to Slide. 

The example.bat mentioned on the Slide Home page:
http://jakarta.apache.org/slide/examples.html, is not checked in CVS. 

I tried the commandLine Client but that is failing too:
[LOCALHOST] /slide/ $ put run.bat
put run.bat null
Uploading  'run.bat' to '/slide/': failed.
Internal Server Error (500)


Is this a server side or a client side error? Where is the error log
generated? 

Could anyone please point out where I am going wrong? Lastly does anyone
have a document on how to begin using Slide either via the DAV Explorer or
the commandLine Slide Client.

Regards,
Ritu


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



WebDAV support in CMS

2003-10-20 Thread Ritu Kedia
Hi All,

Slide seems to be the only open source CMS which is WebDAV enabled (unless I
am missing something).

However WebDAV seems to be a promising standard, which will greatly increase
the interoperability between the various third party WebDAV clients and
WebDAV enabled CMS. Then, how come no other open source CMS is standardizing
on this protocol? Most of CMS have their proprietary clients. 

I also saw the commercial Tamino WebDAV CMS white paper, which has a section
on the WebDAV support implemented by the various commonly used authoring
tools: Office 2000, Adobe 5.0, DreamWeaver, etc..., all major OS (Windows
2000, Linux, Mac OS X) and the embedded devices. After reading this
document, I was beyond a doubt that most of the CMS's must be WebDAV
enabled. But after having gone through the CMS matrix on OSCOM
http://www.oscom.org/matrix/index.html, I am unable to understand why no
other CMS is WebDAV enabled.

Surprisingly, Microsoft CMS 2000, does not mention the word WebDAV anywhere
in its documentation. If Windows XP/ 2000, IE 5.0 up and Office 2000 have
WebDAV support, why doesn't MS CMS provide WebDAV support?

Am I missing some important short comings with WebDAV? Apparently not,
because JSR 170 and JSR 147 are both out for public review. Any thoughts/
inputs will be greatly appreciated.

Regards,
Ritu


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



Latest Slide release

2003-10-14 Thread Ritu Kedia
I am new to Slide. I wanted to know whether Slide is an ongoing project or
has it been shelved, since a friend of mine told me that Slide project
stopped sometime in 2001. From the Slide home page I am further confused,
since the last news (at http://jakarta.apache.org/slide/news.html ) is
posted on 11/06/2001. Moreover the latest binary download available is of
version 1.0.16. But the changelog page (at
http://jakarta.apache.org/slide/changelog.html) shows the changelog of
version 2.0.0. 
If 2.0.0 is released, why the download page
(http://jakarta.apache.org/site/binindex.cgi) has pointer to Slide version
1.0.16?
Is the searching/indexing module implemented in 2.0.0?

I will really appreciate any replies.

Thanks,

Ritu Kedia
Module Manager
Saba
email: [EMAIL PROTECTED]

Saba
moving the enterprise.
moving minds.
www.saba.com




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