|| at Oct 10, 2009 at 11:08 am
On Sat, Oct 10, 2009 at 10:26:56AM +0200, Andreas J. Koenig wrote:
On Sat, 10 Oct 2009 08:23:28 +0100, Barbie <email@example.com> said:
In some ways it was good to discover there was a slight inconsistency
between two tables, but I also wonder whether there is mileage in
agreeing a set length for both a distribution name and its version.
If I read the code correctly then PAUSE enforces a max length of the
path of 255 ascii characters (including everything after "authors/id/")
and for the version string max length is 16.
I've currently got the distribution name set to 255 and the version set
to 255. The latter was 100 in the uploads table, hence why this latest
distro broke it. Did PAUSE not record this distro correctly either,
seeing as its version string was over 100 characters?
It was never documented because I thought I'd adjust the limits on
demand but we can declare them final frozen sizes.
I think 255 should be ample for the distro name, as the longest is
currently 57 (POE-Component-IRC-Plugin-CPAN-LinksToDocs-No404s-Remember)
and the longest previous version was 61 before the latest 104 one. There
are 179 over 16 characters.