Question:
15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- Failed to upload code location: xxx/bom 15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- Reason: Request failed authorization [HTTP Error]: There was a problem trying to POST https://xxx.com/api/scan/data/, response was 403 Forbidden. 15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- An error occurred uploading a bdio file. 15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- There was a problem: An error occurred uploading a bdio file. 15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- Detect run failed: There was a problem: An error occurred uploading a bdio file. 15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- There was a problem: An error occurred uploading a bdio file.
ROOT CAUSE:
The project-owner is not a role in Blackduck, but an external reference to a project.
SOLUTION:
SOLUTION:
Found that this is due to the user/project roles assigned to the user.
User had Project Code Scanner assigned under the specific project but this role does not allow you to create new projects (only project versions).
User must have Global Code Scanner assigned in order to create new projects within Black Duck while scanning.
OR
User can have Project Creator role assigned but needs to be assigned to the specific project in order to run scans against the new project.
OR
Ensure if user is already part of a group that has the correct above persmissions they are not running the following property as will also give 403 , because group already exists: ‘ detect.project.user.groups=blackduck.xxxx ‘ – Removing property will allow scan to run.
OR
To upload the scans using Detect, Global Code Scanner role (global scope) or Project Code Scanner role (project scope) needed to be set to the user, from who the token was generated and used in Detect CLI.
Please refer to the attached screenshot and role matrix doc part in Blackduck user guide (/doc/Welcome.htm#users_and_groups/rolematrix.htm)
NOTE:
Please ensure the user is the BOM manager of the project this will also prevent failure.
Product
Black Duck/Black Duck Hub
Read More:
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- The request was rejected because the URL contained a potentially malicious String “;” [How to Solve]
- [Solved] the request was rejected because its size (11579386) exceeds the configured maximum (10485760)
- [Solved] Eslint error: /xxx/components/xxx import should occur after import of /xxx/utils/xxx
- [Solved] Response Export error on submit request on future invoke, java.lang.OutOfMemoryError: Java heap space
- There was an unexpected error (type=Method Not Allowed, status=405). Request
- [Solved] validateRenderPassDescriptor:xxx: failed assertion XXX
- [Solved] Error response from daemon: OCI runtime create failed: container with id exists: xxzxxxxxxxx
- [Solved] Android Develop Error: xxx does not have a NavController set on xxx
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- [Solved] Could not resolve placeholder ‘XXX‘ in value “${XXX}“
- [Solved] docker: Error response from daemon: driver failed programming external connectivity on endpoint mysql-test …
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- Current request is not a multipart request [How to Solve]
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.
- [Solved] Docker: Error response from daemon: driver failed programming external connectivity on endpoint mysq
- How to Solve Error: failed to load response
- [Solved] Failed to load response data: no data found for resource with given identifier
- [Solved] kernel: nvme nvme0: I/O xxx QID xxx timeout, aborting