On Wed, Dec 3, 2008 at 5:25 AM, Dr. Jennifer Nussbaum
<[EMAIL PROTECTED]> wrote:
> --- On Tue, 12/2/08, Robin Berjon <[EMAIL PROTECTED]> wrote:
>
>> From: Robin Berjon <[EMAIL PROTECTED]>
>> Subject: Re: [Catalyst] Extra characters inserted into PDF output
>> To: [EMAIL PROTECTED], "The elegant MVC web framework"
>> <[email protected]>
>> Date: Tuesday, December 2, 2008, 8:57 AM
>> On Dec 2, 2008, at 17:02 , Dr. Jennifer Nussbaum wrote:
>> > My PDF files are being uploaded and saved in the
>> database apparently correctly. Then what seems to be
>> happening is that somewhere in the binary stream of PDF,
>> there is a (random) sequence of "<!", and
>> somewhere later there is a ">". And something
>> is inserting a "--" before the ">".
>> >
>> > My debugging statements show that Catalyst is
>> outputting the correct size of the file, which suggests that
>> the insertion is happening elsewhere.
>>
>> The one thing you're not saying is under what Catalyst
>> is running when it's producing that. Are you running
>> FastCGI? Mod_perl? Stand-alone development server?
>
> This happens both under the standalone server and under Apache/mod_perl.
>
>> If it happens in all of those then the bug is probably in
>> your code (though after your debugging statements).
>
> Ive shown all the code for the view, so you can see anything that happens
> after the debugging....
>
>> If the
>> insertion is indeed happening outside that pretty much just
>> leaves the Web server, or perhaps a proxy. Wild stab in the
>> dark: do you happen to have SSI turned on?
>
> Yes, but only on the actual server. My dev box running the standalone server
> isnt doing any SSI's.
>
> This is baffling.
>
> Jen
>
So, if you use (literally)
$c->res->output('XXXXX<!XXXXXX>XXXXX');
does it output 'XXXXX<!XXXXX-->XXXXX'?
(you might want to change the content-type to text/plain for this test
if testing with a browser)
cheers,
Steve
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/