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

Many XHR requests fail under certain conditions when an underscore is present in the hostname

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      When accessing via a hostname with an underscore, many (or perhaps even all; I haven't enumerated) XHR requests fail – either with a 403 unauthorized (when logged in) or with a 200 OK but blank response (if I log in as anonymous, with anonymous granted Administer privileges).

      Here are a few examples:

      • At /configureSecurity/: XHR calls to /descriptorByName/hudson.security.GlobalMatrixAuthorizationStrategy/checkName?value=%5Busername%5D return either 403 (if logged in) or 200 but blank response (if anonymous w/anonymous granted Administer)
      • At /configureSecurity/: clicking Save or Apply results in an error where an ActiveDirectorySecurityRealm failed to instantiate in org.kohsuke.stapler.Stapler.tryInvoke (Stapler.java:796)
      • At /configure: XHR call to /$stapler/bound/[a GUID]/render returns 404 Not Found
      • At /configure: all other XHR calls executed on load (/checkAdminAddress, checkDefaultSuffix, checkGitUrl, etc.) return 200 OK but have an empty response.

      This issue has been tested and found present in 1.6, 2.2, and 2.3 (I haven't tested any other versions).

      In 2.0+, this results in several major functionality blockers – e.g. the New Item page is blank.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Peter Ntende Looks like outdated/mismatched plugins, may just take a Jenkins restart (or at worst an update of plugins) to fix.

          Show
          danielbeck Daniel Beck added a comment - Peter Ntende Looks like outdated/mismatched plugins, may just take a Jenkins restart (or at worst an update of plugins) to fix.
          Hide
          ntende Peter Ntende added a comment -

          Disabling and Update of all updated plugins and update to Jenkins 2.5 has resolved my issues...Thanks Daniel Beck

          Show
          ntende Peter Ntende added a comment - Disabling and Update of all updated plugins and update to Jenkins 2.5 has resolved my issues...Thanks Daniel Beck
          Hide
          danielbeck Daniel Beck added a comment -

          Peter Ntende To clarify, do you have an underscore in a host name, like the original reported issue? Or was your problem unrelated, with a similar looking error message?

          Show
          danielbeck Daniel Beck added a comment - Peter Ntende To clarify, do you have an underscore in a host name, like the original reported issue? Or was your problem unrelated, with a similar looking error message?
          Hide
          ntende Peter Ntende added a comment -

          no I do not have an underscore, I just have a raw IP adress. Still I think there is some relation to Roy Tinkers problem, I have not been able to zero in at the particular plugin causing the error. However as far as I understand, even after Roy removed the underscore, he still had the problem.. a restart was not necessary but plugins updates

          Show
          ntende Peter Ntende added a comment - no I do not have an underscore, I just have a raw IP adress. Still I think there is some relation to Roy Tinkers problem, I have not been able to zero in at the particular plugin causing the error. However as far as I understand, even after Roy removed the underscore, he still had the problem.. a restart was not necessary but plugins updates
          Hide
          danielbeck Daniel Beck added a comment -

          Peter Ntende Accessing Jenkins using a different URL than configured in the global config can result in problems. If you're doing that, don't.

          Show
          danielbeck Daniel Beck added a comment - Peter Ntende Accessing Jenkins using a different URL than configured in the global config can result in problems. If you're doing that, don't.

            People

            • Assignee:
              Unassigned
              Reporter:
              pianoroy Roy Tinker
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: