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: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Open/Closed: OpenOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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:

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

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

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by wbaumann (Posted a comment)
  • -unavailable- added by neurobion (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Dec 2016 08:50:18 AM UTCneurobionAttached File-=>Added neon-0.30.2_4918.patch, #39324
    Tue 27 Dec 2016 07:19:50 PM UTCwbaumannStatusIn Progress=>Done
    Tue 27 Dec 2016 01:03:47 PM UTCneurobionCarbon-CopyRemoved neurobion=>-
    Tue 27 Dec 2016 01:03:21 PM UTCneurobionCarbon-Copy-=>Added neurobion
    Tue 27 Dec 2016 12:50:49 PM UTCneurobionAttached File-=>Added all_messages_v2, #39318
    Tue 27 Dec 2016 12:46:53 PM UTCneurobionAttached File-=>Added all_messages, #39317
    Wed 14 Dec 2016 10:04:10 AM UTCwbaumannSeverity5 - Blocker=>3 - Normal
      StatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top


    Powered by Savane 3.1-cleanup1