Closed cstamas closed 11 years ago
from your comment it feels like the patch with PATH_SEPARATOR should be done inside the RungemsFile class since that get used here and there.
anyways thanx for the patch ;)
Thanks @cstamas !
@mkristian Probably yes. I just traced the problem here, as from the @eehret gist it was apparent that Win backslashes are "coming in" somehow, and I do know Nx Pro works just fine on Win OS, so it had to be something in this plugin :)
Attribute recursion caused by OS native path separator. Nexus, while (sadly) does not enforce/validate this, is strict regarding paths and used path separators.
org.sonatype.nexus.proxy.item.RepositoryItemUid.PATH_SEPARATOR
Is the only separator it "recognizes" in any path occurrence.
This change fixed a "OS separator leak" occurring when Nexus runs on Win OSes. In general, these constructs (passing in java.io.File path directly to Nx path) should be avoided.
Issue: https://issues.sonatype.org/browse/NEXUS-5863