My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 4: Hash Character Interpreted in .properties File
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by evan.moseman, Nov 13, 2008
If my password for a datasource has a # character, it will interpret that
as a comment and truncate the string.

I tested with java.util.Properties and it does not exhibit this behavior.


Comment 1 by vincent.nap, Feb 09, 2009
It seems CustomProperties#load(InputStream) does not follow the
java.util.Properties#load(InputStream) contract.

Here is a patch to fix this bug, but i think this method should create a temporary
java.util.Properties, call load() on this temporary props, then copy the read data
into "this". Thus, the usual contract (about the comments, blank links, encoded
characters, etc) will be respected.
patch-4.diff
1.1 KB   Download
Sign in to add a comment

Hosted by Google Code