Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41425

Refreshing page with / in job name results in 404

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      BlueOcean 1.0.0-b19, Jenkins v2.32.1, Safari 10.0.3
    • Similar Issues:
    • Epic Link:
    • Sprint:
      pannonian, iapetus, 1.0

      Description

      When accessing a job or branch that has '/' in the name, it needs to be escaped using %2F. However, in Safari, when the page refreshes, the escapes are removed, and the URL just has a / in it. And you then get a 404 page.

      Similarly, when navigating from the regular Jenkins UI to the Blue Ocean UI in Safari, you get a 404 page and the job & branch names aren't escaped.

      Steps to reproduce:

      • create a job with / in the name
      • open the page in the Blue Ocean UI, using Safari, with the escaped URL.
      • refresh the page
      • see a 404 page.

      We get / in the job name because we use the BitBucket Branch Source Plugin (v1.9), so our jobs are in folders, and the job name ends up being <team name>/<repository name>. On top of that, we use a pattern of story/<issue-number>_<summary> for our branches, so there's another /

        Attachments

          Issue Links

            Activity

            Hide
            michaelneale Michael Neale added a comment -

            nginx config fix.

            Show
            michaelneale Michael Neale added a comment - nginx config fix.
            Hide
            equincerot Emmanuel Quincerot added a comment - - edited

            When should it be released?

            The ticket never appeared in the Blue Ocean release notes.

            Show
            equincerot Emmanuel Quincerot added a comment - - edited When should it be released? The ticket never appeared in the Blue Ocean release notes.
            Hide
            michaelneale Michael Neale added a comment -

            Emmanuel Quincerot there is no fix on the blue ocean side - it requires a change to the config of the proxy (depends what is in use). 

            Show
            michaelneale Michael Neale added a comment - Emmanuel Quincerot there is no fix on the blue ocean side - it requires a change to the config of the proxy (depends what is in use). 
            Hide
            equincerot Emmanuel Quincerot added a comment -

            Sorry Vivek for the assignee change. I misused JIRA shortcurts.

            Indeed, Michael Neale our configuration was having a "/" at the end of the proxy_pass. It has been changed and works fine now. Thanks!

            Show
            equincerot Emmanuel Quincerot added a comment - Sorry Vivek for the assignee change. I misused JIRA shortcurts. Indeed, Michael Neale our configuration was having a "/" at the end of the proxy_pass. It has been changed and works fine now. Thanks!
            Hide
            michaelneale Michael Neale added a comment -

            Emmanuel Quincerot great to hear. I have put a note to configuration in the wiki/documentation but even having this ticket is handy, as google seems to find it. 

            Show
            michaelneale Michael Neale added a comment - Emmanuel Quincerot great to hear. I have put a note to configuration in the wiki/documentation but even having this ticket is handy, as google seems to find it. 

              People

              • Assignee:
                vivek Vivek Pandey
                Reporter:
                twasink Robert Watkins
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: