Item13571: WebDAVContrib incompatible with Foswiki-2.0

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: FilesysVirtualPlugin
Branches: master
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
Just tested accessing an attachment with umlaute in its name. Result is:

DIE Rcs::Handler: stream open /.../pub/.../.../töricht.xlsx failed: No such file or directory at /home/www-data/foswiki/core/lib/Foswiki/Store/Rcs/Handler.pm line 1339

The other DAV methods probably fail similarly as there is lots of encoding going on in HTTP::WebDAV that might not play nicely with Foswiki-2.0.

-- MichaelDaum - 28 Jul 2015

HTTP.pm does a lot of decode_utf8 to convert utf8-encoded request params to unicode. The module is written to use unicode throughout. The conversion to {Site}{CharSet} happens in the FilesysVirtualPlugin.

The FilesysVirtualPlugin does not inspect $Foswiki::UNICODE so always tries to decode to {Site}{CharSet}. If this is not set, it will default to iso-8859-1 which is almost certainly wrong.

I pushed an untested fix, and derated to Normal status pending your verification and a release.

-- Main.CrawfordCurrie - 30 Jul 2015 - 08:29

Doesn't work. Browsing DAV returns nothing. Investigating.

-- MichaelDaum - 31 Jul 2015

I didn't run the tests but looks good up to now. I can edit attachments with umlaute in them again.

-- MichaelDaum - 31 Jul 2015
 
Topic revision: r4 - 11 Jul 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy