Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 24229 invoked from network); 10 Nov 2003 17:51:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Nov 2003 17:51:12 -0000 Received: (qmail 49364 invoked by uid 500); 10 Nov 2003 17:50:58 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 49336 invoked by uid 500); 10 Nov 2003 17:50:58 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 49299 invoked from network); 10 Nov 2003 17:50:57 -0000 Received: from unknown (HELO MAIL.myadguys.com) (209.10.249.135) by daedalus.apache.org with SMTP; 10 Nov 2003 17:50:57 -0000 Received: by mail.myadguys.com with Internet Mail Service (5.5.2656.59) id ; Mon, 10 Nov 2003 12:51:00 -0500 Message-ID: From: Tim Olson To: "'dev@cocoon.apache.org'" Subject: RE: DO NOT REPLY [Bug 24571] New: - Content-Length header missi ng Date: Mon, 10 Nov 2003 12:50:53 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N could i beg anyone to pick this up? we're dead-in-the-water with our current development because our java applet can't read the cocoon-generated XML due to a missing content-length header. it took a couple weeks to debug it to this point, and i'll be looking at the cocoon source to see what i can find but i don't really know my way around it. both the xml & http serializers exhibit this problem so either they're both buggy or it's part of a post-serialize step? > -----Original Message----- > From: bugzilla@apache.org [mailto:bugzilla@apache.org] > Sent: Monday, November 10, 2003 12:43 PM > To: dev@cocoon.apache.org > Subject: DO NOT REPLY [Bug 24571] New: - Content-Length header missing > > > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT > . > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND > INSERTED IN THE BUG DATABASE. > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24571 > > Content-Length header missing > > Summary: Content-Length header missing > Product: Cocoon 2 > Version: 2.1.2 > Platform: PC > OS/Version: Windows NT/2K > Status: NEW > Severity: Normal > Priority: Other > Component: sitemap components > AssignedTo: dev@cocoon.apache.org > ReportedBy: tim@myadguys.com > > > with the following sitemap: > > > > > > > > > > > > config1 returns: > > HTTP/1.1 200 OK > X-Cocoon-Version: 2.1.2 > Last-Modified: Mon, 10 Nov 2003 17:22:35 GMT > Content-Type: text/xml > Content-Length: 1038 > Date: Mon, 10 Nov 2003 17:29:25 GMT > Server: Apache Coyote/1.0 > Connection: close > > > while config2 returns no Content-Length, which is required by > the HTTP 1.1 spec: > > HTTP/1.1 200 OK > X-Cocoon-Version: 2.1.2 > Content-Type: text/xml > Date: Mon, 10 Nov 2003 17:25:55 GMT > Server: Apache Coyote/1.0 > Connection: close > > > if you use a caching pipeline, cached requests will return a > correct Content- > Length but touching the source file invalidates the cache and > shows the missing > Content-Length behavior again. > the reader gives the correct content-length even when caching > is disabled. > > this bug is more severe than it sounds, because java socket > code that reads > from the generated (no content-length) URL may terminate > before the entire > stream is read (if the content is large enough) >