Closed Bug 284503 Opened 19 years ago Closed 19 years ago

HTML tag img src="" causes request to submit multiple times to the server.

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 225554

People

(Reporter: rtanya, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I just found out in our J2EE web application, if the resulting html page has 
some <img src="" width="2"/> tags is causing multiple submit to the app server. 

While debugging our app code for firefox bugs, I found out every request is
coming twice to the server (in access logs and code), after spending couple of
days I found out that culprit is the src="" in img tag. In access log it logs as
 a GET request.

For now we have fixed all the htmls to not to have buggy code, but we cannot
ensure valid src in alot of scenrios. 

In order to reproduce this problem try this jsp, for single user submission 
This message will come twice of single submit! will come twice. 

<% System.out.println("This message will come twice of single submit!");%>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Test</title>
	</head>
	<body>
		<table cellspacing="0" cellpadding="0" width="824" align="center">
			<tbody>
				<tr><td><div align="right"><img src=""/></div></td></tr>
				<tr><td><img height="4" src="images/btm_leftc.gif" width="1"/></td></tr>
			</tbody>
		</table>
	</body>
</html>

Reproducible: Always

Steps to Reproduce:
1. Try out this jsp 
<% System.out.println("This message will come twice of single submit!");%>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Test</title>
	</head>
	<body>
		<table cellspacing="0" cellpadding="0" width="824" align="center">
			<tbody>
				<tr><td><div align="right"><img src=""/></div></td></tr>
				<tr><td><img height="4" src="images/btm_leftc.gif" width="1"/></td></tr>
			</tbody>
		</table>
	</body>
</html>
2. For single user submission 'This message will come twice of single submit!'
will come twice.
3.
Dupe, please reopen if you disagree

*** This bug has been marked as a duplicate of 225554 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.