caldav doesn't follow HTTP 302 (redirect) when saving

Issue #24 on hold
Anonymous created an issue

When I'm saving an event and get redirect from server, script ends with error.PutError exception instead of following new URL.

I created a quick patch for it - see attachment.

Comments (4)

  1. Cyril Robert repo owner

    Thanks, but I'm curious, a PUT request is issued to updated a resource, so if the server replies with a 302 it means that you're updating something else, doesn't it? Could you tell me more about the context where you got that 302?

  2. Jurij Sikorsky

    Hi Cyril,

    yes, it sounds reasonable and I really don't know if 302 response to PUT is RFC compliant. Maybe it's some implementation issue on my server (which is Zimbra Collaboration Suite). But I believe that the server does know what it's doing when it's redirecting me. And finally, it works for me :-).

    Here are access.log lines with redirect and successful PUT: - bericht [07/Nov/2012:15:03:03 +0100] "PUT /dav/bericht/SA-HPC_SLA_podpora-2010_090/d8894f4a-28e3-11e2-825d-00505693003e.ics HTTP/1.1" 302 0 "-" "Mozilla/5.0" - bericht [07/Nov/2012:15:03:03 +0100] "PUT HTTP/1.1" 201 0 "-" "Mozilla/5.0"

  3. Log in to comment