hi evert, 10x a lot. you were right. i'm using Zend I was logging the $server->httpRequest just before $server-exec(). When I commented out that debug log, I got the request body in sabre's backend. It didn't really cross my mind that zend's log could be the cause.
10x again Best On 17 November 2014 23:45, Evert Pot <[email protected]> wrote: > Hi Milos, > > > > On Monday, November 17, 2014 5:08:09 AM UTC-5, Milos Nikolic wrote: >> >> Hi chaps/esses .. :) >> >> I've integrated sabredav into my application, and browser module is >> working just fine. i can authenticate, list, get, download ics files using >> my custom backends. >> now, when I try to add a caldav account in thunderbird, it sais that >> caldav is not currently available. After looking the wireshark dump log, >> I noticed that my caldav server is returning '400 Bad request' with the >> message 'Empty XML document sent'. >> here is the req/res: >> > > The most logical reason for this to happen, is if you read the contents of > 'php://input', before sabredav has a chance to. > Because this is a stream, we can generally only read this once. If you > read the request body, from sabredav's perspective it will seem as if it > received an empty request body. > > So are you doing something with the request body? Or are you integrating > sabredav with some kind of framework that might do that? > > Evert > > -- > You received this message because you are subscribed to a topic in the > Google Groups "SabreDAV Discussion" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sabredav-discuss/oGmVpf02ZqI/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sabredav-discuss/c4345d50-3828-4e35-9002-07aba20933f6%40googlegroups.com > <https://groups.google.com/d/msgid/sabredav-discuss/c4345d50-3828-4e35-9002-07aba20933f6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "SabreDAV Discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/CADi4PC0q8jx9Q1W24svB6qtgPsZL-v9nLpsPSKC0QhY3BxjLug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
