Oops while rendering +translate page for empty POFile
Bug #512698 reported by
Jeroen T. Vermeulen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Jeroen T. Vermeulen |
Bug Description
We're getting these errors on some +translate pages:
LocationError: (<zope.
OOPS-1486EC432, OOPS-1486EC433, OOPS-1486EB328
Related branches
lp:~jtv/launchpad/bug-512698
(Merged)
Changed in rosetta: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | New → In Progress |
Changed in rosetta: | |
status: | In Progress → Fix Released |
tags: | added: qa-ok |
To post a comment you must log in.
I believe the problem is that POFileTranslate View._initializ eTranslationMes sageViews is being called with an empty batch. That means that _buildTranslati onMessageViews produces an empty translationmess age_views, which autofocus_html_id then tries to index.
Note that the example is in Abkhazian (ab), which is pretty rare and so I'd guess that the translation is probably empty. Substituting e.g. Arabic (ar) does work.