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
Posted on Feb 9, 2009 by Quick RhinoIt 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.09KB
Comment #2
Posted on Jul 1, 2013 by Helpful PandaYes, this fix works with java.util.Properties.load()
- CustomProperties.java 3.16KB
Status: New
Labels:
Type-Defect
Priority-Medium