List index out of range when importing empty translation

Bug #283063 reported by Jeroen T. Vermeulen
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jeroen T. Vermeulen

Bug Description

Getting this error while the gettext PO parser tries to read the header of an empty translation file:

    https://pastebin.canonical.com/10162/

The file that triggered this particular error is here:

    http://launchpadlibrarian.net/17951052/da.po

Not a real problem for the system, and there's no useful data to be found in the file anyway, but will result in an unclear failure message and pile up Failed import requests.

Changed in rosetta:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

This just happened again, and it's really easy to test & fix, so see the branch I'm attaching.

Changed in rosetta:
assignee: nobody → jtv
importance: Low → Medium
milestone: none → 2.2.1
status: Triaged → In Progress
Changed in rosetta:
status: In Progress → Fix Committed
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.