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

 
 

sr #109200: Folders are empty when mounted Sharepoint folder

Submitter:  Jiri Wetter <neurobion>
Submitted:  Tue 13 Dec 2016 12:02:54 PM UTC
Votes: 1
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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
99c99
< /*   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,
478c478
< #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>http://thesource.dixons.co.uk/sites/IS/TechnicalDelivery/BusinessIntelligence/BI 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:

<D:href>http://thesource.dixons.co.uk/sites/IS/TechnicalDelivery/BusinessIntelligence/BI%%20Documents/Business%%20Content/eCommerce/Marketing%%20Cost%%20and%%20Adserve/</D:href>

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
http://savannah.nongnu.org/support/?107114

Werner

- <_71007>
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

- <_71007>
Tue 13 Dec 2016 12:02:54 PM UTC, original submission:  

Hello,

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

This is not answer for me https://savannah.nongnu.org/support/?func=detailitem&item_id=108566. 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 http://savannah.nongnu.org/support/?func=detailitem&item_id=108061#options.

Version stats:
davfs2 1.5.4
neon-0.30.2

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:
   
   
Comment:
   

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)

 

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 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.

    Only logged-in users can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2016-12-28 neurobion Attached File- Added neon-0.30.2_4918.patch, #39324
    2016-12-27 _71007 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 _71007 Severity5 - Blocker 3 - Normal
        StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code