incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddiqui Najam <Najam.Siddi...@gemalto.com>
Subject Bug in CommentedProperties
Date Wed, 10 Mar 2010 18:28:11 GMT
Hi,

There seems to be a bug in CommentedProperties store() method, it is not saving escaped characters
correctly.

Say there is a property in property file
TestProperty=this has an escaped characters in it \\ and \=.

This property is read correctly but when the file is saved using the store() method the property
is saved as
TestProperty=this has an escaped characters in it \ and =.
So when it is read the next time the backward slash and "=" are lost.

If we save the same file with Properties object, it is saved correctly as
TestProperty=this has an escaped characters in it \\ and \=.

The test was done with the latest nightly build on March 10, 2010.

Regards,
Najam

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message