Skip to content

DataProtection exception #6

@sebastienros

Description

@sebastienros

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    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions