WebDAV requests not handled

stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Thu, 2007-03-22 07:44

Hello everyone,

I'm trying to enable WebDAV access to my Gallery2 setup. Unfortunately, at the top of the litany of error messages I receive at the WebDAV module is this one:

WebDAV requests not handled. The FAQ referenced doesn't elaborate too much on how to resolve this problem. Does anyone here have any suggestions?

Much thanks!
- lawrence

Gallery version = 2.2 core 1.2.0
PHP version = 4.3.10-19 apache2handler
Webserver = Apache/2.0.54 (Debian GNU/Linux) DAV/2 mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-19 mod_perl/1.999.21 Perl/v5.8.4
Database = mysql 4.1.11-Debian_4sarge7-log, lock.system=flock
Toolkits = Exif, NetPBM, ImageMagick
Acceleration = partial/21600, partial/21600
Operating system = Linux server-of-stinkpot 2.6.8-12-amd64-k8 #1 Tue Dec 5 21:24:16 UTC 2006 x86_64

http://www.stinkpot.org/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-22 14:03
 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Thu, 2007-03-22 14:33

my apologies for not rtfaq.

my php info:
http://desk.stinkpot.org:8080/test.php

my gallery:
http://desk.stinkpot.org:8080/gallery2/main.php

much thanks,
-lawrence

http://www.stinkpot.org

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-22 14:47

i thought mod_dav could be an issue (having apache mod_dav handling the dav requests instead of having them passed to g2), but i just tested that on my local server and that's not really the case.

maybe someone else has an idea...

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-22 14:49

PS: Does site admin -> webdav show any other warning or is this all you see?

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Thu, 2007-03-22 19:51

hi valiant,

i actually see two other errors as well:

* missing dav headers
* Alternative URL missing DAV headers

(i thought i'd only pose one problem at a time to the forum ...)

much thanks,
lawrence

http://stinkpot.afraid.org:8080/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-22 20:42

good to know. these things can be connected.

so dav doesn't seem to work at all for you.
maybe jablko has some input on this issue...

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Sat, 2007-03-24 15:08

I'm having the same problem too.

I host my sites on a MediaTemple (dv) server and I get the exact same error described above. Unfortunately, there is no solution in the Gallery website at this time.

BUT...
I installed a similarly embedded version of Gallery2.2 in Joomla for a client hosting his own website on Windows Server 2003, running under XAMPP - IT WORKED! I had to use the PHP method of URL rewrite to get it working.

My dedicated virtual server does not like the PHP method, so it tried using Apache mod_rewrite, which works OK. Of course, it's all for naught since the server is not passing DAV requests to Gallery2.

How do enable my server to pass WEB DAV request to Gallery2???

By the way, I already tried editing the http.conf and adding "DAV ON", but it does not seem to make a difference.

GRRR.

 
navy
navy's picture

Joined: 2007-03-24
Posts: 2
Posted: Sat, 2007-03-24 19:56

I have problem with webdav too.
Is mod_dav module required for webdav support in Gallery2?
Is "DAV ON" entry in http.conf required?

--
Przemysław Sztoch

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-03-24 20:07

> Is mod_dav module required for webdav support in Gallery2?

no

> Is "DAV ON" entry in http.conf required?

no

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Sat, 2007-03-24 22:32

...so what could be preventing the server from passing WEBDAV requests to Gallery2?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-03-24 22:45

if you see a webdav OPTIONS rule in site admin -> url rewirte, disable it and see if it works then. and if it was already disabled, enable it to see if that helps.
and if you don't see that rule at all, that's fine too.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Sun, 2007-03-25 05:00

hi valiant,

had three options that were all initially checked:
1) Connect to WebDAV
2) Mount WebDAV
3) OPTIONS Requests: No URL Pattern

unchecking each did not fix webdav problems; unchecking 1) actually caused another error to be spat out (involving webdav connection not being turned on ...)

http://stinkpot.afraid.org:8080/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-03-25 12:13

i was referring to 3).

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Sun, 2007-03-25 15:40

Tried the suggestion mentioned above.

Unfortunately, this does not change the fact that WEBDAV requests are not being handled. I wish I knew why this worked in a WAMP environment but not in LAMP environment (for me, at least).

 
jablko

Joined: 2004-03-23
Posts: 21
Posted: Mon, 2007-03-26 05:20

Hi, I tried connecting to http://desk.stinkpot.org:8080/gallery2/w and it worked, at least with the cadaver WebDAV client.

