Description is unlimited but LP limits description to 50000 characters

Bug #411360 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trac-launchpad-migrator
Triaged
Low
Unassigned

Bug Description

Launchpad has a hard limit of 50000 characters for a bug description (there is a `sane_description` constraint on the bug table). This means that descriptions of more than 50000 characters will fail to import.

The first comment for each bug is used to set the initial bug description on the import, before being overwritten by the contents of the description tag, if present and populated. This mimics the ways Launchpad works, and a "Show original description" link appears in the web UI if they differ. This means that both the contents of <description> *and* the contents of the first <comment><text> for each bug need to be limited to 50000 characters.

The branch lp:~allenap/launchpad/bug-import-munging has a script that processes the generated XML to address this. It truncates the description and comment text to 30 lines, and adds the whole content as an attachment, but this behaviour really belongs in the migrator.

Gavin Panella (allenap)
description: updated
Graham Binns (gmb)
Changed in trac-launchpad-migrator:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Robert Collins (lifeless) wrote :

There is a workaround and I suspect this is rare. Dropping to low accordingly (but we would love patches)

summary: - Description should be limited to 50000 characters
+ Description is unlimited but LP limits description to 50000 characters
Changed in trac-launchpad-migrator:
importance: High → Low
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.