Ubuntu Archive translations are missing Index metadata file

Bug #572128 reported by wernermarcel
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Colin Watson
debmirror (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The Ubuntu Archive is not publishing the Index metadata files for the Translations portion of the archive; e.g. /ubuntu/dists/oneiric/i18n/ is missing an Index file despite the presence of the Translations-* files.

This causes mirroring tools like debmirror to fail to mirror the Translations portion, as they're looking for the Index file to determine which Translations are available. This then results in 'apt-cache show' failing to display extended descriptions on systems where the apt sources.list solely point at a debmirror-based mirror.

The i18n/ Index files should also be added to the gpg-signed per-pocket Release files.

Related branches

Revision history for this message
wernermarcel (wernermarcel) wrote :

--- push --

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debmirror (Ubuntu):
status: New → Confirmed
Steve Beattie (sbeattie)
summary: - debmirror don't download ubuntu i18n files
+ Ubuntu Archive translations are missing Index metadata file
Revision history for this message
Steve Beattie (sbeattie) wrote :

Opening a task as requested on the Launchpad project.

description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

There are sort of two separate problems here. One is that the Translations-* files generated by custom DDTP uploads aren't indexed. The other is that the Translations-en files generated by apt-ftparchive by request of Launchpad for Ubuntu Oneiric onward aren't indexed. The latter is what's caused a regression recently, because at least English package descriptions used to be available from the output of debmirror, but they aren't any more for Oneiric.

The reason I think we need to consider these separately is that I rather suspect that Launchpad doesn't really know internally about custom uploads at the point when it would need to generate these Index files; they get stuffed onto its filesystem when the custom uploads are first published, but thereafter it more or less forgets about them. The only files that normally go into Launchpad-generated indexes are those that are actually recorded in the Launchpad database.

So, I propose that we fix this in two stages, of which only the first is urgent (because it's fixing a regression). First, generate i18n/Index files for distroseries where include_long_descriptions is True, and include them in Release; these index files should initially only refer to Translations-en.bz2. Secondly, once the files from DDTP custom uploads are recorded somehow in the database rather than merely on the filesystem, they can be added to i18n/Index.

Revision history for this message
Colin Watson (cjwatson) wrote :

Incidentally, the i18n/Index files are a bit odd. Debian only generates them with a SHA1 section, and only includes the .bz2 versions. debmirror's parser doesn't look desperately robust against getting more sections, so I suggest that at least for now we should simply mimic Debian's behaviour here.

Revision history for this message
Colin Watson (cjwatson) wrote :

In fact, on reflection, generating the Index file by inspecting files on the filesystem really isn't much different from generating the Release file by inspecting files on the filesystem, and we already do the latter; so maybe we should just do the whole lot in one go.

Colin Watson (cjwatson)
Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
Gary Poster (gary)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
tags: added: regression
Revision history for this message
Colin Watson (cjwatson) wrote :

I've filed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644609 for the robustness problems in debmirror.

Colin Watson (cjwatson)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

This wasn't a debmirror bug in the first place (although I understand why you filed it there), so I'll close that part.

The Launchpad change has been deployed and seems to be working properly. We aren't going to republish Natty and earlier now, I'm afraid, but (as of the next mirror push) Oneiric and beyond will have i18n/Index files that can be used by debmirror.

Changed in debmirror (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/572128

tags: added: iso-testing
Revision history for this message
Patrick Banholzer (patrick-banholzer) wrote :

This actually seems to happen again with 16.04 xenial mirrors. I know it's still beta, but we are testing already!

will there be a patch before Final Release?

Revision history for this message
Colin Watson (cjwatson) wrote :

Patrick, please could you urgently provide details of exactly what you're seeing? If you're referring to output from apt, please use the -oDebug::Acquire::http=true option.

Revision history for this message
Patrick Banholzer (patrick-banholzer) wrote :

I'm sorry I interrupted you. Seems to be a local mirror problem. debmirror (1:2.16ubuntu1) doesn't correctly download these files. So if there is a bug, it will be a separate bug which has nothing to do with this one.

We're debugging the problem at the moment. So I can't tell what's the problem, yet.

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 572128] Re: Ubuntu Archive translations are missing Index metadata file

You may want to try debmirror 1:2.16ubuntu1.1 in trusty-proposed, then.
See bug 1565585.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.