UnexpectedFormData: Invalid moderation action for held message

Bug #640700 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Robert Collins

Bug Description

OOPS-1720EB821 was cause while moderating the last batch of a mailing list moderation queue
     https://edge.launchpad.net/%7Eopenjdk/+mailinglist-moderate?start=2950&batch=50

The tail of the oops is:
  Module lp.registry.browser.team, line 859, in moderate_action
    (message.message_id, action_name))
UnexpectedFormData: Invalid moderation action for held message <email address hidden>: None

^ This message was already moderated. This error might relate to the fact that we are process messages in the action by batch or because the message's status has yet to transition from DISCARD_PENDING to DISCARDED by the XMLRPC polling processes

Related branches

Revision history for this message
Curtis Hovey (sinzui) wrote :

This bug seems to mutate, which leads me to think the issue relates to skipping messages in a batch. On set of oopses were address by going back to the first batch and moderating the first message. The notification reported that I moderated the problem message in the oops

Revision history for this message
Robert Collins (lifeless) wrote :

I think this could also happen with the single page form if folk used it rapidly twice in a row, but the batching may well have exacerbated it?

It seems to me we need to have the message id in the form data to fix this properly; do you agree?

Revision history for this message
Curtis Hovey (sinzui) wrote :

I do agree. I think we want to extend MessageApprovalSet.getMessageByMessageID(), or add getMessageByMessageIDs(id_list)

Curtis Hovey (sinzui)
Changed in launchpad-registry:
assignee: nobody → Robert Collins (lifeless)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in launchpad-registry:
status: In Progress → Fix Committed
Revision history for this message
Robert Collins (lifeless) wrote :

I'll need help QAing this, AFAIK I'm not in any teams with nontrivial traffic flow (such that looking at the last batch can cause the issue).

Any suggestions of someone in such a team that can help us?

Revision history for this message
Curtis Hovey (sinzui) wrote :

I still have access to openjdk and I did not get an error moderating a couple hundred messages from the head and tail of the batch. I am marking this as qa-ok since I was seeing the error frequently when I discovered this bug,

tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.