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

fix(jans-config-api): incorrect /license/details reponse (admin-ui) #6418

Closed
duttarnab opened this issue Oct 30, 2023 · 0 comments · Fixed by #6419
Closed

fix(jans-config-api): incorrect /license/details reponse (admin-ui) #6418

duttarnab opened this issue Oct 30, 2023 · 0 comments · Fixed by #6419
Assignees
Labels
comp-jans-config-api Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality

Comments

@duttarnab
Copy link
Contributor

duttarnab commented Oct 30, 2023

Parent issue# GluuFederation/flex#1411

  • For active license the endpoint is returning inactive.
  • Getting the following error when displaying license details when company_name, email, first_name or last_name associated with the license is null.
29-10 07:41:41.395 INFO  [qtp366004251-15] [ca.plugin.adminui.service.license.LicenseDetailsService] (LicenseDetailsService.java:418) - license details request status code: 200
29-10 07:41:41.397 ERROR [qtp366004251-15] [ca.plugin.adminui.service.license.LicenseDetailsService] (LicenseDetailsService.java:443) - Error in fetching license details. Check logs for further details.
java.lang.ClassCastException: class jakarta.json.JsonValueImpl cannot be cast to class jakarta.json.JsonString (jakarta.json.JsonValueImpl and jakarta.json.JsonString are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @46cdf8bd)
        at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(JsonObjectBuilderImpl.java:254) ~[jakarta.json-2.0.1.jar:2.0.1]
        at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getString(JsonObjectBuilderImpl.java:259) ~[jakarta.json-2.0.1.jar:2.0.1]
        at io.jans.ca.plugin.adminui.service.license.LicenseDetailsService.getLicenseDetails(LicenseDetailsService.java:430) ~[gluu-flex-admin-ui-plugin.jar:?]
        at io.jans.ca.plugin.adminui.rest.license.LicenseResource.details(LicenseResource.java:217) ~[gluu-flex-admin-ui-plugin.jar:?]
        at io.jans.ca.plugin.adminui.rest.license.LicenseResource$Proxy$_$$_WeldSubclass.details(Unknown Source) ~[gluu-flex-admin-ui-plugin.jar:?]
        at io.jans.ca.plugin.adminui.rest.license.LicenseResource$Proxy$_$$_WeldClientProxy.details(Unknown Source) ~[gluu-flex-admin-ui-plugin.jar:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]
        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434) ~[resteasy-core-6.0.3.Final.jar:6.0.3.Final]

@duttarnab duttarnab assigned moabu and duttarnab and unassigned moabu Oct 30, 2023
@duttarnab duttarnab added comp-jans-config-api Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality labels Oct 30, 2023
duttarnab added a commit that referenced this issue Oct 30, 2023
Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com>
yuriyz pushed a commit that referenced this issue Oct 30, 2023
Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com>
devrimyatar pushed a commit that referenced this issue Dec 30, 2023
Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com>
Signed-off-by: Mustafa Baser <mbaser@mail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-config-api Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants