Closed
Bug 28019
Opened 25 years ago
Closed 24 years ago
Form POST method fails with charset <> iso-8859-1
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
People
(Reporter: spiros_ioannou, Assigned: ftang)
References
()
Details
Hello,
Form POST method fails when the charset is for example iso-8859-7.
By charset I mean the value of:
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-7">
in the <head> </head> section
The problem may reside in the renderer because the page is displayed
instantly in 8859-1 encoding and then it is instantly reloaded in the
correct encoding without the post variables posted.
You can find an example there:
http://venizelos.image.ece.ntua.gr/php/tests/formtest.php
Enter something in the box and press submit. The value entered will normally
exist in the box after the submit, but not with mozilla. In my case the box
reappears empty. The problem dissapears if I remove the <meta ...charset=...>
tag from the html.
The php used is elementary. Follow the link to see the source.
This bug also exists in the solaris version, and existed in previous milestones.
The millestone tested is M13
At your disposal for further information,
Spiros Ioannou
sivann@cs.ntua.gr
Comment 3•25 years ago
|
||
over to ftang.
Frank, It looks like we're not sending the charset back to the server
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/layout/html/forms/src&command=DIFF_FRAMESET&file=nsFormFrame.cpp&rev2=3.33&rev1=3.32
I suspect this is that fun bug where we're damned-if-we-do or
damned-if-we-don't.
Assignee: valeski → ftang
Assignee | ||
Comment 4•25 years ago
|
||
valeski- No, this is not realted to the sending charset back problem.
The rendering issue is about meta reload. It should be gone now.
>The value entered will normally exist in the box after the submit
This is related to the bug that we currently do not remember form value after
post (see bug 13537) and non ASCII string currupted when they try to remember it
(see bug 29154 22580)
Assignee | ||
Comment 5•25 years ago
|
||
sorry, my early analysis is wrong. The problem is not related to those bug. It
is because we do a meta reload which clean up the setting. If user set the
default charset to ISO-8859-7 then the problme go away. This bug is because we
do a reload when we hit the meta tag. Maybe we should do a "Peek" in the first
block to reduce the chace of reload.
Assignee | ||
Comment 6•25 years ago
|
||
We should consider adding "peeking" code into parser to get charset info to
reduce the need of meta charset reload.
Assignee | ||
Comment 7•25 years ago
|
||
jbetak, can you help to fix this ?
Assignee: ftang → jbetak
Status: ASSIGNED → NEW
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 9•25 years ago
|
||
Mark this M19. Move the serverity to normal since it only break this test case.
Severity: critical → normal
Target Milestone: M15 → M19
Reporter | ||
Updated•25 years ago
|
OS: Linux → All
Hardware: PC → All
Comment 10•25 years ago
|
||
I just got a "complaint" today, and it seems it doesn't only break the test
case, because this guy brought another case, and I think there will be yet many
more forms which will be affected, namely really all which are not with
ISO-8859-1 Charset...
URL:
http://www.mitf.f2s.com/encoder.php3
[raising severity to major]
Severity: normal → major
Assignee | ||
Comment 11•25 years ago
|
||
form posting and charset conversion / handling issue. Reassign to jbetak and cc
cata
Assignee: ftang → jbetak
Status: ASSIGNED → NEW
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 12•24 years ago
|
||
reassigning to ftang for resource reallocation
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Assignee | ||
Comment 13•24 years ago
|
||
assign untill find new owner for form handling
Status: NEW → ASSIGNED
Comment 14•24 years ago
|
||
In my case Mozilla (2000070220) does not POSTs values at all.
Changing method from POST to GET resolves problem, but this
is not right way to solve this problem.
Comment 15•24 years ago
|
||
The meta charset reload is the problem here, it doesn't repost form data.
*** This bug has been marked as a duplicate of 27006 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•