Active
Project:
Localization server
Version:
6.x-3.x-dev
Component:
l10n_localpacks
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2009 at 09:42 UTC
Updated:
17 Apr 2011 at 00:37 UTC
In "admin/l10n_server/projects/releases/myproject" all download links are broken. They point to http://example.com/myproject-6.x-1.0.tar.gz, but this file does not exists and gives a 404 if clicked.
Comments
Comment #1
gábor hojtsyWell, what connector module are you using. The download links are expected to be set for some reason and used this way for the table:
Comment #2
hass commentedThis are my active Localization server modules:
1. Localization community
2. Localization community for local packages (is this the "connector"?)
3. Localization groups
Comment #3
gábor hojtsyHm, it could happen that the local package connector does not set the download link properly...
What it does looks like this:
So looks like by the time the path gets to the function, it is already shortened. Bad.
Comment #4
hass commentedI believe I do not fully understand this in a few minutes without adding some krumo()'s... :-)
Should I manually prepend the "Local packages directory" to all filenames in "l10n_community_release.download_link" to fix for broken links? My value is "sites/default/files/project" if you need to know...
Comment #5
hass commentedAside - shouldn't the l10n_community_release.file_hash not better set? Maybe I'm currently not syncing, but for the reason that there is no UPDATE anywhere in the module it may cause issues... not sure. I'm guessing here, but see a potential issue for the reason that there is only an INSERT in l10n_project.sync.inc and someone may have started with local packages and than start syncing with d.o later... not sure if this may work.
Comment #6
gábor hojtsyCurrently, migrating a project from one connector to another one does not work (there is no such feature to be more correct). You are right that the localpacks connector does not set a hash value, that might still be useful (at least consistent).
On the download URL, you are right, it should set the full file path with the file name as the download URL, as it is still at the start of the foreach statement. The $path is modified inbetween, and that is the problem IMHO.
Comment #7
gábor hojtsyRetitling. Would be a nice little fix.
Comment #8
gábor hojtsyAlso, this might be highly related to #550172: No download link stored for some projects.
Comment #9
hass commentedStill broken for every new release. This is not an edge case - it happens always.