Statistics 3 - text/html

Hi all,

I installed the statistics 3 package, but it won’t display images.
My browser displays a load of garbage, with an ominous looking “PNG” near
the start of the garbage - Aha, it’s a classic Content-Type problem,
I though, but I’ve spent all morning trying to get it to correctly
give back “image/png”, with no joy. I installed the package in
the way documented for Debian folks.

RT - 3.0.10-1
Statistics 3 0.1.3

Here’s the headers of an unsuccesful attempt at trying to display an image
(thanks to livehttpheaders):

http://ticketing.int.host.ie/Statistics/CallsQueueDay/Elements/Chart?x_labels=Sat,Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun,Mon&data1=0,0,0,0,0,0,0,0,0,0&data2=0,0,0,0,0,0,0,0,0,0&data3=0,0,0,0,0,0,0,0,0,0

GET /Statistics/CallsQueueDay/Elements/Chart?x_labels=Sat,Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun,Mon&data1=0,0,0,0,0,0,0,0,0,0&data2=0,0,0,0,0,0,0,0,0,0&data3=0,0,0,0,0,0,0,0,0,0 HTTP/1.1
Host: somerthost.somewhere.blah
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,/;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: RT_SID=3bc1a2b7877027d9a75c80f878b2806f
Cache-Control: max-age=0

HTTP/1.x 200 OK
Server: Apache/1.3.29 (Debian GNU/Linux) mod_perl/1.29
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

Incidentally, Jesse, could you ask google to refresh the site?
The returned hits on google point to messageIDs which have changed since
re-importing the mail logs after the security incident - Once you’re done
bringing everything back up and after you’re well again :slight_smile:

Thanks,
Brian.
“Verbing weirds language”

Hey,

Probably related:

Attachments are also being flagged as text/html!

GET /Ticket/Attachment/5214/3019/Support%20Procedure.doc HTTP/1.1
Host: ticketing.int.host.ie
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040207 Firefox/0.8
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,/;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: somewhere.com
Cookie: RT_SID=7cc3c5b69b9ba203ebeb332ad218a035

HTTP/1.x 200 OK
Server: Apache/1.3.29 (Debian GNU/Linux) mod_perl/1.29
Keep-Alive: timeout=15, max=98
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

This attachment is correctly in the database as “application/msword”.
Any ideas?

Brian.
“Verbing weirds language”

This attachment is correctly in the database as “application/msword”.
Any ideas?

I think all of these problems are related to this Debian bug.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=238494

I assume Andrew is around these parts…

Brian.
“Verbing weirds language”

To get statistics to work, after I upgraded to perl 5.8.3. I had to recompile GD again and then use cpan shell to dl and install GD and GD::Graph. Something like that. I am not at work and take look at my own notes. =)

-JonathanFrom: rt-users-bounces@lists.bestpractical.com on behalf of Brian Scanlan
Sent: Mon 4/19/2004 6:55 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Statistics 3 - text/html.

This attachment is correctly in the database as “application/msword”.
Any ideas?

I think all of these problems are related to this Debian bug.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=238494

I assume Andrew is around these parts…

Brian.
“Verbing weirds language”
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

This electronic mail message contains information belonging to PaymentOne, which may be confidential and/or legal privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronically mailed information is strictly prohibited. If you receive this message in error, please immediately notify us by electronic mail and delete this message.

Hi all,On Mon, Apr 19, 2004 at 02:55:09PM +0100, Brian Scanlan wrote:

I think all of these problems are related to this Debian bug.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=238494

It looks like I’ve found a workaround to this problem. I’ve seen a few
people post to the list without much success.

Problem description:

  • Search breaks, returning some HTTP headers and a…

OK

The document has moved here

…page appears, which is really annoying.

  • Attachments are sent with a wrong mime type - Everything gets given
    Content-Type: text/html

  • The images produced by Statistics 3 are also broken by this.

I had migrated from a 3.0.6 install to 3.0.8 (and subsequently to
3.0.10, the problem lingered). However, on the 3.0.6 install I was
simply modifying the system html/ directory, and not using the overlay
functionality of Mason. So, when I upgraded to 3.0.8, I thought it would
be ok to copy the 3.0.6 html/ directory to
/usr/local/share/request-tracker3/html - Removing this directory removed
the problem, and I had only made a few changes to the templates anyway,
so these were made against the 3.0.10 html/ tree and only modified files
were installed into the /usr/local/share/request-tracker3/html
directory.

I wonder is the problem Debian specific - Perhaps it’s just because
Debian makes it easy to upgrade RT thanks to the wonderful job done by
the packagers that this seems to have hit Debian users more so than
others.

Brian.
“Verbing weirds language”