Strip leading slashes in tarball paths

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

Bug Description

When the import queue code unpacks a tarball, it sometimes gets file paths with leading slashes. Those can confuse the auto-approver because the slash can introduce a meaningless difference between POTemplate/POFile paths and upload paths. As a result, uploads may fail to be approved. This is better fixed in the upload code though, as a one-time normalization, than in the approver.

After we fix this, further rejoicing could be brought about by stripping leading slashes from the 10k POFile paths that have them.

Related branches

Changed in rosetta:
importance: Undecided → Medium
status: New → Triaged
tags: added: import-queue trivial
Revision history for this message
Adi Roiban (adiroiban) wrote :

I guess I can do this as an exercise for hacking on ImportQueue

Changed in rosetta:
assignee: nobody → Adi Roiban (adiroiban)
Changed in launchpad:
assignee: Adi Roiban (adiroiban) → Henning Eggers (henninge)
status: Triaged → In Progress
tags: added: bugjam2010
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Данило Шеган (danilo) wrote :

I had to use LaunchpadWriteTarFile module to construct a tarfile with a leading slash (just doing tarfile.add_file() directly stripped the slash itself). Still worked fine.

Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
milestone: none → 11.01
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.