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-fido2): error in fido2 #10752

Closed
manojs1978 opened this issue Jan 28, 2025 · 2 comments · Fixed by #10801
Closed

fix(jans-fido2): error in fido2 #10752

manojs1978 opened this issue Jan 28, 2025 · 2 comments · Fixed by #10801
Assignees
Labels
comp-jans-fido2 Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Milestone

Comments

@manojs1978
Copy link
Contributor

Describe the bug
error in fido

To Reproduce
Steps to reproduce the behavior:

  1. install nightly build
  2. check fido log for error

Expected behavior
shoudl not get error

Screenshots

Image

Desktop (please complete the following information):

  • OS: suse 15sp5
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
  • DB pgsql
  • jans - nightly

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

2025-01-28 07:21:58.213:WARN :oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@6f46426d{jans-fido2.xml,/jans-fido2,file:///opt/jetty-11.0/temp/jetty-localhost-8073-jans-fido2_war-_jans-fido2-any-9168202493967060359/webapp/,UNAVAILABLE}{/opt/jans/jetty/jans-fido2/webapps/jans-fido2.war}
io.jans.fido2.exception.Fido2RuntimeException: Error when parsing TOC JWT: Invalid serialized unsecured/JWS/JWE object: Missing part delimiters
        at io.jans.fido2.service.mds.TocService.readEntriesFromTocJWT(TocService.java:423)
        at io.jans.fido2.service.mds.TocService.parseTOC(TocService.java:175)
        at io.jans.fido2.service.mds.TocService.parseTOCs(TocService.java:157)
        at io.jans.fido2.service.mds.TocService.refresh(TocService.java:119)
        at io.jans.fido2.service.mds.TocService.init(TocService.java:110)
        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:569)
        at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
        at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85)
        at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:168)
        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330)
        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308)
        at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286)
        at jakarta.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:125)
        at org.jboss.weld.util.Observers.notify(Observers.java:166)
        at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:285)
        at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
        at org.jboss.weld.event.EventImpl.fire(EventImpl.java:96)
        at io.jans.fido2.service.app.AppInitializer.applicationInitialized(AppInitializer.java:145)
        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)

fido2.log
2025_01_28.jetty.log

@mo-auto mo-auto added comp-jans-fido2 Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality labels Jan 28, 2025
@maduvena maduvena assigned devrimyatar and unassigned imran-ishaq Feb 5, 2025
@maduvena
Copy link
Contributor

maduvena commented Feb 5, 2025

Hi Mustafa
The database entries for the documents should look like this:

Image

@maduvena
Copy link
Contributor

maduvena commented Feb 5, 2025

It currently looks like this, note the jansFilePath

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-fido2 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.

6 participants