-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Change error code from 500 to 501 in case plugin is not available in users license #13344
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
Conversation
Test Results - Preflight, Unit22 309 tests +31 20 555 ✅ +29 6m 20s ⏱️ - 9m 4s Results for commit 27d94db. ± Comparison against base commit 3262ccd. This pull request removes 13 and adds 44 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 2h 40m 38s ⏱️ + 1m 18s Results for commit 27d94db. ± Comparison against base commit 3262ccd. ♻️ This comment has been updated with latest results. |
k-a-il
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this issue 🚀
k-a-il
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation
Change error code from 500 to 501 in case the plugin is not part of the active license agreement and modify the error message to plugin details.
Eg:
localstack.aws.api.core.CommonServiceException: exception while calling cloudtrail.CreateTrail: plugin localstack.aws.provider:cloudtrail:pro is disabled, reason: This feature is not part of the active license agreementshould return 501.Changes
Set status code to
501if when creating the error response in the handler and error message removes plugin details.Tests
This was tested by manually intervening the license activation process in the core repo by not updating, validating and saving the license file.
Related
Fixes FLC-97