commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #6258] URLs aren't parsed properly in some cases


From: nobody
Subject: [bug #6258] URLs aren't parsed properly in some cases
Date: Thu, 30 Oct 2003 15:22:54 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428

=================== BUG #6258: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6258&group_id=85

Submitted by: glavaux                 Project: classpath                    
Submitted on: Thu 10/30/2003 at 20:22
Severity:  5 - Major                  Resolution:  None                     
Assigned to:  None                    Status:  Open                         
Platform Version:  None               

Summary:  URLs aren't parsed properly in some cases

Original Submission:  (Already submitted to the mailing list)



I noticed some misbehaviour of classpath's URL compared to Sun's JDK while 
merging these classes in kaffe's library. Kaffe's regression test "URLTest" was 
failing nearly completely. BTW, there was an error when url of the type 
"http://anonymous:address@hidden/"; was entered: URL reports to detect 
"anonymous" as the host. This patch fixes all these things.



There is only one drawback: to be able to report errors in parseUrl() (for jar 
protocol especially) I was obliged to introduce a new error class inheriting 
from java.lang.Error. This is the only solution to be able to report errors.



Here is the corresponding ChangeLog entry:



2003-10-29    Guilhem Lavaux <address@hidden>



    * gnu/java/net/URLParseError.java: New error class.



    * gnu/java/net/protocol/jar/Handler.java:

    (parseUrl) Fixed error reporting. Fixed URL access

    using relative path.



    * java/net/URL.java:

    (URL) Reports Error generated using URLParseError as

    MalformedURLException.

    

    * java/net/URLStreamHandler:

    (parseUrl) Fixed URL parsing ('@' should be checked

    to distinguish port from userinfo). Fixed relative

    URL handling.







No Followups Have Been Posted


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Thu 10/30/2003 at 20:22  Name: patch_URL  Size: 10KB   By: glavaux

http://savannah.gnu.org/bugs/download.php?group_id=85&amp;bug_id=6258&amp;bug_file_id=771


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6258&group_id=85

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]