[JIRA] [junit-plugin] (JENKINS-27974) 404 error when opening a test result

27 views
Skip to first unread message

yoann.dubreuil@gmail.com (JIRA)

unread,
Apr 16, 2015, 6:39:05 AM4/16/15
to jenkinsc...@googlegroups.com
Issue Type: Bug Bug
Assignee: Yoann Dubreuil
Components: junit-plugin
Created: 16/Apr/15 10:38 AM
Description:

Opening a test result with a empty className tag in junitReport.xml file results in a 404 page. For those, generated URL to open the test result page is lacking className. URL looks like this: http://JENKINS/job/junit/1/testReport/junit/(root)//testName/

There's just '//' in place of /className/ in the URL. This causes PackageResult.getDynamic() to fail to lookup the TestResult.

PR is coming.

Environment: junit-plugin 1.5
Project: Jenkins
Priority: Minor Minor
Reporter: Yoann Dubreuil
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 16, 2015, 7:01:06 AM4/16/15
to jenkinsc...@googlegroups.com
Oleg Nenashev started work on Bug JENKINS-27974
Change By: Oleg Nenashev (16/Apr/15 10:59 AM)
Status: Open In Progress

yoann.dubreuil@gmail.com (JIRA)

unread,
Apr 16, 2015, 7:03:04 AM4/16/15
to jenkinsc...@googlegroups.com
Change By: Yoann Dubreuil (16/Apr/15 11:01 AM)
Description: Opening a test result with a empty {{className}} tag in {{junitReport.xml}} file results in a 404 page. For those, generated URL to open the test result page is lacking className. URL looks like this: {{http://JENKINS/job/junit/1/testReport/junit/(root)//testName/}}

There's just '//' in place of {{/className/}} in the URL. This causes {{PackageResult.getDynamic()}} to fail to lookup the TestResult.


PR is coming.

scm_issue_link@java.net (JIRA)

unread,
Apr 28, 2015, 11:41:20 AM4/28/15
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Yoann Dubreuil
Path:
src/main/java/hudson/tasks/test/TestObject.java
http://jenkins-ci.org/commit/junit-plugin/07deb07ba72824d530c746e99bdcb4515637f081
Log:
[FIXED JENKINS-27974]: Safe URL for empty className

scm_issue_link@java.net (JIRA)

unread,
Apr 28, 2015, 11:41:20 AM4/28/15
to jenkinsc...@googlegroups.com

Code changed in jenkins


User: Yoann Dubreuil
Path:
src/main/java/hudson/tasks/test/TestObject.java

http://jenkins-ci.org/commit/junit-plugin/c2dfcabb24589976b2e90c5ba5d61e044bb23481
Log:
[FIXED JENKINS-27974]: Use StringUtils.isBlank and add javadoc

scm_issue_link@java.net (JIRA)

unread,
Apr 28, 2015, 11:41:20 AM4/28/15
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Jesse Glick
Path:
src/main/java/hudson/tasks/test/TestObject.java
http://jenkins-ci.org/commit/junit-plugin/4e0eaee031058cfb62ee9d3037f975d0cfe727e0
Log:
Merge pull request #16 from ydubreuil/empty-classname-hardening

JENKINS-27974: Safe URL for empty className

scm_issue_link@java.net (JIRA)

unread,
Apr 28, 2015, 11:41:20 AM4/28/15
to jenkinsc...@googlegroups.com
Change By: SCM/JIRA link daemon (28/Apr/15 3:40 PM)
Status: In Progress Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages