Thanks, Ingo!

I added the missing "if (req.getContentLength() > 0)" ... hope this helps.

Regards,
Peter

> -----Original Message-----
> From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 16:15
> To: [EMAIL PROTECTED]
> Subject: UNCHECKOUT method returns 400 Bad Request
> 
> 
> When I try to issue an UNCHECKOUT request to a checked-out
> version-controlled resource, the Slide servlet responds with:
> 
> 400 Bad Request: Error on line 1: Premature end of file.
> 
> I think the problem occurs with UNCHECKOUT requests with an empty
> request body, which unfortunately is the normal case. Although I was
> too lazy to really test it, I think that's what's happening:
> 
> org.apache.slide.webdav.method.UncheckoutMethod calls
> parseRequestContent() which throws a JDOMException. The reason is that
> readRequestContent() sets requestBody to an empty string.
> 
> This could be fixed by including a "if (req.getContentLength() > 0)"
> check as in CheckinMethod or VersionControlMethod.
> 
> Regards,
> Ingo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to