public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes
@ 2005-05-16 11:58 brion at pobox dot com
  2005-05-16 12:01 ` [Bug libgcj/21606] " brion at pobox dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: brion at pobox dot com @ 2005-05-16 11:58 UTC (permalink / raw)
  To: java-prs

URIs may contain special hexadecimal byte codes in the format %HH where H is a
hexadecimal digit, either upper or lowercase. (RFC 2396 2.4.1)

When given a string containing lowercase hex codes such as %2c, the URI
constructor throws a URISyntaxException.

Steps to reproduce:
1. new URI("/a%2cb")

Actual results:
A URISyntaxException is thrown.

Expected results:
A happy, usable URI object. This works as expected on Sun's JDK 1.5.0.

Additional information:
GCC 4.0 compiled from source release on an Ubuntu Linux 5.04 "Hoary" system.

-- 
           Summary: java.net.URI fails to decode lowercase hex codes
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brion at pobox dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21606


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/21606] java.net.URI fails to decode lowercase hex codes
  2005-05-16 11:58 [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes brion at pobox dot com
@ 2005-05-16 12:01 ` brion at pobox dot com
  2005-05-16 20:10 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: brion at pobox dot com @ 2005-05-16 12:01 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From brion at pobox dot com  2005-05-16 12:00 -------
Created an attachment (id=8899)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8899&action=view)
Test case

$ javac UriBugDemo.java && java UriBugDemo
ok: /a,b
ok: /a%2C,b
ok: /a%2c,b

$ gcj-4.0 -o UriBugDemo --main=UriBugDemo UriBugDemo.java && ./UriBugDemo
ok: /a,b
ok: /a%2C,b
broke! /a%2c,b


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21606


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/21606] java.net.URI fails to decode lowercase hex codes
  2005-05-16 11:58 [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes brion at pobox dot com
  2005-05-16 12:01 ` [Bug libgcj/21606] " brion at pobox dot com
@ 2005-05-16 20:10 ` tromey at gcc dot gnu dot org
  2005-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-16 20:10 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-05-16 20:10 -------
I'm testing a patch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-16 20:10:50
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21606


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/21606] java.net.URI fails to decode lowercase hex codes
  2005-05-16 11:58 [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes brion at pobox dot com
  2005-05-16 12:01 ` [Bug libgcj/21606] " brion at pobox dot com
  2005-05-16 20:10 ` tromey at gcc dot gnu dot org
@ 2005-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
  2005-05-16 20:35 ` cvs-commit at gcc dot gnu dot org
  2005-05-16 20:39 ` tromey at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-16 20:27 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-16 20:27 -------
Subject: Bug 21606

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2005-05-16 20:27:48

Modified files:
	libjava        : ChangeLog 
	libjava/java/net: URI.java 

Log message:
	PR libgcj/21606:
	* java/net/URI.java (unquote): Handle lower-case letters as well.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3615&r2=1.3616
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/net/URI.java.diff?cvsroot=gcc&r1=1.10&r2=1.11



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21606


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/21606] java.net.URI fails to decode lowercase hex codes
  2005-05-16 11:58 [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes brion at pobox dot com
                   ` (2 preceding siblings ...)
  2005-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-16 20:35 ` cvs-commit at gcc dot gnu dot org
  2005-05-16 20:39 ` tromey at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-16 20:35 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-16 20:35 -------
Subject: Bug 21606

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	tromey@gcc.gnu.org	2005-05-16 20:35:23

Modified files:
	libjava        : ChangeLog 
	libjava/java/net: URI.java 

Log message:
	PR libgcj/21606:
	* java/net/URI.java (unquote): Handle lower-case letters as well.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.67&r2=1.3391.2.68
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/net/URI.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.9&r2=1.9.6.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21606


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/21606] java.net.URI fails to decode lowercase hex codes
  2005-05-16 11:58 [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes brion at pobox dot com
                   ` (3 preceding siblings ...)
  2005-05-16 20:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-16 20:39 ` tromey at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-16 20:39 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-05-16 20:39 -------
I've checked in the fix.
Thanks for the simple test case.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21606


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-16 20:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-16 11:58 [Bug libgcj/21606] New: java.net.URI fails to decode lowercase hex codes brion at pobox dot com
2005-05-16 12:01 ` [Bug libgcj/21606] " brion at pobox dot com
2005-05-16 20:10 ` tromey at gcc dot gnu dot org
2005-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
2005-05-16 20:35 ` cvs-commit at gcc dot gnu dot org
2005-05-16 20:39 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).