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

feat(jans-auth-server): Unnecessary "session not found" error messages during refresh token flow #4785

Closed
yuriyz opened this issue May 3, 2023 · 0 comments · Fixed by #4786
Assignees
Labels
comp-jans-auth-server Component affected by issue or PR kind-enhancement Issue or PR is an enhancement to an existing functionality kind-feature Issue or PR is a new feature request
Milestone

Comments

@yuriyz
Copy link
Contributor

yuriyz commented May 3, 2023

Description

We should avoid unnecessary error messages during refresh token flow

(SessionIdService.java:793) - Failed to get session by dn: oxId=ca2a0a20-bef5-468f-9708-759ce02919ff,ou=sessions,o=gluu
org.gluu.persist.exception.EntryPersistenceException: Failed to find entry: oxId=ca2a0a20-bef5-468f-9708-759ce02919ff,ou=sessions,o=gluu
        at org.gluu.orm.couchbase.impl.CouchbaseEntryManager.find(CouchbaseEntryManager.java:376) ~[gluu-orm-couchbase-4.4.1.Final.jar:?]
        at org.gluu.persist.impl.BaseEntryManager.find(BaseEntryManager.java:714) ~[gluu-orm-core-4.4.1.Final.jar:?]
        at org.gluu.persist.impl.BaseEntryManager.find(BaseEntryManager.java:593) ~[gluu-orm-core-4.4.1.Final.jar:?]
        at org.gluu.persist.impl.BaseEntryManager.find(BaseEntryManager.java:580) ~[gluu-orm-core-4.4.1.Final.jar:?]
        at jdk.internal.reflect.GeneratedMethodAccessor82.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38) ~[weld-core-impl-3.1.9.Final.jar:3.1.9.Final]
        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106) ~[weld-core-impl-3.1.9.Final.jar:3.1.9.Final]
        at org.gluu.persist.PersistenceEntryManager$EntityManager$1948487569$Proxy$_$$_WeldClientProxy.find(Unknown Source) ~[gluu-orm-core-4.4.1.Final.jar:?]
        at org.gluu.oxauth.service.SessionIdService.getSessionByDn(SessionIdService.java:787) ~[classes/:?]
        at org.gluu.oxauth.service.SessionIdService.getSessionByDn(SessionIdService.java:751) ~[classes/:?]
        at org.gluu.oxauth.service.SessionIdService$Proxy$_$$_WeldClientProxy.getSessionByDn(Unknown Source) ~[classes/:?]
        at org.gluu.oxauth.model.token.IdTokenFactory.fillClaims(IdTokenFactory.java:126) ~[classes/:?]
        at org.gluu.oxauth.model.token.IdTokenFactory.createJwr(IdTokenFactory.java:270) ~[classes/:?]
        at org.gluu.oxauth.model.token.IdTokenFactory$Proxy$_$$_WeldClientProxy.createJwr(Unknown Source) ~[classes/:?]
        at org.gluu.oxauth.model.common.AuthorizationGrant.createIdToken(AuthorizationGrant.java:102) ~[classes/:?]
        at org.gluu.oxauth.model.common.AuthorizationGrant.createIdToken(AuthorizationGrant.java:309) ~[classes/:?]

oxauth counterpart: GluuFederation/oxAuth#1824

@yuriyz yuriyz added kind-enhancement Issue or PR is an enhancement to an existing functionality comp-jans-auth-server Component affected by issue or PR labels May 3, 2023
@yuriyz yuriyz added this to the 1.0.13 milestone May 3, 2023
@yuriyz yuriyz self-assigned this May 3, 2023
@mo-auto mo-auto added the kind-feature Issue or PR is a new feature request label May 3, 2023
yuriyz added a commit that referenced this issue May 3, 2023
yuriyz added a commit that referenced this issue May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-auth-server Component affected by issue or PR kind-enhancement Issue or PR is an enhancement to an existing functionality kind-feature Issue or PR is a new feature request
Projects
None yet
2 participants