-
Notifications
You must be signed in to change notification settings - Fork 378
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 issue in DCR Additional attribute filter not working as OSGI #2689
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2689 +/- ##
============================================
- Coverage 55.65% 55.08% -0.57%
- Complexity 8524 8584 +60
============================================
Files 645 645
Lines 49283 50212 +929
Branches 9535 10070 +535
============================================
+ Hits 27429 27661 +232
- Misses 17960 18550 +590
- Partials 3894 4001 +107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
PR builder started |
@@ -120,18 +117,8 @@ public Application getApplication(String clientId) throws DCRMException { | |||
Application application = buildResponse(consumerAppDTO, tenantDomain); | |||
application.setExtAllowedAudience(serviceProvider.getAssociatedRolesConfig().getAllowedAudience()); | |||
|
|||
String attributeFilterName = IdentityUtil.getProperty(OAuthConstants.ADDITIONAL_ATTRIBUTE_FILTER); |
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.
why are we removing the identity.xml file reading? Isn't there any case where customers have the customization which is not an OSGI service? In that case how can they register it?
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.
Even though the config is there, it is not working in the latest update levels as well. Hence, it won't be working for customers as well.
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.
Was this working in the default 7.0.0 pack? Don't we need to do the fix in a way that should work with non-osgi and osgi?
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.
This was added as a patch for IS 7.0. And was not working when the extension was from another bundle. Hence I dont think there is an issue
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.
Ok does that meant this has never worked before? Even when it was added initially?
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.
Yes thats correct. But if the extension is in the same module it works.
please mention what happen if the customer already has this config without osgi lib
PR builder completed |
PR builder started |
PR builder completed |
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.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/12966837826
Even though the config is there, it is not working in the latest update levels as well. Hence it won't be working for customers as well. SO removing the config won't be an issue. |
Proposed changes in this pull request
This PR fix issue in DCR Additional attribute filter added via [1] not working as OSGI
Related issue : wso2/product-is#22404
[1] #2506
When should this PR be merged
[Please describe any preconditions that need to be addressed before we
can merge this pull request.]
Follow up actions
[List any possible follow-up actions here; for instance, testing data
migrations, software that we need to install on staging and production
environments.]
Checklist (for reviewing)
General
Functionality
Code
Tests
Security
Documentation