Summary
On editing a restricted parent category or trying to add a new subcategory to a parent category, server returns “422: Unprocessable Entity”
Environment
-
Currently v2.3.0.beta7 +7 but problem first noticed several weeks back after being told there was a major update (which may have needed to be installed via command line and not via web interface?)
-
CentOS Linux release 7.6.1810
Discussion
This may be related to Unable to set up permissions on parent/subcategory and it’s definitely popped up fairly recently. As described in that post, I have a top-level category that is set for a group to see only. It’s really a container for the subcategories. Unlike their setup, my see
group isn’t everyone
. It’s a specific group that encompasses all the members of the subcategory groups (who can see, reply, and create).
Unless I set the parent container now to include everyone see
, if I try to add a subcategory to the parent or edit something about the parent, I inevitably will get a 422: Unprocessable Entity
. If I add everyone see
into the parent category, it suddenly works.
I don’t have everyone see
as a permission because sign-in is managed by OAUTH via another product. Anyone who can sign-in there should not be able to see anything on my Discourse unless they’re in a specific group, so I don’t use everyone
almost anywhere.
I suspect I can add everyone see
to the parent category to make changes/add new subcategories, and then remove it when I’m done. I’ll try testing that. In any case, the error message (which I also see pop up at other times) is particularly uninformative and the logs didn’t seem to show anything obvious I could see.