Your message dated Thu, 27 Feb 2025 16:29:50 +0000
with message-id <[email protected]>
and subject line Bug#1094722: Removed package(s) from unstable
has caused the Debian Bug report #791363,
regarding [PATCH] php-http-webdav-server: WebDAV encoding problems
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
791363: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791363
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php-http-webdav-server
Version: 1.0.0RC6-2

Hi packet maintainer(s), hi Hartmut!

I'm currently setting up a document management system (based on
SeedDMS) and had servere issues with contents containing German
Umlauts or any other non-US-ASCII glyphs in their names.

  Seems there were rumors and even actual bug reports regarding
encoding issues. As it turns out, it *seems* to be quite a simple bug
where something like rawurlencode() should have been used, but without
actually encoding the '/' characters in between.

  I propose this patch, which seems to solve all my problems with the
DMS. It might need testing with other WebDAV implementations using
PHP's backend, but I don't know of any.

  Here's my patch fixing the issue for me:


--- /usr/share/php/HTTP/WebDAV/Server.php~orig  2015-07-03 21:59:34.115349471 
+0200
+++ /usr/share/php/HTTP/WebDAV/Server.php       2015-07-03 22:02:52.292439548 
+0200
@@ -2059,12 +2059,12 @@
      */
     function _urlencode($url) 
     {
-        return strtr($url, array(" "=>"%20",
-                                 "%"=>"%25",
-                                 "&"=>"%26",
-                                 "<"=>"%3C",
-                                 ">"=>"%3E",
-                                 ));
+        $ret = '';
+        $parts = explode ('/', $url);
+        array_shift ($parts);
+        foreach ($parts as $part)
+            $ret .= '/' . rawurlencode ($part);
+        return $ret;
     }
 
     /**


MfG, JBG

-- 
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
Signature of:            http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
the second  :

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 1.0.0RC8-1.1+rm

Dear submitter,

as the package php-http-webdav-server has just been removed from the Debian 
archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1094722

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Paul Tagliamonte (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to