Fix #1038 - Do not register duplicated AuthProviders SyntheticBeans #1046
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.
Many thanks for submitting your Pull Request ❤️!
Fixes #1038
Somehow Jandex is returning duplicated
*AuthenticationMarkersannotations from the generatedCompositeAuthenticationProviderclasses:In the reproducer provided in #1038, the class is being generated correctly, but during the build process, Jandex is returning duplicate annotations.
I ran out of time to debug more, so now the lists are being filtered to return only once, despite Jandex holding two instances of the same annotation.
@pefernan @fjtirado, this is a critical bug that should be fixed in Kogito by upgrading this library once we release a patch with this fix.
I've changed the name of our
CompositeAuthenticationProvidertoBaseCompositeAuthenticationProviderso as not to be confused with the generatedCompositeAuthenticationProviderin the target project.Please make sure that your PR meets the following requirements:
[0.9.x] SubjectHow to backport a pull request to a different branch?
In order to automatically create a backporting pull request please add one or more labels having the following format
backport-<branch-name>, where<branch-name>is the name of the branch where the pull request must be backported to (e.g.,backport-quarkus2to backport the original PR to thequarkus2branch).Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.
If something goes wrong, the author will be notified and at this point a manual backporting is needed.