mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.17k stars 913 forks source link

Trademarks page is 500ing #14692

Closed stevejalim closed 2 months ago

stevejalim commented 2 months ago

https://mozilla.sentry.io/issues/5474372266

'django.core.handlers.wsgi.WSGIRequest object' has no attribute 'user'
Screenshot 2024-06-17 at 21 22 44

Two things here

1) /en-US/about/legal/defend-mozilla-trademarks/ is 500ing because there's no user attribute on the HttpRequest (and we shouldn't expect one because most of Bedrock should be accessed without sessions - only CMS/editing pods will have sessions)

2) Why are we getting a CSRF warning there anyway?

stevejalim commented 2 months ago

Frustratingly, I can't repro this locally, or on prod (where I was able to send a test report). But at least I was able to send a report on prod

stevejalim commented 2 months ago

Notes:

stevejalim commented 2 months ago

Can't reproduce, but it looks like the actual CSRF protection is indeed protecting, albeit with a non-ideal message