ietf-tools / www

A customized CMS for the IETF website
BSD 3-Clause "New" or "Revised" License
26 stars 43 forks source link

Admin lets editors try to attach blog posts to places that blog posts don't belong. #271

Closed rjsparks closed 4 months ago

rjsparks commented 1 year ago

This results in 500s until the page is rehomed. Example:

[Django] ERROR (EXTERNAL IP): Internal Server Error: /blog/ietf116-new-topics/next-steps-towards-a-net-zero-ietf/

The editing page should object if a blog page is placed anywhere other than /blog.

rjsparks commented 1 year ago

The 500 is usually some variation of

Exception Type: AttributeError at /blog/ietf116-new-topics/next-steps-towards-a-net-zero-ietf/
Exception Value: 'BlogPage' object has no attribute 'reverse_subpage'