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

Getting Error when List Users from MI Dashboard #2215

Closed
isurul28 opened this issue Oct 16, 2023 · 0 comments · Fixed by wso2/product-mi-tooling#363
Closed

Getting Error when List Users from MI Dashboard #2215

isurul28 opened this issue Oct 16, 2023 · 0 comments · Fixed by wso2/product-mi-tooling#363

Comments

@isurul28
Copy link

isurul28 commented Oct 16, 2023

Description

We have configured the Primary user store with LDAP in MI 4.2.0.37 when we connect to the MI dashboard 4.2.0 latest version we are unable to list the users from the MI dashboard. We are getting the below error in the UI of the MI dashboard.

Screenshot from 2023-10-16 07-34-50

Also in the WSO2 MI server side, we could see the below error

[2023-10-16 07:34:45,856] ERROR {Utils} - Error initializing the user store. Please try again later org.wso2.micro.integrator.security.user.core.UserStoreException: Invalid character sequence entered for user serch. Please enter valid sequence. at org.wso2.micro.integrator.security.user.core.ldap.ReadOnlyLDAPUserStoreManager.doListUsers(ReadOnlyLDAPUserStoreManager.java:929) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager.listUsers(AbstractUserStoreManager.java:4114) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:175) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:172) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager.listUsers(AbstractUserStoreManager.java:4080) at org.wso2.micro.integrator.management.apis.UsersResource.getUserResults(UsersResource.java:127) at org.wso2.micro.integrator.management.apis.UsersResource.handleGet(UsersResource.java:156) at org.wso2.micro.integrator.management.apis.UsersResource.invoke(UsersResource.java:91) at org.wso2.micro.integrator.management.apis.ApiResourceAdapter.invoke(ApiResourceAdapter.java:55) at org.wso2.carbon.inbound.endpoint.internal.http.api.InternalAPIDispatcher.dispatch(InternalAPIDispatcher.java:87) at org.wso2.carbon.inbound.endpoint.protocol.http.InboundHttpServerWorker.run(InboundHttpServerWorker.java:114) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)

When we use a Vanilla MI dashboard we are not getting the above error and we are able to list the user without the error.

Steps to Reproduce

Steps to Reproduce:

Get an Updated MI 4.2.0 pack and connect the primary user store with the LDAP server [1]
Get a Vanilla MI dashboard and connect to the MI server and list the user. You can see the users are getting listed
Now update the MI dashboard pack to the latest version and try the use case. You will face the above error
[1].https://apim.docs.wso2.com/en/latest/install-and-setup/setup/mi-setup/user_stores/setting_up_a_userstore/

Affected Component

MIDashboard

Version

4.2.0.9

Environment Details (with versions)

No response

Relevant Log Output

[2023-10-16 07:34:45,856] ERROR {Utils} - Error initializing the user store. Please try again later org.wso2.micro.integrator.security.user.core.UserStoreException: Invalid character sequence entered for user serch. Please enter valid sequence. at org.wso2.micro.integrator.security.user.core.ldap.ReadOnlyLDAPUserStoreManager.doListUsers(ReadOnlyLDAPUserStoreManager.java:929) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager.listUsers(AbstractUserStoreManager.java:4114) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:175) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:172) at org.wso2.micro.integrator.security.user.core.common.AbstractUserStoreManager.listUsers(AbstractUserStoreManager.java:4080) at org.wso2.micro.integrator.management.apis.UsersResource.getUserResults(UsersResource.java:127) at org.wso2.micro.integrator.management.apis.UsersResource.handleGet(UsersResource.java:156) at org.wso2.micro.integrator.management.apis.UsersResource.invoke(UsersResource.java:91) at org.wso2.micro.integrator.management.apis.ApiResourceAdapter.invoke(ApiResourceAdapter.java:55) at org.wso2.carbon.inbound.endpoint.internal.http.api.InternalAPIDispatcher.dispatch(InternalAPIDispatcher.java:87) at org.wso2.carbon.inbound.endpoint.protocol.http.InboundHttpServerWorker.run(InboundHttpServerWorker.java:114) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)

Related Issues

No response

Suggested Labels

No response

malakaganga added a commit to malakaganga/product-mi-tooling that referenced this issue Oct 25, 2023
manuranga pushed a commit to manuranga/integration-control-plane that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant