Archiva

many empty folders created in managed repos with proxy connectors when used in a group

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

my repository conf is :

 
(group) "maven" =
    |__  (managed) "releases"
    |        |_ proxy connector to central, jboss ...
    |__  (managed) "internal"
             |_ proxy to some private repositories...

When I ask for artifacts on the group, many useless empty folders are created in both "releases" and "internal" repository. Every artifact request to a repository of the group creates the requested artifact directory structure, beeing foudn or not.

Activity

Hide
nicolas de loof added a comment -

Reading DefaultRepositoryProxyConnectors.transferSimpleFile:

The localFile directory structure is created prior to running the download :

 
localFile.getParentFile().mkdirs()
temp = File.createTempFile(...
try {
wagon.get( remotePath, temp );
moveTempToTarget( temp, localFile );
Show
nicolas de loof added a comment - Reading DefaultRepositoryProxyConnectors.transferSimpleFile: The localFile directory structure is created prior to running the download :
 
localFile.getParentFile().mkdirs()
temp = File.createTempFile(...
try {
wagon.get( remotePath, temp );
moveTempToTarget( temp, localFile );
Hide
nicolas de loof added a comment -

Temp file for File transferts is not created in target folder anymore but at repository root.

Show
nicolas de loof added a comment - Temp file for File transferts is not created in target folder anymore but at repository root.
Hide
nicolas de loof added a comment -

changes reverted as this breaks in Continuum.

Show
nicolas de loof added a comment - changes reverted as this breaks in Continuum.
Hide
nicolas de loof added a comment -

fixed, with unit tests checked

Show
nicolas de loof added a comment - fixed, with unit tests checked

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: