maindavfs2 - Support: sr #109870, Files containing bracket...

 
 

sr #109870: Files containing bracket characters not displayed

Submitter:  chrysn <chrysn>
Submitted:  Wed 07 Aug 2019 06:34:50 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 08 Aug 2019 09:00:24 AM UTC, comment #6: 

Thanks for finding the error; your detailed description will hopefully help in fixing the server issue now reported as <https://github.com/arut/nginx-dav-ext-module/issues/45>.

Sorry for filing this against the wrong program. As far as I am concerned, this can be closed for davfs2.

chrysn <chrysn>
Wed 07 Aug 2019 06:34:50 PM UTC, comment #5: 

This item has been reassigned from the project davfs2 bugs tracker to your tracker.

The original report is still available at bugs #56622

Following are the information included in the original report:

[field #0]                  Item ID: 56622

[field #1]                 Group ID: 10199

[field #2]              Open/Closed: Open

[field #3]                 Severity: 3 - Normal

[field #4]                  Privacy: Public

[field #8]                         : Unknown bugs Field Display Type

[field #9]                 Category: None

[field #10]             Submitted by: chrysn

[field #11]              Assigned to: wbaumann

[field #12]             Submitted on: Fri 12 Jul 2019 07:47:06 PM UTC

[field #13]                  Summary: Files containing bracket characters not displayed

[field #14]      Original Submission: Files with a "[" are not displayed in a davfs2 mount. I've verified that the WebDAV server (nginx/1.14.2) are exposed over DAV by accessing it directly using gvfs / Thunar.

The tests also contain a file with a hash sign to check for #53819.

On the server:

$ ls
total 0
drwxr-xr-x 1 chrysn chrysn 118 Jul 12 21:31  .
drwxr-xr-x 1 chrysn chrysn 300 Jul 12 21:31  ..
-rw-r--r-- 1 chrysn chrysn   0 Jul 12 21:31 'test-bracket-open-['
-rw-r--r-- 1 chrysn chrysn   0 Jul 12 21:31  test-hash-sign-#
-rw-r--r-- 1 chrysn chrysn   0 Jul 12 21:31  test-no-funny-characters

On my machine:

$ sudo mount.davfs http://shared.amsuess.com/test/ /mnt/tmp -oro
$ ls -la /mnt/tmp
total 1
drwxr-xr-x 3 root root 160 Jul 12 21:31 .
drwx------ 2 root root   0 Jul 12 21:31 lost+found
-rw-r--r-- 1 root root   0 Jul 12 21:31 test-hash-sign-#
-rw-r--r-- 1 root root   0 Jul 12 21:31 test-no-funny-characters

A log with "most" mode is attached.

[field #16]               Item Group: None

[field #17]                   Status: Invalid

[field #18]        Component Version: None

[field #19]         Operating System: None

[field #20]          Reproducibility: None

[field #21]               Size (loc): None

[field #22]            Fixed Release: None

[field #23]          Planned Release: None

[field #24]                   Effort: 0.00

[field #28]                 Priority: 5 - Normal

[field #31]         Percent Complete: 0%

[field #33]                  Release: None

[field #58]     Custom Select Box #1: None

[field #59]     Custom Select Box #2: None

[field #60]     Custom Select Box #3: None

[field #61]     Custom Select Box #4: None

[field #62]     Custom Select Box #5: None

[field #63]     Custom Select Box #6: None

[field #64]     Custom Select Box #7: None

[field #65]     Custom Select Box #8: None

[field #66]     Custom Select Box #9: None

[field #67]    Custom Select Box #10: None


- <_71007>
Wed 07 Aug 2019 06:34:23 PM UTC, comment #4: 

[ is allowed in XML but is not allowed in the href-element. RFC 4918, 8.3.  URL Handling, says that URLs must follow the rules defined in RFC 3986. According to RFC 3986, 3.3.  Path,  [ is a gen-delimiter and not allowed in the path segment. It must be percent encoded.

So this is a server bug and must be fixed there.

Werner

- <_71007>
Tue 30 Jul 2019 07:37:44 PM UTC, comment #3: 

A version with most httpbody is attached now. The D:href looks fine to me, given that `[` is a legal character in XML, but I'm by no means an expert in WebDAV.

(file #47279)

chrysn <chrysn>
Sun 28 Jul 2019 01:20:26 PM UTC, comment #2: 

Problems like this are in most cases caused by malformed content in the response to a PROPFIND-request. Some clients will ignore the error, some clients - like the Neon-library used by davfs2 - will ignore the malformed record.

To see wheather this also happöens in this case please add option "debug httpbody" (in addition to "debug most") and create the logfile again. It will be much bigger this time.

Werner

- <_71007>
Fri 12 Jul 2019 07:49:18 PM UTC, comment #1: 

What I forgot to mention (it follows from the debug log, but still): The davfs2 version I'm using is 1.5.5-1 as packaged in Debian. The fuse version in uses is 2.9.9-1, and kernel version 5.0.

chrysn <chrysn>
Wed 07 Aug 2019 06:34:50 PM UTC, original submission:  

Files with a "[" are not displayed in a davfs2 mount. I've verified that the WebDAV server (nginx/1.14.2) are exposed over DAV by accessing it directly using gvfs / Thunar.

The tests also contain a file with a hash sign to check for #53819.

On the server:

$ ls
total 0
drwxr-xr-x 1 chrysn chrysn 118 Jul 12 21:31  .
drwxr-xr-x 1 chrysn chrysn 300 Jul 12 21:31  ..
-rw-r--r-- 1 chrysn chrysn   0 Jul 12 21:31 'test-bracket-open-['
-rw-r--r-- 1 chrysn chrysn   0 Jul 12 21:31  test-hash-sign-#
-rw-r--r-- 1 chrysn chrysn   0 Jul 12 21:31  test-no-funny-characters

On my machine:

$ sudo mount.davfs http://shared.amsuess.com/test/ /mnt/tmp -oro
$ ls -la /mnt/tmp
total 1
drwxr-xr-x 3 root root 160 Jul 12 21:31 .
drwx------ 2 root root   0 Jul 12 21:31 lost+found
-rw-r--r-- 1 root root   0 Jul 12 21:31 test-hash-sign-#
-rw-r--r-- 1 root root   0 Jul 12 21:31 test-no-funny-characters

A log with "most" mode is attached.

chrysn <chrysn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #47279:  most-httpbody.log.bz2 added by chrysn (3KiB - application/x-bzip - Same situation logged with debug most httpbody)
file #47203:  test.log.bz2 added by chrysn (3KiB - application/x-bzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by chrysn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2019-08-07 _71007 StatusNone Done
        Assigned toNone _71007
    2019-08-07 _71007 Reassign itemdavfs2, bug #56622 davfs2, sr #109870

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code