Preview diff generation can die with unicode filenames

Bug #436794 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Aaron Bentley
2.0
Fix Released
Medium
Aaron Bentley
Launchpad itself
Fix Released
Medium
Unassigned

Bug Description

TransformPreview creates files according to their unicode filename. This means it can fail with 'ascii' codec can't encode character u'\\xed' in position 36: ordinal not in range(128) if the encoding isn't set.

In Launchpad, this causes oopses such as OOPS-1364UPD11

This sort of failure makes sense when creating a working tree, but not when creating a PreviewTree, which is virtual. This could be fixed by either naming files according to their trans_id, or by implementing an in-memory version of TransformPreview

Related branches

Aaron Bentley (abentley)
tags: added: code-review
Paul Hummer (rockstar)
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → Medium
John A Meinel (jameinel)
Changed in bzr:
assignee: nobody → Aaron Bentley (abentley)
milestone: none → 2.1.0b2
status: New → Fix Released
Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Medium
Changed in launchpad:
status: Triaged → 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.