Eirikur Hrafnsson | 2 Aug 01:51
Picon

Re: Dasl search error

I have only gotten these types of errors when having an old version  
of Apache in front of tomcat or using and older AJP connector...
But I haven't tried much with tomcat 6. Works fine with 5.0 and 5.5.  
(HEAD version)

-Eiki, idega software.

On Jul 28, 2007, at 5:31 AM, virtuallight wrote:

> I have been trying my hand at the Dasl Search with little luck.  
> According to the documentation this is supposed to be on by  
> default.  I started with the dasl example pointed to in the wiki  
> and modified it to fit my setup, but I keep getting 501  
> (unsupported errors) when I try it.  Specifically:Method SEARCH is  
> not defined in RFC 2068 and is not supported by the Servlet API.   
> Is this supported in the slide 2.1 binary?  From what I have seen  
> it appears that it is supposed to be.  I am running slide on TomCat  
> 6.0.13 with jdk 1.6.0_02 if that matters.  The URL to the server is  
> valid in the browser and returns the directories listings.  Is the  
> example client code in erorr?
>
> Regards,
> James
Brian Schmidt | 2 Aug 18:41

Office 2007 Docs open read only?


Hey guys,

I am using slide to open and modify office docs. For Office 2003 documents, there was that registry tweak
that allowed files to be open read-write. I recently installed Office 2007 and all the documents open read
only. Has anyone else encountered this and know a work-around?

Thanks!
Brian
virtuallight | 3 Aug 04:38
Picon

Re: Dasl search error

Eiki, thanks for the response.  I downloaded the bundled version and spent 
some time in the tcptunnel, which pointed me to  the evilness of my ways. 
It all works.

Regards,
J
----- Original Message ----- 
From: "Eirikur Hrafnsson" <eiki <at> idega.is>
To: "Slide Users Mailing List" <slide-user <at> jakarta.apache.org>
Sent: Wednesday, August 01, 2007 4:51 PM
Subject: Re: Dasl search error

>I have only gotten these types of errors when having an old version  of 
>Apache in front of tomcat or using and older AJP connector...
> But I haven't tried much with tomcat 6. Works fine with 5.0 and 5.5. 
> (HEAD version)
>
> -Eiki, idega software.
>
>
> On Jul 28, 2007, at 5:31 AM, virtuallight wrote:
>
>> I have been trying my hand at the Dasl Search with little luck. 
>> According to the documentation this is supposed to be on by  default.  I 
>> started with the dasl example pointed to in the wiki  and modified it to 
>> fit my setup, but I keep getting 501  (unsupported errors) when I try it. 
>> Specifically:Method SEARCH is  not defined in RFC 2068 and is not 
>> supported by the Servlet API.   Is this supported in the slide 2.1 
>> binary?  From what I have seen  it appears that it is supposed to be.  I 
>> am running slide on TomCat  6.0.13 with jdk 1.6.0_02 if that matters. 
(Continue reading)

Ian Pilcher | 4 Aug 20:13
Picon

Newbie: How to debug lockMethod failure

How can I determine why my call to lockMethod is failing?  I am
connecting to a local Apache server, with mod_dav.  (Locking works fine
with cadaver, BTW.)

Here is the code I'm using right now:

    import org.apache.webdav.lib.WebdavResource;
    import org.apache.commons.httpclient.HttpURL;

    class DavLock
    {
        public static void main(String[] args) throws Exception
        {
            WebdavResource resource = new WebdavResource(
                    new HttpURL("http://localhost/dav/ipilcher.ics"),
                    true);

            if (!resource.lockMethod())
            {
                System.out.println("lock failed!");
                return;
            }

            //  Other stuff snipped; it never gets here
        }
    }

Any pointers appreciated.  Thanks!

--

-- 
(Continue reading)

Stephen Martin | 4 Aug 20:43

Re: Newbie: How to debug lockMethod failure

Does your apache log give any information? Also in a debugger, you can 
examine the resource
and snope for response information.

