The "dogfood" instance runs begind nginx at the moment (aside: there have
been some problems with timing around SSE, but this sounds like you haven't
got that far).
so the first /jenkins resolves to the "classic" UI?
It looks like nginx is stripping off the space somehow...
I'll see if we can dig up a config that works and compare.
are you able to share you nginx proxy config?
On Thursday, July 21, 2016 at 6:31:43 PM UTC+10, Javier Martín Caro BEEVA
wrote:
>
> 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/ca510103-5c99-4659-80e1-477b9c935549%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.