Jason Howk created JENKINS-13584:
------------------------------------

             Summary: Default view selected in Jenkins configuration is not 
reported properly via remote API.
                 Key: JENKINS-13584
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13584
             Project: Jenkins
          Issue Type: Bug
          Components: core
    Affects Versions: current
         Environment: All
            Reporter: Jason Howk


When pulling view data from the remote JSON API, the default view selected in 
the Jenkins configuration is not reported properly.

Example:
URL: http://ci.jenkins-ci.org/api/json?tree=views%5Bname,url,description%5D

Response:
jsonData: 
{"views":[{"description":null,"name":"All","url":"http://ci.jenkins-ci.org/view/All/"},{"description":null,"name":"All
 
Disabled","url":"http://ci.jenkins-ci.org/view/All%20Disabled/"},{"description":null,"name":"All
 Failed","url":"http://ci.jenkins-ci.org/"},{"description":null,"name":"All 
QA","url":"http://ci.jenkins-ci.org/view/All%20QA/"},{"description":null,"name":"All
 
Site","url":"http://ci.jenkins-ci.org/view/All%20Site/"},{"description":null,"name":"All
 
Unstable","url":"http://ci.jenkins-ci.org/view/All%20Unstable/"},{"description":";<big>Jenkins
 project infrastructure 
jobs</big>","name":"Infrastructure","url":"http://ci.jenkins-ci.org/view/Infrastructure/"},{"description":null,"name":"Jenkins
 
core","url":"http://ci.jenkins-ci.org/view/Jenkins%20core/"},{"description":";<big>Jenkins
 libraries - both patched third-party libraries and our 
own</big>","name":"Libraries","url":"http://ci.jenkins-ci.org/view/Libraries/"},{"description":null,"name":"Other
 
Projects","url":"http://ci.jenkins-ci.org/view/Other%20Projects/"},{"description":";<big>Jenkins
 solo plugin 
builds</big>","name":"Plugins","url":"http://ci.jenkins-ci.org/view/Plugins/"},{"description":null,"name":"Ruby","url":"http://ci.jenkins-ci.org/view/Ruby/"}]}

Browsing the website, the default view is set to "All Failed" and as such the 
jobs under All Failed are shown correctly.  However, when using the remote API, 
the default view isn't explicitly  identified.  Looking at the response above 
the All Failed URL key isn't linked to the view ../view/All%20Failed as 
expected but the root.  

Expected Behavior:
That the view configured to be the default view in Jenkins should have some 
sort of identifier (i.e. default:true) and the url should point to the correct 
URL.  At a minimum the url should be accurate.




--
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 via email to