« Previous Next »

Thread: WebDav / Read-Only

Last post 09-16-2009 6:34 PM by lextm. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 09-14-2009, 10:36 PM

    WebDav / Read-Only

     Hello all,

    I'm having issues with certain users not being able to open files (Excel spreadsheets) for edit via WebDav.  For them, the files open with a [Read-Only] flag.  For others the files open normally.  A snippet of the IIS log follows.  Names were changed to protect the innocent.  "User1" gets the file as read-only.  "User2" is good.  Both users are running the same client setup, XP, IE 6.0, Office 2003 SP3, yet their requests come across very different.  Why would this be?  Also, where can I find a reference to what the substatus codes mean (eg 207 0 64).

     Log:

      3.114.76.25 PROPFIND /WorkDir/user1/Development/ - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    3.114.76.25 PROPFIND /WorkDir - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 0
    3.114.76.25 GET /WorkDir/user1/Development/x.xls.xml - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 200 0 0
    3.114.76.25 PROPFIND /WORKDIR - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64
    3.114.76.25 PROPFIND /WORKDIR - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64
    3.114.76.25 PROPFIND /WORKDIR - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64
    3.114.76.25 PROPFIND /WorkDir - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64
    3.114.76.25 OPTIONS /WorkDir/user1/Development/ - 80 - 3.114.193.50 Microsoft+Office+Protocol+Discovery 200 0 0
    3.114.76.25 GET /WorkDir/user1/Development/x.xls.xml - 80 - 3.114.193.50 Mozilla/4.0+() 200 0 0
    3.114.76.25 PROPFIND /WORKDIR - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64
    3.114.76.25 PROPFIND /WORKDIR - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64
    3.114.76.25 PROPFIND /WORKDIR - 80 - 3.114.193.50 Microsoft-WebDAV-MiniRedir/5.1.2600 207 0 64


    3.114.76.25 PROPFIND /WorkDir/user2/Development/x.xls.xml - 80 - 3.114.193.37 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 207 0 0
    3.114.76.25 GET /WorkDir/user2/Development/x.xls.xml - 80 - 3.114.193.37 Mozilla/4.0+() 200 0 0
    3.114.76.25 LOCK /WorkDir/user2/Development/x.xls.xml - 80 - 3.114.193.37 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 200 0 0
    3.114.76.25 GET /WorkDir/user2/Development/x.xls.xml - 80 - 3.114.193.37 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 200 0 0
    3.114.76.25 PROPFIND /WorkDir/user2/Development/x.xls.xml - 80 - 3.114.193.37 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 207 0 0
    3.114.76.25 UNLOCK /WorkDir/user2/Development/x.xls.xml - 80 - 3.114.193.37 Microsoft+Data+Access+Internet+Publishing+Provider+DAV 204 0 0

  • 09-15-2009, 1:52 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,413

    Re: WebDav / Read-Only

    In fact that comes from WEBDAV protocol itself, http://www.ietf.org/rfc/rfc2518.txt You can check section 10.2.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 09-15-2009, 10:42 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,235
    • IIS MVPs

    Re: WebDav / Read-Only

    First off, the http sub-status is the number following the status.  You don't show your log header but it's typically the number after the 200's and 207's in your example.
    http://support.microsoft.com/kb/318380

    Second, I don't see any evidence of athentication in these snippets.  If the user authenticated (and you want that with WebDAV) then the username should be in the log file.  I only see hyphens, which are used when the resource was sent with anonymous access.  Make sure your NTFS permissions are set on the content files and folders so only the expected users have Read/Write permissions.  The anonymous user (iusr_yourservername by default) should only have Read permission to the files and folders.

  • 09-15-2009, 5:49 PM In reply to

    Re: WebDav / Read-Only

    Thanks for the replies.  I'm still not able to determine what those substatus codes mean tho.  The links given describe what "207" is, but not what 207 0 64 means.  Note that user 1 gets 207 0 64 where user 2 gets 207 0 0.  I'm sure that 64 is indicating something meaningful, but I cant find any references.

    We've eliminated NTFS as a possible culprit, we've tried everything on that front including setting the NTFS permissions to "Everyone"/"Full Access".

    I'm guessing that the problem has to do with the difference between "Microsoft-WebDAV-MiniRedir" and "Microsoft+Data+Access+Internet+Publishing+Provider+DAV".  Does something on the client side determine which of these to use?

  • 09-16-2009, 10:38 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,235
    • IIS MVPs

    Re: WebDav / Read-Only

    http://technet.microsoft.com/en-us/library/cc786596(WS.10).aspx

    Apparently the 207 is a normal http status used for a WebDAV response.  The http sub-status is zero in your example.  Looks like there are no specific sub-status codes for 207 so there's no meaning there.

    Since you didn't post the header lines from your log file, I can only guess that the 64 is for the Win 32 Status.

    "Net helpmsg 64" says that "The specified network name is no longer available."  Not sure how that applies in this case.

     

  • 09-16-2009, 4:25 PM In reply to

    Re: WebDav / Read-Only

     Hi Tom,

    Thanks again for the reply.  Here is that header:

    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2009-09-14 05:09:51
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 

    Sorry for not posting that in the first place, I see now that it ids what each code is. As you suspected, the 64 is the win32 status. 

    I read somewhere else that IIS will log a 64 if the client resets the connection instead of sending an ACK. This leads me back to questioning the behavior of the client and the difference between the "Microsoft-WebDAV-MiniRedir" and "Microsoft+Data+Access+Internet+Publishing+Provider+DAV".  I'm still trying to determine how the client determines which of these to use.

     

     

  • 09-16-2009, 6:34 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,413

    Re: WebDav / Read-Only

    For 207, you need to capture the actual response packet and analyze its XML content. I think the WEBDAV protocol itself already makes that crystal clear. Well, you may use Network Monitor to capture traffic. Regards,
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (7 items)
Microsoft Communities