Librarian truncates large file
Bug #317482 reported by
Jeroen T. Vermeulen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Unassigned |
Bug Description
When importing large translation files, usually somewhere around line 10,000 or half a megabyte, it looks as if sometimes the data just stops coming. This may produce errors like:
* String not terminated. We used to blame these on hidden carriage returns, but Danilo tried re-approving some of these cases and saw them go through.
* Truncated message.
* String is not quoted.
* Invalid content, being an incomplete gettext directive.
The cases we see happen at arbitrary points in lines, at points that are very different to the parser. So it's likely that the problem happens at a very low level, before the data is even fed into the parser.
To post a comment you must log in.
On a sidenote, POFile. importFromQueue opens a redundant copy of the file, without ever using it:
import_file = librarian_ client. getFileByAlias(
entry_ to_import. content. id)