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

Error while retrieving list of v2 roles with corrupted audience information #17395

Closed
PasinduYeshan opened this issue Oct 30, 2023 · 0 comments
Closed

Comments

@PasinduYeshan
Copy link
Contributor

Describe the issue:
When attempting to retrieve a list of v2 roles, an error occurs when encountering roles with corrupted or invalid audience information. For example, in scenarios where an application was deleted without its associated roles being properly handled, the roles-related table may contain audience references associated with the deleted application.

 ERROR {org.wso2.carbon.tomcat.ext.valves.CompositeValve} - Could not handle request: /t/carbon.super/scim2/v2/Roles java.lang.NullPointerException
	at org.wso2.carbon.identity.application.mgt.listener.DefaultRoleManagementListener.getApplicationName(DefaultRoleManagementListener.java:534)
	at org.wso2.carbon.identity.application.mgt.listener.DefaultRoleManagementListener.postGetRoles(DefaultRoleManagementListener.java:117)
	at org.wso2.carbon.identity.role.v2.mgt.core.RoleManagementServiceImpl.getRoles(RoleManagementServiceImpl.java:152)
	at org.wso2.carbon.identity.scim2.common.impl.SCIMRoleManagerV2.listRoles(SCIMRoleManagerV2.java:499)
	at org.wso2.carbon.identity.scim2.common.impl.SCIMRoleManagerV2.listRolesWithGET(SCIMRoleManagerV2.java:299)
	at org.wso2.charon3.core.protocol.endpoints.RoleResourceV2Manager.listWithGETRole(RoleResourceV2Manager.java:175)
	at org.wso2.carbon.identity.scim2.provider.resources.RoleResourceV2.getRoles(RoleResourceV2.java:165)

How to reproduce:

Expected behavior:

  • When retrieving roles, roles without an audience or roles with corrupted or null audience values should be skipped.

Environment information (Please complete the following information; remove any unnecessary fields) :

  • Product Version: [e.g., IS 5.10.0, IS 5.9.0]
  • OS: [e.g., Windows, Linux, Mac]
  • Database: [e.g., MySQL, H2]
  • Userstore: [e.g., LDAP, JDBC]

Optional Fields

Related issues:

Suggested labels:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants