Archiva

Archiva repository purge incorrectly purges based on file timestamps even when the snapshot timestamp is known

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.1
  • Fix Version/s: 1.3.3
  • Component/s: repository scanning
  • Labels:
    None
  • Number of attachments :
    0

Activity

Hide
Brett Porter added a comment -

I've identified the code to remove, but need to write a unit test before committing

Show
Brett Porter added a comment - I've identified the code to remove, but need to write a unit test before committing
Hide
Gayathri Muralidharan added a comment - - edited

Hi,
We were using Archiva 1.3 and the snapshots were not getting purged due to the Layout exception.
Recently we upgraded to 1.3.3 and even then the repository purge is not happening due to the following error:

Can you help us out here? Its really a tough task to clean the repository without this purge option.

The configuration and the error message are as follows:

Configuration:
Identifier snapshots
Name Testing
Directory /u/xxx/.m2/repository
WebDAV URL http://xxx/archiva/repository/snapshots/
Type Maven 2.x Repository
Releases Included
Snapshots Included
Delete Released Snapshots
Repository Purge By Days Older Than 1
Repository Purge By Retention Count 2
Scanned
Scanning Cron 0 9 * * * ?

Error message :2011-02-03 01:06:18,598 [pool-2-thread-1] INFO org.apache.maven.archiva.consumers.core.MetadataUpdaterConsumer - Not processing path that is not an artifact: abc/def/SNAPSHOT/def-20110130.110618-652.jar (Invalid path to Artifact: filename format is invalid,expected timestamp format in filename.)

Thanks,
Gayathri

Show
Gayathri Muralidharan added a comment - - edited Hi, We were using Archiva 1.3 and the snapshots were not getting purged due to the Layout exception. Recently we upgraded to 1.3.3 and even then the repository purge is not happening due to the following error: Can you help us out here? Its really a tough task to clean the repository without this purge option. The configuration and the error message are as follows: Configuration: Identifier snapshots Name Testing Directory /u/xxx/.m2/repository WebDAV URL http://xxx/archiva/repository/snapshots/ Type Maven 2.x Repository Releases Included Snapshots Included Delete Released Snapshots Repository Purge By Days Older Than 1 Repository Purge By Retention Count 2 Scanned Scanning Cron 0 9 * * * ? Error message :2011-02-03 01:06:18,598 [pool-2-thread-1] INFO org.apache.maven.archiva.consumers.core.MetadataUpdaterConsumer - Not processing path that is not an artifact: abc/def/SNAPSHOT/def-20110130.110618-652.jar (Invalid path to Artifact: filename format is invalid,expected timestamp format in filename.) Thanks, Gayathri

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: