Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what
Jira: https://issues.redhat.com/browse/THREESCALE-8707
The source issue was that applications were created populating both
user_key
andapplication_id
regardless of the product's authentication mode (backend_version
attr). When the auth mode isuser_key
(backend_version
attr equals'1'
), theapplication_id
was also populated. After user key regeneration, the user_key changed but not theapplication_id
. When the toolbox asked for an application with user_keyapplication_parameter10
,3scale returned not found as expected. Then the toolbox asked for an application with application _idapplication_parameter10
which existed, but since the auth mode isuser_key
3scale still returned not found. In the last step, when the toolbox tried to create a new app with application_idapplication_parameter10
, 3scale complained saying it is already used and the command failed. This is because the regenerated application, somehow (internal stuff), still kept application_id asapplication_parameter10
, hence failing the creation step.The fix consists on populating only required fields. No more.
verification steps
application_parameter10
as defined in the first step:The following error should be returned:
application_parameter10
user keyThis command should not fail and you should end up having two applicatins with the same name and descriptions, but different user key.