You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2004/10/28 16:16:19 UTC

DO NOT REPLY [Bug 31937] New: - ContentLength is not properly set when header not present

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31937>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31937

ContentLength is not properly set when header not present

           Summary: ContentLength is not properly set when header not
                    present
           Product: Slide
           Version: Nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WebDAV Server
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: thomas.draier@codeva.net


When sending a PUT method, if the Content-Length header was not set - which can
be the case when chunked transfer mode is used - the content length value in the
descriptor is set to -1. note that only occurs when putting a new file, when
overwriting an old one the size is correctly calculated from the data, if the
header is set to -1. I have just patched the PutMethod class so it does the same
when a new file is created.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org