WebDAV COPY and latest version of document RRS feed

  • Question

  • We are using the ows_owshiddenversion attribute in the data returned by the GetListItems web method to identify the latest version of a SharePoint document.

    This has worked fine up till now, however, when we make a copy of the file with a new name using the WebDAV COPY request (this is used for a "Save As..." type of functionality) the ows_owshiddenversion attribute returns 0.

    If I create new versions of the document the ows_owshiddenversion is incremented, but it always stays one version behind the latest version. For example, if their are two versions of the document ows_owshiddenversion will be 1, if there are three it will be 2, etc.

    In other words, it no longer reflects the latest version of the document.

    Does anyone know if this is a SharePoint/WebDAV bug or if there is a way to fix/get around this problem?

    Any help will be greatly appreciated.
    Wednesday, March 12, 2008 3:20 PM