Skip to content

bulk_delete_user_posts REST API issues #37402

@kdmccormick

Description

@kdmccormick

It was originally implemented by:

Issues with the original implementation:

  • It makes user-facing changes but did not go through community product review
  • Documentation incorrectly states that deleted posts are limited to course_id; they actually span across the entire org containing course_id if course_or_org=="org".
  • Related to ^, it allows anyone with staff or forum mod role in course-v1:MyOrg+X+Y to bulk-delete posts across all of MyOrg. This is a security flaw.
  • Does not use api_doc_tools; documentation can only be viewed in the codebase.
  • Does not work with MySQL-backed forums
  • Adds utility code which reaches directly in MongoDB-backed forums interface

We are reverting the frontend changes:

For the backend, we will do one of the following:

Metadata

Metadata

Assignees

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