application/x-www-form-urlencoded content type is encoded improperly.

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
10 years ago
8 years ago

People

(Reporter: chertov.developer, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-11-01], URL)

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7

Due to rfc1738 "Uniform Resource Locators (URL)" paragraph 2.2 (http://www.ietf.org/rfc/rfc1738.txt):

"octets may be encoded by a character triplet consisting of the character "%" followed by the two hexadecimal digits (from "0123456789ABCDEF") which forming the hexadecimal value of the octet. (The characters "abcdef" may also be used in hexadecimal encodings.)"

Firefox brakes this rule by omitting character "0" previous to symbol from "123456789ABCDEF". Here is an example of urlencoded content produces by Firefox:

limit=6&content=%CF%F0%E8%E2%E5%F2+%EA%E0%EA+%E4%E5%EB%E0.+%CC%ED%E5+%ED%E5%EE%E1%F5%EE%E4%E8%EC+%E4%EE%EA%F3%EC%E5%ED%F2+%F3%F0%EE%E2%ED%FF+%C4%D1%CF.+%CF%EE%EC%EE%E6%E5%F8%FC%3F%3Cbr%3E%A%3Cbr%3E%A&rand=957140

Mind %A which occurs twice.


Reproducible: Always

Steps to Reproduce:
1. Log in to www.mail.ru account.
2. Go to inbox folder and open unread mail message.
3. Intercept http request and try to parse it.
Actual Results:  
java.net.URLDecoder crushes with IllegalArgumentException and message:

'Illegal hex characters in escape (%) pattern - For input string: "A%"'

Expected Results:  
Same steps performed with Internet Explorer didn't cause any exception. Http request was parsed successfully.

Intercepted HTTP request is attached.
(Reporter)

Comment 1

10 years ago
Created attachment 366843 [details]
Intecepted HTTP request
This is a mass search for bugs which are in the Firefox General component, are
UNCO, have not been changed for 500 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.