Oops when submitting translations while in read-only mode

Bug #513656 reported by Jeroen T. Vermeulen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Jeroen T. Vermeulen

Bug Description

Submitting translations while the system is in read-only mode can lead to an assertion failure. A user might legitimately do this if the system went read-only after the user loaded the +translate page.

POTMsgSet._isTranslationMessageASuggestion asserts that either the message is_imported (not the case for a web submission), or the user has editing rights, or the user is allowed to make suggestions. That very last condition returns False during read-only mode. Presumably there'd be some other failure if the user did have review privileges.

It'd be helpful if the browser code checked for read-only mode as part of validating the POST, and showed an appropriate notice. In fact this sounds like it should be a standard validation check for Launchpad forms.

OOPS-1488EB320

Related branches

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Just checked with stub and yes, it's a standard validation check for Launchpad forms. But read-only mode is a state that's signaled outside of the database, meaning that it can occasionally hit a request that's already past validation and in processing.

Changed in rosetta:
milestone: 10.02 → none
Changed in rosetta:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: New → In Progress
importance: Undecided → Medium
importance: Medium → Low
milestone: none → 10.02
tags: added: qa-needstesting
Changed in rosetta:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Changed in rosetta:
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.