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

Unexpected value 'v0.6_legacy_session' error when getting user sessions after migration #2398

Closed
3 of 6 tasks
LeonidChistov opened this issue Apr 14, 2022 · 0 comments · Fixed by #2400
Closed
3 of 6 tasks
Labels
bug Something is not working.

Comments

@LeonidChistov
Copy link

Preflight checklist

Describe the bug

After migration from 0.7 to 0.9 version of Kratos, when attempting to call new API /admin/identities/{id}/sessions method (for the user who had at least one session in the past) via Java Kratos API client, following exception occurs:

java.lang.IllegalArgumentException: Unexpected value 'v0.6_legacy_session'
	at sh.ory.kratos.model.SessionAuthenticationMethod$MethodEnum.fromValue(SessionAuthenticationMethod.java:81) ~[kratos-client-0.9.0-alpha.3.jar!/:na]

It can be observed, that enum in SDK code does not indeed have required value:

 public enum MethodEnum {
    LINK_RECOVERY("link_recovery"),
    
    PASSWORD("password"),
    
    TOTP("totp"),
    
    OIDC("oidc"),
    
    WEBAUTHN("webauthn"),
    
    LOOKUP_SECRET("lookup_secret");

Reproducing the bug

  1. Deploy a custom platform with Kratos 0.7 integrated.
  2. Create a user and login.
  3. Migrate platform to Kratos 0.9 version.
  4. Request user sessions using Java Kratos SDK.

Relevant log output

No response

Relevant configuration

No response

Version

0.9.0

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

@LeonidChistov LeonidChistov added the bug Something is not working. label Apr 14, 2022
aeneasr added a commit that referenced this issue Apr 14, 2022
aeneasr added a commit that referenced this issue Apr 14, 2022
peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this issue Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant