-
Bug
-
Resolution: Fixed
-
Critical
-
-
Blue Ocean 1.1
Blue Ocean organizations have a name and display name. But only name seems to be exposed and used for the front-end.
This is the result of https://ci.blueocean.io/blue/rest/organizations/ where organization name and display name are both exposed as name.
[ { "_class": "io.jenkins.blueocean.service.embedded.rest.OrganizationImpl", "_links": { "pipelines": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/" }, "self": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/" }, "user": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/user/" }, "users": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/users/" } }, "name":"jenkins", "name":"Jenkins" } ]
Caused by this line:
https://github.com/jenkinsci/blueocean-plugin/blob/80627f6dcbcec4c8535cc15c3bfbc6597fdb1ced/blueocean-rest/src/main/java/io/jenkins/blueocean/rest/model/BlueOrganization.java#L18
Also the frontend seems to be using the name for everything:
https://github.com/jenkinsci/blueocean-plugin/blob/fb065140166674ee4720e5b81b85923f95257e55/blueocean-dashboard/src/main/js/components/PipelineRowItem.jsx#L73
The main page displays "jenkins" instead of "Jenkins"