I also tried running the tests which WebDavSiteAdmin performs and which result in WEBDAV_STATUS_METHOD_NOT_HANDLED on http://desk.stinkpot.org:8080/gallery2/main.php?g2_view=webdav.WebDavWorks, but these all seem to pass: http://cgi.sfu.ca/~jdbates/tmp/gallery/200703250/stinkpot

Can you confirm you still see the WebDAV requests not handled error in WebDavSiteAdmin? If you see this error yet all the methods print PASS_WEBDAV, this is very unusual. There could be an error with WebDavSiteAdmin making requests for WebDavWorks, or there could be a problem with the test in WebDavSiteAdmin for PASS_WEBDAV.

stevetsi: Currently I can't think of a reason why your web server isn't passing WebDAV requests to PHP. If you are able, please post the URL to your failing Gallery. I'll try connecting with the various methods which produce the WebDAV requests not handled error and hopefully the web server prints some useful information?

Jack

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-03-26 13:17

Maybe some firewall blocks outgoing requests (even if it's for the same host / loopback).
Maybe fsockopen is disabled, but i'm pretty sure that php execution should halt (error level).

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Mon, 2007-03-26 13:41

http://brennaandsteve.com/gallery2 or you can go to http://brennaandsteve.com and click on the link for the photo gallery.

Gallery2.2 is embedded in Joomla 1.0.12. I have a similar setup on Windows Server 2003 running under XAMPP that works just fine.

I tested adding a new Network Place via Windows XP by connecting to http://brennaandsteve.com/gallery2/w. It connects but never prompts for a password. Also, I cannot decend into the albums directory due to permissions errors.

I noticed that the webdav directory for the XAMPP hosted website is http://www.ldbco.com/gallery2/main.php/w (this connects fine, with the necessary user/password prompt to allow me to make changes via windows explorer.

 
navy
navy's picture

Joined: 2007-03-24
Posts: 2
Posted: Mon, 2007-03-26 22:05

Valiant!
You have got a lot of experiences with webdav.
Whould you like to transfer it to http://codex.gallery2.org/Gallery2:Modules:webdav:admin.
Thanks in advance.
--
Przemysław Sztoch

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-03-26 22:24

navy

why? what? :)

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Tue, 2007-03-27 00:25

So far, I know that I can creat a WEBDAV connection to my server and create/copy/delete files.

BUT, this unfortunately does not work with Gallery...

Let me explain:
I was able to gain full file access to the g2data folder on my server. I created a folder and populated it with an image, but the changes did not show up in the gallery. When I did this on my G2 installation on Win2003/XAMPP, the new folder and images appeared as soon as I viewed the gallery.

So, WEBDAV works as far as my server is concerned, but requests are still not being passed to Gallery. I wish the webdav codex page actually had some usefull information regarding this matter. I will post any updates on my progress...

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Tue, 2007-03-27 00:34

valiant,

Here's my phpinfo in case you want to check it out:

http://brennaandsteve.com/gallery2/phpinfo.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-03-27 00:55

stevetsi

maybe it starts working if you disable mod_dav. if you're able to upload files via webdav to your g2data folder (without going through gallery2/w/), then it certainly looks like mod_dav is handling the requests.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jablko

Joined: 2004-03-23
Posts: 21
Posted: Tue, 2007-03-27 14:29

stevetsi: Yes, it certainly seems another WebDAV server is handling requests: http://cgi.sfu.ca/~jdbates/tmp/gallery/200703270/brennaandsteve

The PROPFIND response for instance, gives details of the Gallery main.php script, rather than invoking the script. These requests were performed on http://brennaandsteve.com/gallery2/main.php?g2_view=webdav.WebDavWorks, however I also tried http://brennaandsteve.com/gallery2/w, with similar results: GET is passed to g2_controller=webdav.WebDav but PROPFIND gets 404 Not Found.

So as you figured out on your own, WebDAV request methods are not getting passed to PHP. Maybe this is because mod_dav is enabled? Try disabling it as valiant suggests. It could also be because of another Apache configuration issue... I've not encountered this problem and currently don't have any guesses. Your phpinfo looks like it should support the Gallery WebDAV module. Apache ordinarily forwards WebDAV request methods to PHP.

Jack

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Tue, 2007-03-27 14:34

I'll edit the httpd.conf file and remove the DAV ON statement that I placed in there. I know, through examining phpinfo, that my server supports mod_dav.

Also, while I was able to create folders and upload pics, the changes did not properly reflect in the Gallery2 interface. We may have to wait a little longer to see if other users experience the same issue so that more details can be collected. My theory right now is that the issue lies somewhere between mod_rewrite and http authentication.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-03-27 15:01

