Network Working Group J. Stracke, eCal Corp. INTERNET DRAFT Expires April, 2000 August 10, 1999 WebDAV PROPFIND Extension To List Specified Namespaces 1 Status of this Document This document is an Internet-Draft and is in full conformance with all provisions of Section 10 of RFC2026. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as ``work in progress.'' The list of current Internet-Drafts can be accessed at The list of Internet-Draft Shadow Directories can be accessed at Distribution of this document is unlimited. Please send comments to francis@ecal.com or to the w3c-dist-auth@w3.org discussion list. 2 Abstract This document specifies an extension to the [WEBDAV] PROPFIND method to permit a WebDAV client to request all properties which belong to a specified namespace or namespaces. 3 Introduction This document specifies an extension to the [WEBDAV] PROPFIND method to permit a WebDAV client to request all properties which belong to a specified namespace or namespaces. A WebDAV application using a custom namespace for application-specific data may occasionally need to use PROPFIND to list all a resource's properties from that namespace. (Similarly, a WebDAV client might need to know all DAV: properties, but not care about non-standard properties.) In such a case, the client must choose between the element, which will retrieve all properties on the resource, and the element, which will retrieve specified properties only. The problem with is that the resource may have many properties from other namespaces, in which the application is not interested. The problem with is that the client may not know all the property names which may be present (for example, if the client is too general-purpose to permit it to be configured with the list of property names, or if property name munging is being used). A third choice would be to use Stracke [Page 1] INTERNET-DRAFT WebDAV PROPFIND Namespace List August 10, 1999 to list all the resource's properties without their contents, then use with just the properties in the desired namespace; the problem with this approach is that it requires an extra HTTP request. This document proposes a middle ground, an extension to and which provides a list of namespaces to search. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [MUSTS] . 4 Extension definition Two new XML elements are proposed, and . In the idiom of [WEBDAV]: 4.1 namespaces XML Element Name: namespaces Namespace: DAV: Purpose: The namespaces XML element specifies that the enclosing allprop or propname element applies only to properties belonging to the namespaces listed in the enclosed namespace elements. 4.2 namespace XML Element Name: namespace Namespace: DAV: Purpose: The namespace XML element specifies a namespace in the namespaces list. appears inside , and has a single attribute, uri, the URI of the namespace. 5 Examples 5.1 Fetching all DAV: properties Request: PROPFIND /index.html HTTP/1.1 Host: www.example.com Content-Length: xxxx Content-Type: text/xml Stracke [Page 2] INTERNET-DRAFT WebDAV PROPFIND Namespace List August 10, 1999 Response: HTTP/1.1 200 OK Content-Type: text/xml Content-Length: xxxx 1999-08-11T12:12:12Z Example.com, The Fictious Site! 17 text/html xyzzy 1999-08-11T12:12:14Z 5.2 Listing names of properties in two namespaces Request: PROPFIND /index.html HTTP/1.1 Host: www.example.com Content-Length: xxxx Content-Type: text/xml Response: 6 Compatibility Considerations Section 14 of [WEBDAV] specifies: "All DAV compliant resources MUST ignore any unknown XML element and all its children encountered while processing a DAV method that uses XML as its command language." As a result, a client which uses on a server which does not support it will get the base-level DAV behavior (listing all properties), exactly as if it had issued a base-level DAV request. Therefore, a client which sends PROPFIND requests using MUST accept responses which include properties not in the listed namespace(s). Of course, it is always risky assuming that all implementations of a young standard adhere to all points of the standard. In this case, the risk is mitigated by the fact that section 23.3.2.2 of [WEBDAV] presents a (hypothetical) similar extension, , and states: "If the previous example were submitted to a server unfamiliar with leave-out, the only result would be that the leave-out element would be ignored and a propname would be executed." Nevertheless, since there may be some servers which, for whatever reason, violate this prescription (say, if they attempt to validate the XML request against the DTD in section 23.2 of [WEBDAV] ), a client which uses SHOULD be aware that it may receive a 400 Bad Request from such a server, and SHOULD be able to retry the request without using . 7 Internationalization Considerations This proposal builds on [WEBDAV], and inherits its internationalizability. 8 IANA Considerations This proposal does not introduce any new IANA considerations, since it does not specify any new namespaces (in the general sense), but merely uses existing ones. 9 Security Considerations For a server, this proposal does not introduce any new security considerations over those of [WEBDAV], since the information which is Stracke [Page 4] INTERNET-DRAFT WebDAV PROPFIND Namespace List August 10, 1999 exposed is already available. There might be privacy considerations for a client, since telling the server which namespaces one wishes to search does reveal some information. Implementors must balance this concern against the efficiency gains this proposal offers. 10 Copyright The following copyright notice is copied from RFC 2026 [Bradner, 1996], section 10.4, and describes the applicable copyright for this document. Copyright (C) The Internet Society April 5, 1998. All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assignees. This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 11 Intellectual Property The following notice is copied from RFC 2026 [Bradner, 1996], section 10.4, and describes the position of the IETF concerning intellectual property claims made against this document. The IETF takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use other technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on the IETF's procedures with respect to rights in standards-track and standards-related documentation can be found in BCP-11. Copies of claims of rights made available for publication and any assurances of Stracke [Page 5] INTERNET-DRAFT WebDAV PROPFIND Namespace List August 10, 1999 licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification can be obtained from the IETF Secretariat. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to practice this standard. Please address the information to the IETF Executive Director. 12 Acknowledgements Some of the PROPFIND syntax in the examples was copied from examples in [WEBDAV]. 13 References [WEBDAV] Y. Y. Goland, E. J. Whitehead, Jr., A. Faizi, S. R. Carter, D. Jensen, "Extensions for Distributed Authoring on the World Wide Web - WebDAV." RFC 2518. Microsoft, U.C. Irvine, Netscape, Novell. April, 1998. [MUSTS] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels," BCP 14, RFC 2119, Harvard University, March 1997. 14 Author's Address J. Stracke eCal Corp. 234 N. Columbus Blvd., 2nd Floor francis@ecal.com Stracke [Page 6]