archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <flame...@gmail.com>
Subject normalize usage in RepositoryAccess
Date Fri, 08 Dec 2006 21:17:07 GMT
In looking at moving from Plexus FileUtils.normalize to IO
FilenameUtils.normalize, there's on feature difference in that the
latter does not convert '//etc/passwd' to '/etc/passwd'. Kenney
suggests on #plexus that that is probably to support Windows SMB
names.

RepositoryAccessTest contains a test that now fails:

        assertRequestPath( "central", "/etc/passwd", "/central//etc/passwd" );

It returns '//etc/passwd'.

Anyone know if the solution here is:

a) To consider /etc/passwd the right answer.
or
b) To modify the getRepositoryPath method to fold '^//' into '/'.

Or something else?

Hen

Mime
View raw message