PRB: WHERE Clauses with DAV:href Require Relative Paths (295408)
The information in this article applies to:
- Microsoft Exchange 2000 Server
This article was previously published under Q295408 SYMPTOMS
When you use a WHERE clause in a Web Distributed Authoring and Versioning (WebDAV) SEARCH query to restrict the result set based on the DAV:href property, you receive no matching results even though the document that you are searching for does exist.
For example, if you have a public folder tree named Test/Folder/Subfolder that contains a Microsoft Word document named Test.doc, the following WebDAV SEARCH request returns nothing, even though Test.doc exists:
Select "DAV:displayname", "DAV:href" <BR/>
FROM Scope('SHALLOW TRAVERSAL OF ""')<BR/>
WHERE "DAV:href" = 'http://servername/exchange/test/folder/subfolder/test.doc'
CAUSEThis behavior is by design.RESOLUTION
To resolve this problem, execute a search with a restriction that contains WHERE "DAV:href" = 'value' only if the value is a relative URL.
For example, in the public folder tree scenario, the following SEARCH Request returns the record that is related to Test.doc:
Select "DAV:displayname", "DAV:href" <BR/>
FROM Scope('SHALLOW TRAVERSAL OF ""') <BR/>
WHERE "DAV:href" = '/test/folder/subfolder/test.doc'
Modification Type: | Minor | Last Reviewed: | 3/4/2004 |
---|
Keywords: | kbMsg kbprb KB295408 |
---|
|