helpdavfs2 - Support: sr #109200, Folders are empty when mounted...


sr #109200: Folders are empty when mounted Sharepoint folder

Submitted by:  Jiri Wetter <neurobion>
Submitted on:  Tue 13 Dec 2016 12:02:54 PM UTC
Votes:  1  
Category:  Priority: 5 - Normal
Severity:  Status: 
Privacy:  Assigned to: wbaumann
Open/Closed: Closed Operating System: 
Summary:  *
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
           (Or define a new Canned Response)


Wed 28 Dec 2016 08:52:31 AM UTC, comment #5: 

+ neon-0.30.2_4918.patch attached

Have a nice day!

Jiri Wetter <neurobion>
Wed 28 Dec 2016 08:47:17 AM UTC, comment #4: 

Thank you Werner. Patch you provide works also for latest available version (neon-0.30.2). There is very small difference in define statement:

diff neon-0.30.2/src/ne_uri.c neon-0.30.2_patched/src/ne_uri.c
< /*   2x */ OT, SD, OT, GD, SD, PC, SD, SD, SD, SD, SD, PS, SD, DS, DT, FS,
> /*   2x */ AL, SD, OT, GD, SD, PC, SD, SD, SD, SD, SD, PS, SD, DS, DT, FS,
< #define path_escape_ch(ch) (!!(uri_lookup(ch) & URI_ESCAPE))
> #define path_escape_ch(ch) ((ch == ' ') | (!!(uri_lookup(ch) & URI_ESCAPE)))

Jiri Wetter <neurobion>
Tue 27 Dec 2016 07:19:50 PM UTC, comment #3: 

It is the well known SharePoint Bug. Looking at file #39317:  all_messages, line 205, in response to a PROPFIND request you find this href-element:

<D:href> Documents/Business Content/eCommerce/Marketing Cost and Adserve</D:href>

This is invalid according to the WebDAV RFC. All the space characters must be percent encoded. The correct version would be:


The Neon library will drop invalid elements. That is the reason why the mount point is empty. All the href-elements are invalid.

There are several possible ways to handle this:

  • Not use SharePoint
  • Contact the server admin to fix that bug
  • Avoid any file and directory names with spaces
  • Use a patched version of Neon

Arpad Magosanyi created a simple patch for the Neon library to deal with this SharePoint bug. You find this patch at


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue 27 Dec 2016 12:46:53 PM UTC, comment #2: 

/var/log/daemon.log is empty after all these steps (RHEL 6.8).
rsyslog is configured to forward all daemon related messages to mentioned destination.

Verified by strace that correct config file is opened. As you advice davfs2.conf contains now 2 lines with debug options:

debug most
debug httpbody

Another apenders are able to write to daemon.log, e.g. logger -p daemon.debug (as described in man page - facility LOG_DAEMON and priority LOG_DEBUG) test result new log entry.

After . to one single log file I got what you need.

(file #39317)

Jiri Wetter <neurobion>
Wed 14 Dec 2016 10:04:10 AM UTC, comment #1: 

Please do this:

  • add options "debug most" and "debug httpbody" to your davfs2.conf file
  • mount the file system
  • do ls for your mount point
  • unmount the file system

Please send the following information:

  • any messages you get during mounting
  • ls command and the answer you get
  • all log messages from mount.davfs (there will be a lot of them)

Please note: into which file your system puts these debug messages depends on your system and how it is configured.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue 13 Dec 2016 12:02:54 PM UTC, original submission:  


as summary says, mount point is empty even mount process result with success.

This is not answer for me I also tried to put test file without any problematic char with same result.

I compile neon library with openssl to prevent myself against NTLM challenge described

Version stats:
davfs2 1.5.4

Any idea or advise?

Thank you

Jiri Wetter <neurobion>


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

Attach Files:

Attached Files
file #39324:  neon-0.30.2_4918.patch added by neurobion (319B - text/x-patch)
file #39318:  all_messages_v2 added by neurobion (39KiB - application/octet-stream)
file #39317:  all_messages added by neurobion (28KiB - application/octet-stream)


Search an item (to fill a dependency against):
Of     of  

Depends on the following items: None found

Items that depend on this one: None found


(Note: for Savannah users, you can use their login name rather than their email addresses.)



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

    There is 1 vote 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.

        / 100 remaining votes





    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 wbaumann Open/ClosedOpen => Closed
    2016-12-28 neurobion Attached File- => Added neon-0.30.2_4918.patch, #39324
    2016-12-27 wbaumann StatusIn Progress => Done
    2016-12-27 neurobion Carbon-CopyRemoved neurobion => -
    2016-12-27 neurobion Carbon-Copy- => Added neurobion
    2016-12-27 neurobion Attached File- => Added all_messages_v2, #39318
    2016-12-27 neurobion Attached File- => Added all_messages, #39317
    2016-12-14 wbaumann Severity5 - Blocker => 3 - Normal
        StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.5