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

Direct links to project page leads to 404 errors

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • core
    • None
    • 64-bit Windows.

      If I try to access a build's status page that I haven't seen in a while from its url (e.g., http://myserver:8080/job/Project/431/) I'll get the following error:

      Status Code: 404
      Exception:
      Stacktrace:
      (none)
      Generated by Winstone Servlet Engine v0.9.10 at Tue Mar 26 17:45:26 EDT 2013

      However if I navigate to the build from http://myserver:8080/job/Project everything works. It's actually enough to first load the project page and then everything that showed up in the "build history" will be accessible through direct links (I usually end up using the links when sending out build failure emails).

      It's maybe worth mentioning that I currently have ~800 builds.
      Jenkins.err and jenkins.out doesn't contain any information regarding the 404.

      I'm using matrix-based security where Anonymous can Read everything.

          [JENKINS-17374] Direct links to project page leads to 404 errors

          Hi all,

          Here we have exactly the same issue. Once we have accessed the "project summary page" everything is ok.

          We are running jenkins 1.526 on a windows xp 32bit and we have the ldap authentication enabled and the "connected user can do anything" option ticked.

          Idem, nothing in the logs. I have created a new logger with the finest level for all the classes but there is nothing relevant that I can found in it.

          Mathieu POUSSE added a comment - Hi all, Here we have exactly the same issue. Once we have accessed the "project summary page" everything is ok. We are running jenkins 1.526 on a windows xp 32bit and we have the ldap authentication enabled and the "connected user can do anything" option ticked. Idem, nothing in the logs. I have created a new logger with the finest level for all the classes but there is nothing relevant that I can found in it.

          This isn't a bug but intentional behavior to prevent anonymous to know URL is a valid job name. Enable DISCOVER permission if you wish anonymous to be redirected to login.

          Nicolas De Loof added a comment - This isn't a bug but intentional behavior to prevent anonymous to know URL is a valid job name. Enable DISCOVER permission if you wish anonymous to be redirected to login.

          This happens even though I have the following enabled for Anonymous:
          Overall (Read), Job(Read, Discover), View (Read).

          Simon Edwardsson added a comment - This happens even though I have the following enabled for Anonymous: Overall (Read), Job(Read, Discover), View (Read).

          @ndeloof: I'm having the same issue, and we are using "Logged-in users can do anything". How can I enable the discover permission for anonymous users in this configuration?

          Thanks!

          Marnix Klooster added a comment - @ ndeloof : I'm having the same issue, and we are using "Logged-in users can do anything". How can I enable the discover permission for anonymous users in this configuration? Thanks!

          The issue reported here may be a duplicate of JENKINS-19418, which I'm having with 1.509.3 (LTS) and which is scheduled to be fixed in 1.509.4.

          Marnix Klooster added a comment - The issue reported here may be a duplicate of JENKINS-19418 , which I'm having with 1.509.3 (LTS) and which is scheduled to be fixed in 1.509.4.

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/model/Api.java
          http://jenkins-ci.org/commit/jenkins/0a241aafdbdf3ad15d34efa3077658c5770b9195
          Log:
          [JENKINS-17374 JENKINS-18116] Don't set gzip header for error

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/model/Api.java http://jenkins-ci.org/commit/jenkins/0a241aafdbdf3ad15d34efa3077658c5770b9195 Log: [JENKINS-17374 JENKINS-18116] Don't set gzip header for error

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html http://jenkins-ci.org/commit/jenkins/f56a3bdae5baa68a7427efdface0a04028e7d010 Log: JENKINS-17374 JENKINS-18116 Noting merge of #1260. Compare: https://github.com/jenkinsci/jenkins/compare/3f8fc4e2ec5b...f56a3bdae5ba

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3430
          [JENKINS-17374 JENKINS-18116] Don't set gzip header for error (Revision 0a241aafdbdf3ad15d34efa3077658c5770b9195)
          JENKINS-17374 JENKINS-18116 Noting merge of #1260. (Revision f56a3bdae5baa68a7427efdface0a04028e7d010)

          Result = SUCCESS
          daniel-beck : 0a241aafdbdf3ad15d34efa3077658c5770b9195
          Files :

          • core/src/main/java/hudson/model/Api.java

          Jesse Glick : f56a3bdae5baa68a7427efdface0a04028e7d010
          Files :

          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #3430 [JENKINS-17374 JENKINS-18116] Don't set gzip header for error (Revision 0a241aafdbdf3ad15d34efa3077658c5770b9195) JENKINS-17374 JENKINS-18116 Noting merge of #1260. (Revision f56a3bdae5baa68a7427efdface0a04028e7d010) Result = SUCCESS daniel-beck : 0a241aafdbdf3ad15d34efa3077658c5770b9195 Files : core/src/main/java/hudson/model/Api.java Jesse Glick : f56a3bdae5baa68a7427efdface0a04028e7d010 Files : changelog.html

          Daniel Beck added a comment -

          Correction: The 2014 commits mentioned above are for JENKINS-17347, sorry about that typo.

          Daniel Beck added a comment - Correction: The 2014 commits mentioned above are for JENKINS-17347 , sorry about that typo.

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/model/Api.java
          http://jenkins-ci.org/commit/jenkins/58e6c7ba4d7fafc9dcfd349476876e2876b86d5b
          Log:
          [JENKINS-17374 JENKINS-18116] Don't set gzip header for error

          (cherry picked from commit 0a241aafdbdf3ad15d34efa3077658c5770b9195)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/model/Api.java http://jenkins-ci.org/commit/jenkins/58e6c7ba4d7fafc9dcfd349476876e2876b86d5b Log: [JENKINS-17374 JENKINS-18116] Don't set gzip header for error (cherry picked from commit 0a241aafdbdf3ad15d34efa3077658c5770b9195)

            ndeloof Nicolas De Loof
            simedw Simon Edwardsson
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: