Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lack of exception when attempting to update a non-existent role name #537

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

AmshikaH
Copy link
Contributor

@AmshikaH AmshikaH commented Mar 7, 2024

Purpose

Previously, when addressing wso2/product-is#14095, the updateRoleName method's was changed to print a warn log instead of throwing an exception via #435, which was a temporary fix which had not been reverted even after a proper fix was added.

This PR reverts the temporary fix and allows an exception to be thrown instead of a warn log.

With this change, the SOAP API will be able to identify the failure of the operation and return the status as 500 Internal Server Error along with the error message.

Related PRs

Related Issues

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/8182128692

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/8182128692
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/8182128692

ashensw
ashensw previously approved these changes Mar 7, 2024
Sachin-Mamoru
Sachin-Mamoru previously approved these changes Mar 7, 2024
@AmshikaH AmshikaH dismissed stale reviews from Sachin-Mamoru and ashensw via 62b8019 March 12, 2024 02:48
@AfraHussaindeen AfraHussaindeen merged commit c05bd67 into wso2-extensions:master Mar 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants