Hi there!

We have set up jenkins blue ocean behind a nginx reverse proxy and 
configured successfully the prefix in the url to <URL>/jenkins. Despite of 
this, when we access to the blue ocean ui in <URL>/jenkins/blue and try to 
access some pipeline, a 422 (unprocessable entity error) is displayed in 
the browser debugging console and a white screen is shown.

The URL in the browser is like the following (note the encoded space):

https://<URL>/jenkins/blue/organizations/*jenkins%20*/<pipeline>/activity



When we call the blue ocean API for organizations the following information 
is shown (https://<URL>/jenkins/blue/rest/organizations/):


[{"_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 "}]


Note the white space in the organizations href after /jenkins /pipelines.


If we call to 
https://<URL>/jenkins/blue/rest/organizations/jenkins/pipelines/<pipeline>/runs/
 the following message is shown:


{

  "message" : "Organization jenkins not found",

  "code" : 422,

  "errors" : [ ]

}


But if we force the organization to be jenkins%20 
(https://<URL>/jenkins/blue/rest/organizations/jenkins%20/pipelines/<pipeline>/runs/)
 the information is displayed correctly.


Can someone help us to configure the proper name for the organization? We 
thought it was the jenkins url in the settings page but this is set to 
https://<URL>/jenkins/. 


Old UI is working properly for all pipelines, folder organizations and 
bitbucket team jobs.


Thank you and regards!


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/fb61b5ad-1ea7-4012-942e-6620cbe94c66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to