Skip to content

AntiforgeryValidationException log message severity #63446

@SharePointRadi

Description

@SharePointRadi

Summary

AntiforgeryValidationException log messages are Debug level.

We have an expected behavior of anti-forgery validation errors that come up after cookie expiration. It was very hard to figure it out in a Production environment. File uploading was failing at some point in time (something expires, doesn't matter what), while in dev setups it always works because the expiry times aren't reached.

Image

My suggestion it to reconsider the log level severity. Maybe Information or Warning level.

Motivation and goals

Anti-forgery is also a security concern, so I somewhat feel that Debug level is too low. If it was information level, we would see it much quicker in a production setup, where increasing logs to Debug level is leaning towards a last resort.

No AI model could solve the issue that we had.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions