United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4464134 : java.net.URI should permit backslashes in opaque URIs

Details
Type:
Enhancement
Submit Date:
2001-05-30
Status:
Closed
Updated Date:
2001-07-19
Project Name:
JDK
Resolved Date:
2001-07-19
Component:
core-libs
OS:
generic
Sub-Component:
java.net
CPU:
generic
Priority:
P4
Resolution:
Won't Fix
Affected Versions:
1.4.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
Date: Tue, 29 May 2001 18:57:19 -0700 (PDT)
From: ###@###.###

Why does URI reject this string : "file:c:\\abc.bat" with the exception:

  java.net.URISyntaxException: Illegal character in opaque part at index 7: file:c:\abc.bat

Assuming a zero-based index, the objection is to the "\".

                                    

Comments
EVALUATION

Per further discussion with jdn@eng, closing this as WNF.  We'll address win32
filename issues in a different way.

-- mr@eng 2001/7/18
                                     
2004-06-11
SUGGESTED FIX

RFC2396 treats "\" as an "unwise" character.  The URI class tries to adhere as
closely as possible to RFC2396, therefore it rejects "\".  Given that over
ninety percent of the computers on the planet insist on using "\" in pathnames,
however, perhaps we should relax the URI class on this particular point.

-- mr@eng 2001/5/30
                                     
196-09-05 0



Hardware and Software, Engineered to Work Together