> I know, through examining phpinfo, that my server supports mod_dav.

yes, and g2 is mabye conflicting with that. so if possible, remove the line(s) in httpd.conf that load mod_dav.

> Also, while I was able to create folders and upload pics, the changes did not properly reflect in the Gallery2 interface.

as explained above by jablko and me, that's entirely explained by the fact that you're (your webdav CLIENT) not interacting with g2. you're interacting with mod_dav. which is bad.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stevetsi

Joined: 2007-03-24
Posts: 8
Posted: Tue, 2007-03-27 17:37

Thank you valiant and jablko for your... valiant efforts!

I commented-out the lines that loaded the web dav modules on my server and restarted Apache. I used the Apache re-write rules and activated the HTTP-AUTH plugin. Problem solved!

So the issue was that my server's mod_dav was conflicting with Gallery2.2.1's implementation (yeah, I upgraded too). I hope that in the future it will be possible to make this a feature that takes advantage of the server's resources, but for now it should work fine.

Thanks again for all your effort,

Steve Tsiopanos
President/Owner, Annatech LLC

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-03-27 18:05

Thanks for your feedback. Good to hear that it works now for you.

@jablko:
I guess this makes absolutely sense.
Do you know if we can disable mod_dav for the g2 folder?
We could ask our users to add that snippet into .htaccess...

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Wed, 2007-03-28 05:20

hey jablko:

you're totally right - i am able to connect and webdav works! and, i still receive errors in the the webdavsiteadmin.

(sorry for not responding sooner; i've been out of town for the past 3 days.)

i'm sorely tempted to ignore the problem, as webdav appears to be working ...

http://stinkpot.afraid.org:8080/

 
jablko

Joined: 2004-03-23
Posts: 21
Posted: Wed, 2007-03-28 23:32

valiant: Apparently not : ( http://httpd.apache.org/docs/2.2/mod/mod_dav.html#dav

I see that the "Dav" directive doesn't support the .htaccess context, so we can't put something like "Dav Off" in .htaccess. I also see:

Note, that once you have DAV enabled for some location, it cannot be disabled for sublocations.

So if mod_dav is enabled on "/~jablko", I can't disable it for "/~jablko/gallery2".

This page talks about the opposite problem: Having WebDAV requests handled by PHP rather than mod_dav: http://www.webdav.org/mod_dav/install.html#complex

I tried forcing PHP to be the content handler over mod_dav, without success. No help yet in #apache. Will maybe contact the httpd users list.

stinkpot: Glad it's working! But I'm disappointed our configuration checks are giving you inaccurate information. I'm curious to know the list of all the errors you're seeing in WebDavSiteAdmin, despite WebDAV working fine.

Thanks, Jack

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-29 00:06

jablko

ok, thanks for researching.
i've updated the docs accordingly: http://codex.gallery2.org/Gallery2:Modules:webdav:admin#WebDAV_requests_not_handled

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
squarky

Joined: 2007-07-17
Posts: 1
Posted: Tue, 2007-07-17 16:31

I've got the same problem.

Admin -> WebDAV reports WebDAV requests not handled, even though mod_dav and mod_dav_fs are disabled in Apache. Connecting and browsing the albums with WebDAV works fine, but when I try to upload a picture trough Network Places, the transfer ends with the error: "An error occurred copying some or all of the selected files." and nothing is uploaded.

Gallery: http://wejdling.dk/gallery2/

phpinfo: http://wejdling.dk/phpinfo.php

System information:
Gallery version = 2.2.2 core 1.2.0.4
PHP version = 4.4.4 apache2handler
Webserver = Apache/2.0.59 (FreeBSD) PHP/4.4.4 with Suhosin-Patch mod_ssl/2.0.59 OpenSSL/0.9.8e
Database = mysqlt 4.1.19-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, Gd
Acceleration = none, none
Operating system = FreeBSD hugo.hofs.dk 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006

:/usr/obj/usr/src/sys/SMP i386
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Rows in GalleryAccessMap table = 11
Rows in GalleryAccessSubscriberMap table = 3
Rows in GalleryUser table = 3
Rows in GalleryItem table = 3
Rows in GalleryAlbumItem table = 3
Rows in GalleryCacheMap table = 0

Reusing an old thread to avoid spamming the forum ;)

Thanks,
Squarky

 
evgenydeep

Joined: 2007-05-08
Posts: 23
Posted: Wed, 2008-07-02 18:30

I have ABSOLUTELY the same problem, like squarky.

I described my problems here, in new topic:
http://gallery.menalto.com/node/79143