aherbert opened a new pull request #35: [CODEC-280] Added strict decoding 
property to BaseNCodec.
URL: https://github.com/apache/commons-codec/pull/35
 
 
   The default is lenient encoding. Any trailing bits that cannot be
   interpreted as part of the encoding are discarded. Combinations of
   trailing characters that cannot be created by a valid encoding are
   partially interpreted.
   
   If set to strict encoding the codec will raise an exception when
   trailing bits are present that are not part of a valid encoding.
   
   Added tests to show that in lenient mode re-encoding will create a
   different byte array.
   
   In strict mode the re-encoding should create the same byte array as the
   original (with appropriate pad characters on the input).
   
   The PR does not current address behaviour of BCodec class that uses Base64. 
The test that validates input that requires strict mode have been disabled to 
allow travis to pass.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to