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.
Created attachment 8899 [details] 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
I'm testing a patch.
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
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.3391267&r2=1.3391268 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
I've checked in the fix. Thanks for the simple test case.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル