elharo opened a new pull request, #392:
URL: https://github.com/apache/maven-archiver/pull/392

   The fix for MSHARED-815 (commit `f2135b1`) already sanitizes newlines in 
manifest entry values. The existing tests cover single `\n` and `\r\n` but not 
multiple consecutive empty lines or bare CR sequences.
   
   Added two tests that verify the fix handles these edge cases:
   
   - `manifestEntryWithMultipleEmptyLinesDoesNotCorruptSubsequentEntries` -- 
verifies that values with multiple `\n\n` empty lines are sanitized and 
subsequent manifest entries remain readable
   - `manifestEntryWithCRLFEmptyLinesDoesNotCorruptManifest` -- verifies 
`\r\n\r\n` and `\r\r` sequences are sanitized correctly
   
   Both tests write a JAR, read the manifest back, and verify the attributes 
are correct and the manifest is valid. All 86 tests pass.
   
   Closes #225
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to