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

CacheTicketStore.RenewAsync method throws NullReferenceException #15709

Closed
M-Lipin opened this issue Apr 9, 2024 · 0 comments · Fixed by #15711
Closed

CacheTicketStore.RenewAsync method throws NullReferenceException #15709

M-Lipin opened this issue Apr 9, 2024 · 0 comments · Fixed by #15711
Labels
Milestone

Comments

@M-Lipin
Copy link
Contributor

M-Lipin commented Apr 9, 2024

Describe the bug

There is an issue with getting DistributedCache instance in method CacheTicketStore.RenewAync.

To Reproduce

Steps to reproduce the behavior:

  1. Use CMS with using CacheTicketStore to store authentication tickets for some period of time.
  2. Authenticate as some user.
  3. Monitor logs.
  4. See error in logs.

Expected behavior

No error.

Screenshots

Error: {"timestamp":"2024-02-14T08:57:19.9586471+00:00","message":"\"RenewAsync\" failed  for '\"ocauth-ticket-3298bce6-5637-4241-ad2b-1a47a1d9c0d7\"'.","event_id":"91861f3a","level":"Error","exception":"System.NullReferenceException: Object reference not set to an
 instance of an object.\n   at OrchardCore.Users.Authentication.CacheTicketStore.RenewAsync(String key, AuthenticationTicket ticket)","method_name":"RenewAsync","key":"ocauth-ticket-3298bce6-5637-4241-ad2b-1a47a1d9c0d7","source_context":"OrchardCore.Users.Authentication.CacheTicketStore","request_id":"0HN1CHQ0K11B6:0000051B","request_path":"/favicon.ico","connection_id":"0HN1CHQ0K11B6","machine_name":"my-cool-web-cms-core-5b7674d945-zn5xb","environment_user_name":null,"tags":["AUDIT"],"project_name":"my-cool-web","application_name":"my-cool-web-cms-core"} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants