WebDAV and images

Author Message

Silke Fox

Monday 04 October 2004 7:03:40 am

Hi all,

got WebDAV working so far on eZ 3.4.2 (Debian, Apache 1.3.31) with WebDrive (Win XP).
Creating files and folders works fine, but there are some problems with images.
Uploading .gif, .jpg or .png results in "405 Method Not Allowed".
Uploading .tiff or .bmp seems to work, content object is created and the image is stored in var/storage/images directory.
But these uploaded images cannot be viewed (admin or frontend), image conversion fails.

Failed converting var/storage/images/rubriken/prozessbeschreibungen/test_bmp/665-1-ger-DE/testbmp.bmp to alias original in directory var/storage/images/rubriken/prozessbeschreibungen/test_bmp/665-1-ger-DE
Failed creating the referenced alias reference, cannot create alias large

Image conversion works okay for other images.

Any thoughts on this?
Silke

Björn Dieding@xrow.de

Monday 04 October 2004 3:03:09 pm

As far as I know DAV only works with apache2, because it does not know certain methods (PROPFIND, and others).

But still you can supply a proxy to a apache2 DAV enabled service with a apache1

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Silke Fox

Tuesday 05 October 2004 6:30:04 am

Thank you, Björn, I will test it with Apache 2. I knew I must have missed something here... ;)

Paul Borgermans

Tuesday 05 October 2004 6:58:53 am

Uh, Björn,

Are you sure?

I thought the DAV requests are handled by ez publish, not by apache. So I think there is another problem.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Björn Dieding@xrow.de

Tuesday 05 October 2004 7:48:00 am

Well I am not 100% sure...

it was a long time ago when i set it up the last time and I remember somebody saying it only work with apache2 because only apache2 has the mod_dav.

I only remember I had troubles when setting it up. It was like mentioned in this thread.

http://www.ez.no/community/forum/install_configuration/webdav

Maybe there is some else that can confirm that it run under apache1.
Please post your vhost too.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Paul Borgermans

Tuesday 05 October 2004 8:19:24 am

Hi Björn

I'm sure I had it working on apache 1.3.x with a former ez publish install. But I did not use it in production because of the lack of permission support. BTW, it does not depend on mod_dav, see lines 214 and further in lib/ezwebdav/classes/ezwebdavserver.php. mod_dav in apache 2 is used to have access to the filesystem or special handlers (like subversion does)

Also apache 1.3.x nicely allows the webdav methods and passes them on in the $_SERVER["REQUEST_METHOD"] variable.

I hope this clarifies something.

And I have the feeling that the errors stated above are the result of wrong rewrite rules and a broken gd/imagemagick installation (there shouldn't be any exceptions on the rewrite rule for the webdav index script), as it appears to be a problem with <i>some</i> image files.

Silke, does a normal upload (admin interface) of images work? Can you check the rewriterules for webdav.php?

Best regards

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Björn Dieding@xrow.de

Tuesday 05 October 2004 12:57:10 pm

Paul,

I just tested again the dav server under apache1 ... and it works :-)... you were absolutly right.

Back to the problem above I agree to pauls idea about the image system that might not be properly setup.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Paul Borgermans

Tuesday 05 October 2004 1:36:31 pm

Yeah,

EDIT: see message below, it is only problematic in the media folder, not the regular content folder
--------------------original-------------------------------------
I was also experimenting with webdav on alpha1, can upload anything except images ...

I see an error with path to node id translation going wrong in webdav.log

Can you upload images before I file a bug report on this?
--------------------original-------------------------------------
-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Silke Fox

Wednesday 06 October 2004 12:08:16 am

Hi Paul,

you're right, one problem are the rewrite rules... didn't add tif and bmp to it before testing those... *oops*...

Image conversion is working for images which were uploaded via admin interface.

Does anyone of you remember if WebDAV was working with images sometime?

I'll test it on 3.5alpha as well...

silke

Silke Fox

Wednesday 06 October 2004 12:34:27 am

Yes, same for me on 3.5 alpha. Uploading files and folders is okay, for images it's
"405 Method Not Allowed".

I'm going to file a bug report on this.

Thank you, guys!
silke

Silke Fox

Wednesday 06 October 2004 12:42:40 am

Paul,

another one, what did you mean with
<i>"I see an error with path to node id translation going wrong in webdav.log"</i>?

I don't see any log messages when uploading images, only the pop-up with the 405 error.
Strange... there's only one log level for WebDAV, isn't it?

silke

Paul Borgermans

Wednesday 06 October 2004 4:28:20 am

Well, I should have been a bit more specific: it never works in the media folder, but all is OK with the content folder on 3.5-alpha.

The error message is part of the webdav.log in the logfiles for the 'user' site access. You can enable this logging in webdav.ini

In my rewrite rule for the webdav.php index script I removed all exceptions for image files (and teh other too actually: everything has to go through webdav.php). My server has GD1 GD2 and imagemagick which are all enabled in image.ini

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Silke Fox

Wednesday 06 October 2004 5:13:31 am

Thank you, Paul!
It is working for me now (within the content folder, but not within the media folder).
Yes, the problem was that those images still were excluded from the rewrite rule... :/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:09:22
Script start
Timing: Jan 18 2025 21:09:22
Module start 'layout'
Timing: Jan 18 2025 21:09:22
Module start 'content'
Timing: Jan 18 2025 21:09:23
Module end 'content'
Timing: Jan 18 2025 21:09:23
Script end

Main resources:

Total runtime1.1567 sec
Peak memory usage4,096.0000 KB
Database Queries89

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9141152.6250
Module start 'layout' 0.00560.0032 740.539139.4453
Module start 'content' 0.00881.1464 779.9844707.0625
Module end 'content' 1.15520.0015 1,487.046928.1719
Script end 1.1567  1,515.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2749160.0002
Check MTime0.00140.1179160.0001
Mysql Total
Database connection0.00090.073710.0009
Mysqli_queries1.058591.5105890.0119
Looping result0.00090.0810870.0000
Template Total1.121997.020.5610
Template load0.00230.195620.0011
Template processing1.119696.791820.5598
Template load and register function0.00020.017010.0002
states
state_id_array0.00110.093010.0011
state_identifier_array0.00150.127720.0007
Override
Cache load0.00210.1782890.0000
Sytem overhead
Fetch class attribute can translate value0.00080.065130.0003
Fetch class attribute name0.00150.1260150.0001
XML
Image XML parsing0.00110.092430.0004
class_abstraction
Instantiating content class attribute0.00000.0039200.0000
General
dbfile0.00140.1169230.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
22content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 55
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs