Tonitzpp opened a new pull request, #13022: URL: https://github.com/apache/cloudstack/pull/13022
### Description Currently, when using the `listProjectRoles` API, passing the `projectid` parameter of a removed project results in an NPE. This PR changes this behavior to return the message `Failed to find project by ID` instead. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [X] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) #### Feature/Enhancement Scale - [ ] Major - [X] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [ ] Minor - [X] Trivial ### Screenshots (if appropriate): <details><summary>Before the changes</summary> <img width="2228" height="152" alt="image" src="https://github.com/user-attachments/assets/4dca6fca-62e5-45ae-9282-d2b80e2be9d2" /> </details> <details><summary>After the changes</summary> <img width="1716" height="119" alt="image" src="https://github.com/user-attachments/assets/007a5c30-ef02-4a00-876e-1d25c3c3f8be" /> </details> ### How Has This Been Tested? To perform the tests, a test project was created along with a project role. The project was deleted and the `listProjectRoles` API was called passing the ID of the project role. This showed the new message. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
