Skip to content

getetag property value in WebDAV response lacks quotes #256

Closed

Description

@filipnavara

The getetag WebDAV incorrectly contains unquoted property value (<d:getetag>e90b16c7e76844f18c9eba44af5cca1d</d:getetag>) when it should contain the exact same value as reported in the ETag header (ie. <d:getetag>"e90b16c7e76844f18c9eba44af5cca1d"</d:getetag>). This causes eM Client to treat the items as always modified since it compared the value returned by GET request to the one returned by the PROPFIND request.

http://www.webdav.org/specs/rfc4918.html#PROPERTY_getetag

Activity

  1. karlitschek commented on Nov 5, 2012

    @karlitschek
    Contributor

    Good catch. Just out of curiosity: What is you plan regarding eM Client and ownCloud?

  2. filipnavara commented on Nov 5, 2012

    @filipnavara
    Author

    We do not have any plans at the moment. I'm one of eM Client developers and we have several users who are interested in using it as a client against their ownCloud server(s).

  3. dragotin commented on Nov 5, 2012

    @dragotin
    Contributor

    Please let me know when this is fixed, might affect the desktop client.

  4. evert commented on Dec 11, 2012

    @evert

    Hi!

    I just heard about issues with this as well, regarding the Bynari connector for Outlook.
    Would be good to fix this, I can imagine this can cause issues for other clients as well.

    This can affect Web-, Cal- and CardDAV clients.

    cc: @tanghus

  5. tanghus commented on Dec 11, 2012

    @tanghus
    Contributor

    I'm not sure what to change. It seems like it's fixed for WebDAV in cdd9ffc
    Should I also change e.g. https://github.com/owncloud/apps/blob/master/contacts/lib/sabre/backend.php#L156 to

    'etag' => '"'.md5($i['carddata']) . '"',
    
  6. evert commented on Dec 11, 2012

    @evert

    Yes, this is exactly where the problem is. Guess I could have made that more clear in the docblocks.

  7. evert commented on Dec 11, 2012

    @evert

    Basically any etag must be surrounded by double-quotes.

  8. tanghus commented on Dec 11, 2012

    @tanghus
    Contributor

    Okie, will fix it in Cal- and CardDAV. Thx

  9. evert commented on Dec 11, 2012

    @evert

    Cool!

  10. tanghus commented on Dec 11, 2012

    @tanghus
    Contributor

    Turned out CardDAV was the only place missing. @filipnavara the commit I referred to above is 5 months old. Do you still have this problem?

  11. filipnavara commented on Dec 11, 2012

    @filipnavara
    Author

    Actually I had the problem with CardDAV, so the latest commit fixes it.

  12. tanghus commented on Dec 12, 2012

    @tanghus
    Contributor

    Great. Sorry it took so long. I originally thought it was a WebDAV only issue. CardDAV issues should go to the apps repo and label app:contacts

  13. locked as resolved and limited conversation to collaborators on Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions