Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12871

Repository trigger when changes are committed does not work if anonymous access has been revoked

      As per the issue description, the issue can be replicated when anonymous access has been revoked from both global and plan level permissions. After that, any triggers will fail and trying to do a manual test by running the wget command fail with 302 code as below:

      C:\Program Files (x86)\GnuWin32\bin>wget --timeout=10 -t1 http://localhost:10440/bamboo44/updateAndBuild.action?buildKey=TESTA-TSTA
      SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
      syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
      --2013-02-22 18:25:04--  http://localhost:10440/bamboo44/updateAndBuild.action?buildKey=TESTA-TSTA
      Resolving localhost... 127.0.0.1, ::1
      Connecting to localhost|127.0.0.1|:10440... connected.
      HTTP request sent, awaiting response... 302 Found
      Location: http://localhost:10440/bamboo44/userlogin!default.action;jsessionid=191ud808wgqik101mmdsvq2yw4?os_destination=%2FupdateAndBuild.action%3FbuildKey%3DTESTA-TSTA [following]
      --2013-02-22 18:25:04--  http://localhost:10440/bamboo44/userlogin!default.action;jsessionid=191ud808wgqik101mmdsvq2yw4?os_destination=%2FupdateAndBuild.action%3FbuildKey%3DTESTA-TSTA
      Reusing existing connection to localhost:10440.
      HTTP request sent, awaiting response... 200 OK
      Length: unspecified [text/html]
      Saving to: `userlogin!default.action;jsessionid=191ud808wgqik101mmdsvq2yw4@os_destination=%2FupdateAndBuild.action%3FbuildKey=TESTA-TSTA'
      
          [ <=>                                                                                                                                                           ] 10,073      --.-K/s   in 0s
      
      2013-02-22 18:25:04 (422 MB/s) - `userlogin!default.action;jsessionid=191ud808wgqik101mmdsvq2yw4@os_destination=%2FupdateAndBuild.action%3FbuildKey=TESTA-TSTA' saved [10073]
      

      This is happening on Bamboo 4.4.x and is not replicable on older versions such as 4.3.x

      Workaround
      Append authentication credentials to the repository scripts os_authtype=basic&os_username=your_username&os_password=blah. Therefore something like this should work wget --timeout=10 -t1 http://localhost:10440/bamboo44/updateAndBuild.action?buildKey=TESTA-TSTA?os_authtype=basic&os_username=your_username&os_password=blah

            [BAM-12871] Repository trigger when changes are committed does not work if anonymous access has been revoked

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1435801 ] New: JAC Bug Workflow v3 [ 3385771 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Alexey Chystoprudov made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            Alexey Chystoprudov made changes -
            Fix Version/s New: 5.10.1 [ 60462 ]
            Status Original: Open [ 1 ] New: In Progress [ 3 ]

            REST endpoint should be used to trigger change detection:

            curl -X POST -H "Content-Type: application/json" https://BAMBOO_URL/rest/triggers/latest/remote/changeDetection?planKey=TEST-TEST 

            Alexey Chystoprudov added a comment - REST endpoint should be used to trigger change detection: curl -X POST -H "Content-Type: application/json" https: //BAMBOO_URL/ rest /triggers/latest/remote/changeDetection?planKey=TEST-TEST
            Alexey Chystoprudov made changes -
            Link New: This issue relates to BAM-19874 [ BAM-19874 ]
            Alexey Chystoprudov made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 374118 ]
            jonah (Inactive) made changes -
            Symptom Severity New: Major [ 14431 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1407784 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1435801 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 607141 ] New: Bamboo Workflow 2016 v1 [ 1407784 ]

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: