Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NEXUS-4955 - applying APPENDIX 100% the times

  • Loading branch information...
commit cf1d8632f3333da2b3c9dd19215e72ce3956efd4 1 parent 14a06ff
Marvin Froeder velo authored
16 nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/storage/local/fs/DefaultFSPeer.java
View
@@ -326,8 +326,8 @@ protected File getHiddenTarget( final File target, final StorageItem item )
try
{
- String prefix = expandPrefix( target.getName() );
- return File.createTempFile( prefix, HIDDEN_TARGET_SUFFIX, target.getParentFile() );
+ // NEXUS-4955 add APPENDIX to make sure prefix is bigger the 3 chars
+ return File.createTempFile( target.getName() + APPENDIX, HIDDEN_TARGET_SUFFIX, target.getParentFile() );
}
catch ( IOException e )
{
@@ -335,18 +335,6 @@ protected File getHiddenTarget( final File target, final StorageItem item )
}
}
- private String expandPrefix( String prefix )
- {
- checkNotNull( prefix );
-
- if ( prefix.length() < 3 )
- {
- prefix = prefix + APPENDIX;
- }
-
- return prefix;
- }
-
protected void mkParentDirs( Repository repository, File target )
throws LocalStorageException
{
Please sign in to comment.
Something went wrong with that request. Please try again.