Ticket UUID: | 300fc543b24250e25686762a7d8daa2f796590da | ||
Title: | Imply "trunk" when no uuid is given to tarball or zip downloads | ||
Status: | Fixed | Type: | Feature_Request |
Severity: | Minor | Priority: | |
Subsystem: | Resolution: | Fixed | |
Last Modified: | 2012-08-08 12:42:42 | ||
Version Found In: | |||
Description & Comments: | |||
Currently, download URLs with no uuid parameter (e.g. http://www.fossil-scm.org/fossil/tarball/fossil.tar.gz) lead to a "Not found" error message. I think it would be a good default to use "trunk" instead.
rmax added on 2012-08-08 10:58:32 UTC: --- src/tar.c +++ src/tar.c @@ -581,11 +581,11 @@ login_check_credentials(); if( !g.perm.Zip ){ login_needed(); return; } zName = mprintf("%s", PD("name","")); nName = strlen(zName); - zRid = mprintf("%s", PD("uuid","")); + zRid = mprintf("%s", PD("uuid","trunk")); nRid = strlen(zRid); if( nName>7 && fossil_strcmp(&zName[nName-7], ".tar.gz")==0 ){ /* Special case: Remove the ".tar.gz" suffix. */ nName -= 7; zName[nName] = 0;I suggest the same for zip archives. |