Ian Pilcher wrote:
> How can I determine why my call to lockMethod is failing?  I am
> connecting to a local Apache server, with mod_dav.  (Locking works fine
> with cadaver, BTW.)
>
> Here is the code I'm using right now:
>
>     import org.apache.webdav.lib.WebdavResource;
>     import org.apache.commons.httpclient.HttpURL;
>
>     class DavLock
>     {
>         public static void main(String[] args) throws Exception
>         {
>             WebdavResource resource = new WebdavResource(
>                     new HttpURL("http://localhost/dav/ipilcher.ics"),
>                     true);
>
>             if (!resource.lockMethod())
>             {
>                 System.out.println("lock failed!");
>                 return;
>             }
>
>             //  Other stuff snipped; it never gets here
>         }
(Continue reading)

Ian Pilcher | 4 Aug 21:00
Picon

Re: Newbie: How to debug lockMethod failure

Stephen Martin wrote:
> Does your apache log give any information? Also in a debugger, you can
> examine the resource
> and snope for response information.

I've cranked the Apache LogLevel up to "debug", and now I see this in
the error_log:

    The lock refresh for /dav/ipilcher.ics failed because no lock
    tokens were specified in an "If:" header.  [400, #0]

Does this mean anything to anyone?  Thanks!

--

-- 
========================================================================
Ian Pilcher                                         arequipeno <at> gmail.com
========================================================================
Stephen Martin | 4 Aug 21:19

Re: Newbie: How to debug lockMethod failure

It sounds like the file is already locked.  If you are trying to refresh the lock, try calling
discoverOwnLocks() (or something like that) on the resource before you call the
lock method. Also are you providing credentials anywhere, you will need to do
that on the HttpURL as well.

Ian Pilcher wrote:
Stephen Martin wrote:
Does your apache log give any information? Also in a debugger, you can examine the resource and snope for response information.
I've cranked the Apache LogLevel up to "debug", and now I see this in the error_log: The lock refresh for /dav/ipilcher.ics failed because no lock tokens were specified in an "If:" header. [400, #0] Does this mean anything to anyone? Thanks!


-- Stephen Martin smartin <at> vanderfleet-martin.net Phone: (908) 790-9070, Skype: stevevm 80 Hunterdon Blvd. Murray Hill, New Jersey, USA, 07974 http://vanderfleet-martin.net
Attachment (smime.p7s): application/x-pkcs7-signature, 3289 bytes
Ian Pilcher | 4 Aug 22:17
Picon

Re: Newbie: How to debug lockMethod failure

Stephen Martin wrote:
> It sounds like the file is already locked.  If you are trying to refresh
> the lock, try calling
> discoverOwnLocks() (or something like that) on the resource before you
> call the
> lock method. Also are you providing credentials anywhere, you will need
> to do
> that on the HttpURL as well.

AFAICT, the file is not already locked.  I can lock/unlock it at will
with cadaver, PUT, GET, etc.  I'm trying to create a new lock, not
refresh an existing one.

Can you expand on the need for "credentials"?  I currently don't have
security turned on on my DAV directory.  Like I said, cadaver can
lock, unlock, etc. with no problem.

Another thing to note, the list() method works just fine; I can
connect to http://localhost/dav/ and list() will return an array
containing "ipilcher.ics".

Thanks for your patience!

--

-- 
========================================================================
Ian Pilcher                                         arequipeno <at> gmail.com
========================================================================
Ian Pilcher | 4 Aug 22:52
Picon

Re: Newbie: How to debug lockMethod failure

This turns out to be a problem with one of the libraries I'm using.
When I use the JARs from the Apache site, things work.

Thanks for the responses!

--

-- 
========================================================================
Ian Pilcher                                         arequipeno <at> gmail.com
========================================================================
Ian Pilcher | 4 Aug 23:41
Picon

Version of commons-httpclient in webdavclient?

I've tracked my lockMethod problem down to the commons-httpclient JAR.
If I use the one included in the Apache distribution, things work; if I
use any other version, lockMethod mysteriously fails.

What version of commons-httpclient is this?  Has it been modified in
some way to work with the webdavclient?

Thanks!

--

-- 
========================================================================
Ian Pilcher                                         arequipeno <at> gmail.com
========================================================================

Gmane