-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL encoding issue in "All Failed Tests" links with square brackets #662
Comments
I tried to reproduce the problem here with a simple Maven project, unit JUnit 5 and parameterized tests. Those create tests with I do believe that the problem is in my setup, not being able to create tests correctly, creating this problem. Could you please explicit how those tests are creating? Maybe you have an example I could follow. |
Thank you for your response. All Tests consists of multiple categories, and all failed tests can also be accessed from In All Tests, the category On the other hand, when accessed via As you can see, the links from All Failed Tests are handled differently. The category is encoded one way, while the subcategory is encoded another way. I hope this explanation provides a clearer view of the problem. |
It would be easier to reproduce if you could provide a simple junit.xml file which matches your setup |
Unfortunately, I cannot provide a simple file, but I would like to suggest a possible solution: After thoroughly reviewing last two merged commits that introduced new fix releases, I noticed that only the "All Tests" sections were updated (all instances of Could you please check if handling all instances of For example, replacing: With:
This might address the inconsistency. Thank you for your consideration in advance! |
Hi again, I understand everyone is quite busy, or perhaps my earlier message wasn't entirely clear. To help, I forked the repo and implemented the changes I proposed. Could you kindly review my branch and let me know if there's anything that needs adjustment? https://github.com/ahadalioglu/junit-plugin/tree/url-encode-fix-for-all-failed-tests Thanks in advance |
Could you please create a pull request |
I have created PR, please kindly review at your convenience and let me know if there is anything missing. UPDATE: pipeline failed, it seems it's missing tests: Need some help, please... These are only changes we need: |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Thank you to everyone who worked on resolving issue #659. I can confirm that the "
All Tests
" link now functions as expected, with all associated links working correctly.However, links for individual failed test reports (
All Failed Tests
) are still encountering the original issue: square brackets in the URLs are not being replaced with percent-encodings, which still results in link failures. I've attached a screenshot for additional context:Error Screenshot
Thank you for your continued efforts on this.
Reproduction steps
Access test results/reports via link:
https://<jenkins_url>/job/<job_name>/<build_number>/testReport/(root)/[AUTOMATION]
Expected Results
Convert link to this:
https://<jenkins_url>/job/<job_name>/<build_number>/testReport/(root)/%5BAUTOMATION%5D
Actual Results
HTTP ERROR 400 Illegal Path Character
URI: /badURI
STATUS: 400
MESSAGE: Illegal Path Character
Powered by Jetty:// 12.0.13
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: