vlsi opened a new pull request, #6599: URL: https://github.com/apache/jmeter/pull/6599
When recording HTTP traffic via the HTTP(S) Test Script Recorder, JMeter would crash with `IllegalArgumentException` when encountering malformed percent-encoded parameters (e.g., `"%u2"`, `"%ZZ"`, `"text%"`) from real-world web applications. Changes: - HTTPArgument constructor now catches IllegalArgumentException from URLDecoder.decode() in addition to UnsupportedEncodingException - When malformed encoding is detected, the original encoded value is preserved and a warning is logged instead of crashing - Added comprehensive test cases covering various malformed encoding scenarios: incomplete hex sequences, invalid hex characters, truncated percent signs, and mixed valid/invalid encoding This allows JMeter to successfully record and test applications with encoding bugs, which is a legitimate use case for a testing tool. Fixes https://github.com/apache/jmeter/issues/6456 -- 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]
