Donate Share

[ini4j]

Tracker: Bugs

5 ini4j does not support files with # in the name - ID: 2060122
Last Update: Comment added ( szkiba )

ini4j converts internally (in iniFile constructor) every file name in a URL
using the deprecated toURL method that does not escape illegal URL
characters. FYI URL allows only ALPHA / DIGIT / "-" / "." / "_" / "~"
characters in their name which is more restrictive that file names.


To reproduce the bug just try to instanciate an iniFile with a file name
containing a #. A BackingStore exception is raised.


Now that toURL() is deprecated, it is recommended to use toURI() and then
URI.toURL to obtain the same result as toURL() without the bug reported
here.



Julien MARBACH ( jumar ) - 2008-08-19 16:34

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2009-02-05 21:31
Sender: szkibaProject Admin

Fixed in version 0.3.3, thanx for feedback


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2009-02-05 21:31 szkiba
resolution_id None 2009-02-05 21:31 szkiba
allow_comments 1 2009-02-05 21:31 szkiba
close_date - 2009-02-05 21:31 szkiba