[Catalyst] Extra characters inserted into PDF output
msupra at fnb.co.za
Wed Dec 3 07:13:00 GMT 2008
I only saw this post now, so maybe what I am about to say has already
The <!--> sequence of characters are used in commenting out code in xml
<tag 1>data</tag 1>
<!--tag 2>data gain</tag 2-->
So, maybe there is something commented out in the input?
From: Hu Hailin [mailto:i at h2l.name]
Sent: 03 December 2008 09:01 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Extra characters inserted into PDF output
maybe the problem is caused by
1. some plugin involved, like some kind of content rewriting.
2. process in the end method, maybe you missed checking it.
On Wed, Dec 3, 2008 at 12:41 PM, Dr. Jennifer Nussbaum
<bg271828 at yahoo.com> wrote:
> --- On Tue, 12/2/08, Steve Sabljak <steve at sabljak.org> wrote:
>> From: Steve Sabljak <steve at sabljak.org>
>> Subject: Re: [Catalyst] Extra characters inserted into PDF output
>> To: "The elegant MVC web framework" <catalyst at lists.scsys.co.uk>
>> Date: Tuesday, December 2, 2008, 6:30 PM
>> On Wed, Dec 3, 2008 at 5:25 AM, Dr. Jennifer Nussbaum
>> <bg271828 at yahoo.com> wrote:
>> > --- On Tue, 12/2/08, Robin Berjon
>> <robin at berjon.com> wrote:
>> >> From: Robin Berjon <robin at berjon.com>
>> >> Subject: Re: [Catalyst] Extra characters inserted
>> into PDF output
>> >> To: bg271828 at yahoo.com, "The elegant MVC web
>> framework" <catalyst at lists.scsys.co.uk>
>> >> Date: Tuesday, December 2, 2008, 8:57 AM
>> >> On Dec 2, 2008, at 17:02 , Dr. Jennifer Nussbaum
>> >> > My PDF files are being uploaded and saved in
>> >> database apparently correctly. Then what seems to
>> >> happening is that somewhere in the binary stream
>> of PDF,
>> >> there is a (random) sequence of "<!",
>> >> somewhere later there is a ">". And
>> >> 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
>> >> is running when it's producing that. Are you
>> >> 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
>> > 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)
>> 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)
> I dont know if this was a rhetorical question designed to show how
stupid i am, or a real question, but the answer is "yes". Or, rather, if
I change my output routine to
> Then what i get in my browser is:
> Where does this leave me? WHY is this happening?
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> Dev site: http://dev.catalyst.perl.org/
List: Catalyst at lists.scsys.co.uk
Dev site: http://dev.catalyst.perl.org/
To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser:
If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer at fnb.co.za and we will send you a copy of the Disclaimer.
More information about the Catalyst