Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getetag property value in WebDAV response lacks quotes #256

Closed
filipnavara opened this issue Nov 5, 2012 · 12 comments
Closed

getetag property value in WebDAV response lacks quotes #256

filipnavara opened this issue Nov 5, 2012 · 12 comments

Comments

@filipnavara
Copy link

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

@karlitschek
Copy link
Contributor

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

@filipnavara
Copy link
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).

@dragotin
Copy link
Contributor

dragotin commented Nov 5, 2012

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

@evert
Copy link

evert commented Dec 11, 2012

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

@tanghus
Copy link
Contributor

tanghus commented Dec 11, 2012

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']) . '"',

@evert
Copy link

evert commented Dec 11, 2012

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

@evert
Copy link

evert commented Dec 11, 2012

Basically any etag must be surrounded by double-quotes.

@tanghus
Copy link
Contributor

tanghus commented Dec 11, 2012

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

@evert
Copy link

evert commented Dec 11, 2012

Cool!

@tanghus
Copy link
Contributor

tanghus commented Dec 11, 2012

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?

@filipnavara
Copy link
Author

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

@tanghus
Copy link
Contributor

tanghus commented Dec 12, 2012

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants