Quantcast

[JIRA] Created: (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Created: (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
Links to test results containing a hash (#) characters or a question mark (?) in their name
-------------------------------------------------------------------------------------------

                 Key: JENKINS-10458
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
             Project: Jenkins
          Issue Type: Bug
          Components: core
    Affects Versions: current
         Environment: Java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

            Reporter: Gregory Becker
         Attachments: Screen shot 2011-07-26 at 15.44.45.png

Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:

Let's take this test for instance:

spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight

Jenkins currently produces the following link:
http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/

Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.

A fix would be to automatically replace '#' in test names by the javascript code %23.

Similarly for the question mark, which delimitates the query.
The equivalent escape code is %3F.

Ref. http://www.december.com/html/spec/esccodes.html

I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=155851#comment-155851 ]

kutzi commented on JENKINS-10458:
---------------------------------

A test case to reproduce the issue would be helpful.
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>         Attachments: Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kutzi reassigned JENKINS-10458:
-------------------------------

    Assignee: kutzi
   

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kutzi resolved JENKINS-10458.
-----------------------------

    Resolution: Incomplete

Please reopen, when you can provide a test case i.e. an example test result file
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Becker updated JENKINS-10458:
-------------------------------------

    Attachment: example_test_result.xml

As you will see, the names contain special characters like # or ? which break the links when browsing the test results.

The following test result will produce invalid links like http://your-host/job/foo/lastCompletedBuild/testReport/(root)/Foo#approve! is called by approve_on_foo?/notifies_owner_when_approved/
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Becker reopened JENKINS-10458:
--------------------------------------


Reopened with the example test result
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on JENKINS-10458 started by kutzi.

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157871#comment-157871 ]

kutzi commented on JENKINS-10458:
---------------------------------

Are you using any plugin to parse your test results?
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157870#comment-157870 ]

kutzi commented on JENKINS-10458:
---------------------------------

Are you sure this is the test result file as parsed by Jenkins?
I would expect something like 'testsuites' instead of 'suites' as element names and analogue for the other element names.
If I try to parse the attached file with Jenkins, I get no test results.
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158551#comment-158551 ]

kutzi commented on JENKINS-10458:
---------------------------------

Okay, I think I've fixed it now, but would still be good, if you could provide a working test case
               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158552#comment-158552 ]

dogfood commented on JENKINS-10458:
-----------------------------------

Integrated in !http://ci.jenkins-ci.org/images/16x16/blue.png! [jenkins_main_trunk #1514|http://ci.jenkins-ci.org/job/jenkins_main_trunk/1514/]
     [FIXED JENKINS-10458] broken links to test results if test name contains # or ? (Revision b816be60000edf5d7a9d50bf893fd285f2adec1f)

     Result = SUCCESS
Christoph Kutzinski : [b816be60000edf5d7a9d50bf893fd285f2adec1f|https://github.com/jenkinsci/jenkins/commit/b816be60000edf5d7a9d50bf893fd285f2adec1f]
Files :
* changelog.html
* core/src/main/java/hudson/tasks/test/TestObject.java
* core/src/test/java/hudson/tasks/test/TestObjectTest.java

               

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-10458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kutzi resolved JENKINS-10458.
-----------------------------

    Resolution: Fixed
   

> Links to test results containing a hash (#) characters or a question mark (?) in their name
> -------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-10458
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10458
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>    Affects Versions: current
>         Environment: Java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
>            Reporter: Gregory Becker
>            Assignee: kutzi
>         Attachments: example_test_result.xml, Screen shot 2011-07-26 at 15.44.45.png
>
>
> Some of our tests include hashes in their name/label causing Jenkins troubles when it tries to produce a link to these tests:
> Let's take this test for instance:
> spec/controllers/categories_controller_spec.rb.CategoriesController with a simple category hierarchy#index when path is valid.assigns @products and @highlight
> Jenkins currently produces the following link:
> http://hudson_fqnd/job/job_name/123/testReport/spec_controllers_categories_controller_spec.rb/CategoriesController%20with%20a%20simple%20category%20hierarchy#index when path is valid/assigns__products_and__highlight/
> Which does not work since '#' is a special character in URIs is used to split the anchor (also called the URI reference) from the rest of the URI.
> A fix would be to automatically replace '#' in test names by the javascript code %23.
> Similarly for the question mark, which delimitates the query.
> The equivalent escape code is %3F.
> Ref. http://www.december.com/html/spec/esccodes.html
> I'm not a Java programmer myself unfortunately, but let me know if there is anything I can provide or do to help you with this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10458) Links to test results containing a hash (#) characters or a question mark (?) in their name

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Christoph Kutzinski
Path:
changelog.html
core/src/main/java/hudson/tasks/test/TestObject.java
core/src/test/java/hudson/tasks/test/TestObjectTest.java
http://jenkins-ci.org/commit/jenkins/b816be60000edf5d7a9d50bf893fd285f2adec1f
Log:
[FIXED JENKINS-10458] broken links to test results if test name contains # or ?

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