• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • core
    • None
    • Platform: All, OS: Linux

      When trying to setup automatic builds based on commits in CVS using the
      automatic build URL of
      http://YOURHOST/hudson/job/PROJECTNAME/build?token=YOUR_TOKEN_HERE

      This returns a 404 error unless you use it in the browser that your already
      logged into hudson (presumably your Session overrides the need for the token).

      The security model I am using is the matrix based system with the users and
      passwords living in LDAP (openLDAP in this case).

          [JENKINS-4748] 404 Error thrown when using automatic builds

          Do you mean 401 unauthorized? 404 is not found.

          Kohsuke Kawaguchi added a comment - Do you mean 401 unauthorized? 404 is not found.

          scott07 added a comment -

          Interestingly no, its actually a 404 error.

          Output of wget:

          scott@sconew:~> wget
          http://hudson.worldsofwar.net:8282/job/WoWIIIAPI/build?token=123
          -2009-11-03 08:15:21-
          http://hudson.worldsofwar.net:8282/job/WoWIIIAPI/build?token=123
          Resolving hudson.worldsofwar.net... 172.16.1.11
          Connecting to hudson.worldsofwar.net|172.16.1.11|:8282... connected.
          HTTP request sent, awaiting response... 404 Not Found
          2009-11-03 08:15:21 ERROR 404: Not Found.

          As I say if i copy the URL exactly in when using firefox (and being logged in
          with firefox too) it starts a build.

          scott07 added a comment - Interestingly no, its actually a 404 error. Output of wget: scott@sconew:~> wget http://hudson.worldsofwar.net:8282/job/WoWIIIAPI/build?token=123 - 2009-11-03 08:15:21 - http://hudson.worldsofwar.net:8282/job/WoWIIIAPI/build?token=123 Resolving hudson.worldsofwar.net... 172.16.1.11 Connecting to hudson.worldsofwar.net|172.16.1.11|:8282... connected. HTTP request sent, awaiting response... 404 Not Found 2009-11-03 08:15:21 ERROR 404: Not Found. As I say if i copy the URL exactly in when using firefox (and being logged in with firefox too) it starts a build.

          Alan Harder added a comment -

          401 vs 404 may be something to do with tomcat.
          Use a user/password with wget to rather than build token to trigger a build if
          you Hudson doesn't have anonymous read access.

              • This issue has been marked as a duplicate of 1555 ***

          Alan Harder added a comment - 401 vs 404 may be something to do with tomcat. Use a user/password with wget to rather than build token to trigger a build if you Hudson doesn't have anonymous read access. This issue has been marked as a duplicate of 1555 ***

            Unassigned Unassigned
            scott07 scott07
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: