webdav stopped working after apache upgrade [SOLVED]

dfelicia

Joined: 2007-08-07
Posts: 9
Posted: Tue, 2007-11-13 02:58


Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.5-pl0-gentoo apache2handler
Webserver = Apache
Database = mysqli 5.0.44-log, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Ffmpeg, Getid3, ImageMagick, NetPBM, Gd, LinkItemToolkit, Thumbnail, SquareThumb, jpegtran
Acceleration = partial/3600, partial/3600
Operating system = Linux li18-206 2.6.23.1-linode36 #1 Sun Nov 4 12:03:06 EST 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Rows in GalleryAccessMap table = 21
Rows in GalleryAccessSubscriberMap table = 9484
Rows in GalleryUser table = 18
Rows in GalleryItem table = 9483
Rows in GalleryAlbumItem table = 103
Rows in GalleryCacheMap table = 138

After upgrading my site to Apache 2.2, my gallery webdav stopped working. URL Rewrite is fine, and Site Admin > Webdav reports success.

All I get back is a 500 status code from Apache.

tcpflow conversation:

tcpflow -c -i ath0 host pictures.donsbox.com
tcpflow[11506]: listening on ath0
192.168.001.107.03647-064.022.124.206.00080: PROPFIND /w/ HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)
Pragma: no-cache
Cache-control: no-cache
Accept: text/html, image/jpeg, image/png, text/*, image/*, */*
Accept-Encoding: x-gzip, x-deflate, gzip, deflate
Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5
Accept-Language: en
Host: pictures.donsbox.com
Cookie: GALLERYSID=6ca2b86ac39194b1c1d64fef77f92cff
Connection: Keep-Alive
Depth: 0
Content-Type: text/xml; charset=utf-8
192.168.001.107.03647-064.022.124.206.00080: Content-Length: 303
192.168.001.107.03647-064.022.124.206.00080: <?xml version="1.0" encoding="utf-8" ?><D:propfind xmlns:D="DAV:"
><D:prop><D:creationdate/><D:getcontentlength/><D:displayname/><D:source/><D:getcontentlanguage/><D:getcontent
type/><D:executable/><D:getlastmodified/><D:getetag/><D:supportedlock/><D:lockdiscovery/><D:resourcetype/></D:
prop></D:propfind>
064.022.124.206.00080-192.168.001.107.03647: HTTP/1.0 500 Internal Server Error
Date: Tue, 13 Nov 2007 02:53:59 GMT
Server: Apache
X-Powered-By: PHP/5.2.5-pl0-gentoo
Content-Length: 0
Connection: close
Content-Type: text/html

Apache log:

68.xxx.xxx.174 - - [12/Nov/2007:21:53:59 -0500] "PROPFIND /w/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)"

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-11-13 14:20

@apache log:
that looks like your access log.
is there anything in the error log?

@g2:
is the httpauth module still active?
any warnings shown at site admin -> httpauth or at site admin -> webdav?

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

 
dfelicia

Joined: 2007-08-07
Posts: 9
Posted: Tue, 2007-11-13 15:36

Nothing in apache error log - just the one line logged to the access log.

G2 httpauth module is active (I uninstalled/reinstalled for good measure, keeping default settings. admin > wedav reports success.

I found that if I connect to http://pictures.donsbox.com/w/ using cadaver, login succeeds (albeit slowly). Once logged in, 'ls' seems to recursively list all folder (album) content. i.e. it returns a few thousand .jpg files as output, rather than return my 7 top-level folders (albums) as it did previously.

If I try to connect using Windows XP NetHood, it fails. Similarly, if I try to connect using KDE's Konquerer, it fails... *unless* I connect directly to an album. e.g. Using Konquerer, I can connect to http://pictures.donsbox.com/w/2007. That said, the folder contents are messed up - it lists my sub-albums, as I expect, but also lists all the files contained in those almbums, but at the same level (i.e. as siblings of the folders)

So, something is definitely messed up... I'm wondering if it's mod_rewrite?

The version of Apache I upgraded to is 2.2.6. Downgrading is not an option I'd be happy to explore.

BTW, I tried enabling mod_dav on a different VHOST, and webdav operations worked fine. (I've since disabled mod_dav to debug this G2 issue.)

Oh, I've also tried disabling the OPTIONS part of the mod_rewrite config for webdav. Has no impact.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-11-13 15:53

> 'ls' seems to recursively list all folder

that was a bug in g2.2.3's webdav module. upgrade to the current version and that's fixed.
site admin -> plugins -> get more plugins -> ...

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

 
dfelicia

Joined: 2007-08-07
Posts: 9
Posted: Tue, 2007-11-13 16:20

Nice! Upgrading the plugin fixed all my issues... I don't understand how it was working before I upgraded apache, though? (Maybe it stopped working after I cleared the G2 caches via /lib/support, which I had to do after upgrading Apache?)

Anyway, after upgrading the module I can enumerate the contents of /w/ with NetHood, Konqueror, Cadaver, and DavFS. Many thanks for the solution.

 
joyjit

Joined: 2005-03-27
Posts: 16
Posted: Tue, 2008-04-15 06:26

I am having a similar problem as dfelicia, i.e:

Quote:
I found that if I connect to http://pictures.donsbox.com/w/ using cadaver, login succeeds (albeit slowly). Once logged in, 'ls' seems to recursively list all folder (album) content. i.e. it returns a few thousand .jpg files as output, rather than return my 7 top-level folders (albums) as it did previously.

However, I am using the latest G2 with latest WebDav:

Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.3 cgi-fcgi
Webserver = Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.8 mod_ssl/2.8.22 OpenSSL/0.9.7e
Database = mysqlt 5.0.24a-standard-log, lock.system=flock
Toolkits = ArchiveUpload, LinkItemToolkit, NetPBM, SquareThumb, Gd, Exif, ImageMagick, Ffmpeg, Thumbnail
Acceleration = full/86400, full/86400
Operating system = Linux baht 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Rows in GalleryAccessMap table = 49
Rows in GalleryAccessSubscriberMap table = 2109
Rows in GalleryUser table = 16
Rows in GalleryItem table = 2102
Rows in GalleryAlbumItem table = 28
Rows in GalleryCacheMap table = 31

And WebDav plugin is at version 1.0.0.3, which is the latest.

Any ideas as to what might be wrong?

 
joyjit

Joined: 2005-03-27
Posts: 16
Posted: Tue, 2008-04-15 06:54

Never mind, I've figured out the problem. My ISP (dreamhost.com), did not upgrade gallery to 2.2.4 even though they claimed to have. I am following up with them.