Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Static-Simple CPAN distribution.

Report information
The Basics
Id: 45001
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Static-Simple

People
Owner: Nobody in particular
Requestors: onken [...] netcubed.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.21
Fixed in: (no value)



Subject: Empty file is served with content "0"
Create an empty file (e.g. blank.txt) and access it via the web browser. The content is "0"
On Mon Apr 13 10:05:44 2009, PERLER wrote: Show quoted text
> Create an empty file (e.g. blank.txt) and access it via the web browser. > > The content is "0"
I couldn't reproduce the behaviour of sending out "0", but it indeed didn't do what one would expect. It sent out an error page instead of the file. It was being caused by a bug in Catalyst-Runtime, which didn't call write() when a filehandle that already was at eof was passed as the response body. This is now fixed. Tests have been added to Static-Simple. It'll be shipped as soon as the next version of -Runtime has been released.