IIS 6.0 returns path information that is incorrect when you use the WebDAV PROPFIND method

Article translations Article translations
Article ID: 954847 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

You use the WebDAV PROPFIND method to retrieve the properties for a resource that is hosted on Internet Information Services (IIS) 6.0. When you do this, IIS 6.0 returns path information that is incorrect. For example, IIS 6.0 returns path information that may contain an additional forward slash mark (/).

CAUSE

This problem may occur if the following conditions are true:
  • The virtual directory uses the root of a drive as the Web site content directory.
  • The Depth header in the request is set to "Infinity."

WORKAROUND

To work around this problem, create a new folder in the root of the drive. Then, configure the virtual directory to use the new folder as the Web site content directory.

MORE INFORMATION

Steps to reproduce the problem

  1. In IIS Manager, create a new virtual directory that is named the Test virtual directory.
  2. Configure the Test virtual directory to use the following content directory:
    harddisk:\
  3. In the Test virtual directory, create a new folder that is named the Dav folder.
  4. Send the following request to IIS 6.0 by using the WFetch tool (WFetch.exe).
    PROPFIND /test/dav HTTP/1.1\r\n
    Content-type: text/xml; charset="utf-8"\r\n
    Depth: infinity\r\n
    Host: localhost\r\n
    Accept: */*\r\n
    Content-Length:90\r\n
    \r\n
    <?xml version="1.0" encoding="utf-8" ?>\r\n
    <propfind xmlns="DAV:">\r\n
    <propname/>\r\n
    </propfind>
    
  5. Notice that IIS 6.0 returns the following path information for the Dav folder:
    http://localhost/test//dav/
    Note If you use the WFetch tool to send a GET request for the path information that IIS 6.0 returns, IIS 6.0 returns a "301 Moved Permanently" response. In this case, IIS 6.0 also returns the correct path.

Properties

Article ID: 954847 - Last Review: June 27, 2008 - Revision: 1.0
APPLIES TO
  • Microsoft Internet Information Services 6.0
Keywords: 
kbtshoot kbprb KB954847

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com