Closed Bug 287519 Opened 20 years ago Closed 20 years ago

Dynamically hgenerated image cannot be displayed

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED INVALID

People

(Reporter: jcastro, Assigned: pavlov)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319

In the page http://66.231.174.17/phpqjr/poll.php?pid=40, there should be a 
poll. I use php to create a image verification number so that our polls get 
less hacked. In internet explorer it shows the poll with the image. In firefox 
all I get is 

The image “http://66.231.174.17/phpqjr/poll.php?pid=40” cannot be displayed, 
because it contains errors.

Reproducible: Always

Steps to Reproduce:
1.Just go to the url
2.
3.

Actual Results:  
The image “http://66.231.174.17/phpqjr/poll.php?pid=40” cannot be displayed, 
because it contains errors.

Expected Results:  
A poll with an image(that was created dynamically)
Assignee: bugs → pavlov
Component: File Handling → ImageLib
Product: Firefox → Core
QA Contact: aebrahim-bmo
Version: unspecified → Trunk
use http://web-sniffer.net and enter your URl and you can see your problem :

http://66.231.174.17/phpqjr/poll.php?pid=40 ->

HTTP Status Code: HTTP/1.1 200 OK
Cache-Control:	no-store, no-cache, must-revalidate, post-check=0, pre-check=0	CRLF
Pragma:	no-cache	CRLF
Content-Type:	image/png	CRLF
Expires:	Thu, 19 Nov 1981 08:52:00 GMT	CRLF
Server:	Microsoft-IIS/6.0	CRLF
X-Powered-By:	PHP/4.3.10	CRLF
Set-Cookie:	phpQJr_cookie_test=1; path=/	CRLF
Set-Cookie:	PHPSESSID=f618fbab05ee06ee4bff5a4a75a822b4; path=/	CRLF
Date:	Thu, 24 Mar 2005 11:17:37 GMT	CRLF
Connection:	close	CRLF

But this URL is not an image, it's the html page but it`s delivered as image
(see the content type: image/png)

-> invalid
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I am sorry , but I do not undesrtand why can I see the page perfectly(at least 
as I intented to) in Internet Explorer and not in Firefox. I you look as the 
html code generated , is all valid.  I guess I do not understand the full html 
protocol to see the error at that level.  All i know is the end result.  The 
page displays in Explorer and not in Firefox.  If this is something you cant 
fix(because is not broken) then close the bug. Otherwise why explorer handle 
the page??


(In reply to comment #1)
> use http://web-sniffer.net and enter your URl and you can see your problem :
> http://66.231.174.17/phpqjr/poll.php?pid=40 ->
> HTTP Status Code: HTTP/1.1 200 OK
> Cache-Control:	no-store, no-cache, must-revalidate, post-check=0, pre-
check=0	CRLF
> Pragma:	no-cache	CRLF
> Content-Type:	image/png	CRLF
> Expires:	Thu, 19 Nov 1981 08:52:00 GMT	CRLF
> Server:	Microsoft-IIS/6.0	CRLF
> X-Powered-By:	PHP/4.3.10	CRLF
> Set-Cookie:	phpQJr_cookie_test=1; path=/	CRLF
> Set-Cookie:	PHPSESSID=f618fbab05ee06ee4bff5a4a75a822b4; path=/	CRLF
> Date:	Thu, 24 Mar 2005 11:17:37 GMT	CRLF
> Connection:	close	CRLF
> But this URL is not an image, it's the html page but it`s delivered as image
> (see the content type: image/png)
> -> invalid

(In reply to comment #1)
> use http://web-sniffer.net and enter your URl and you can see your problem :
> http://66.231.174.17/phpqjr/poll.php?pid=40 ->
> HTTP Status Code: HTTP/1.1 200 OK
> Cache-Control:	no-store, no-cache, must-revalidate, post-check=0, pre-
check=0	CRLF
> Pragma:	no-cache	CRLF
> Content-Type:	image/png	CRLF
> Expires:	Thu, 19 Nov 1981 08:52:00 GMT	CRLF
> Server:	Microsoft-IIS/6.0	CRLF
> X-Powered-By:	PHP/4.3.10	CRLF
> Set-Cookie:	phpQJr_cookie_test=1; path=/	CRLF
> Set-Cookie:	PHPSESSID=f618fbab05ee06ee4bff5a4a75a822b4; path=/	CRLF
> Date:	Thu, 24 Mar 2005 11:17:37 GMT	CRLF
> Connection:	close	CRLF
> But this URL is not an image, it's the html page but it`s delivered as image
> (see the content type: image/png)
> -> invalid

Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
jcastro, you are sending the html but your servr is telling Firefox that it is a
png image.  So when FF trys to display the page as an image, it can't.  I guess
Internet Explorer is ignoring what it is being told, and is guessing that the
data is a webpage.  But if you tell Firefox that you are sening an image, it
will look at the data as such.

Sorry, but this is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
Firefox handles this correctly (and that's the reason why this is invalid).
It's a bug in IE that you get the working result but we don't accept bug reports
for IE.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.