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

Permission issues when adding a new job to plan branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.2.4
    • 7.2.3
    • Permissions
    • None

      Issue Summary

      Users with admin permissions to the plan can't access jobs (config, logs and artifacts) in plan branches if those jobs do not exist in master.

      Steps to Reproduce

      1. Set up a specs repo with yaml or java specs (enable auto branch creation) with 1 stage and 1 job. Give admin privileges to the plan to any non admin user
      2. Log in as a non admin user, try to access job logs
      3. Create a branch in git repo and in yaml or java specs add an additional job to the stage
      4. Commit and push changes. Wait for the build to complete.
      5. Log in as a non admin user which has access to 1 job only. The job that has been added in branch isn't accessible.

      Expected Results

      User with admin permissions to the plan has access to 

      Actual Results

      Non admin user with admin permissions to the plan does not have access to the job and its logs:

      The below error is thrown in logs:

      2021-03-11 14:43:50,213 ERROR [http-nio-8085-exec-24] [AbstractDownloadStrategy] Access denied for downloads URL /download/PLAN-PLANSPECS0-THIRD/build_logs/PLAN-PLANSPECS0-THIRD-4.log
      
      

      Workaround

      Add the same job(s) to default branch.

              mgardias Marcin Gardias
              c64f33b2bce3 Yevhen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: