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

DataProtection exception #6

Open
sebastienros opened this issue May 29, 2024 · 0 comments
Open

DataProtection exception #6

sebastienros opened this issue May 29, 2024 · 0 comments

Comments

@sebastienros
Copy link
Member

Maybe it should account for this exception, even if it logs it. And also report a meaningful error to the user (your link has expired ...)

2024-05-29 08:40:29.7115|Default|00-5134c64191ee45f24c59555519159255-31e7c658756f07d8-00||OrchardCore.Try.Controllers.HomeController|ERROR|Error decrypting the string System.Security.Cryptography.CryptographicException: The payload expired at 5/25/2024 8:23:23 AM +00:00.
   at Microsoft.AspNetCore.DataProtection.TimeLimitedDataProtector.UnprotectCore(Byte[] protectedData, DateTimeOffset now, DateTimeOffset& expiration)
   at Microsoft.AspNetCore.DataProtection.TimeLimitedDataProtector.Unprotect(Byte[] protectedData, DateTimeOffset& expiration)
   at Microsoft.AspNetCore.DataProtection.DataProtectionAdvancedExtensions.TimeLimitedWrappingProtector.Unprotect(Byte[] protectedData)
   at Microsoft.AspNetCore.DataProtection.DataProtectionCommonExtensions.Unprotect(IDataProtector protector, String protectedData)
   at OrchardCore.Try.Controllers.HomeController.Decrypt(String encryptedString) in D:\a\1\s\OrchardCore.Try\Controllers\HomeController.cs:line 209    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant