Archiva

Introducing a new scannable artifact file type requires restart in order for some consumers to work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.1.2
  • Component/s: repository scanning
  • Labels:
    None
  • Number of attachments :
    1

Description

to replicate:

1. copied Nunit artifact (see attached zip file) to internal repository
2. removed metadata and checksums of the artifact
3 execute 'touch' to the artifact folder recursively: find NUnit.Framework | xargs touch
4. add "*/.dll" to Repository Scanning -> File Types -> artifacts
5. click 'Scan Repository'
6. Checksums of the dll artifact are not generated.

restarting Archiva and repeating steps 2 to 5 will produce the checksums of the dll artifact.

Issue Links

Activity

Hide
Maria Odea Ching added a comment -

Hi Jan, I couldn't replicate this issue.. I was able to successfully scan and index the Nunit dll artifact you've attached without having to restart Archiva.
Btw, I was using trunk -r683086. Could you verify this against this same revision too? Thanks

Show
Maria Odea Ching added a comment - Hi Jan, I couldn't replicate this issue.. I was able to successfully scan and index the Nunit dll artifact you've attached without having to restart Archiva. Btw, I was using trunk -r683086. Could you verify this against this same revision too? Thanks
Hide
Maria Odea Ching added a comment -

I tried this again today, and I still couldn't replicate this in the scannable artifact types. What I encountered which requires a restart for the changes to be applied Repostiory Scanning Consumers. By default, the repository-purge is disabled. When I enabled it, it still wasn't executed during the repository scanning. It was only executed after I did a restart..

Show
Maria Odea Ching added a comment - I tried this again today, and I still couldn't replicate this in the scannable artifact types. What I encountered which requires a restart for the changes to be applied Repostiory Scanning Consumers. By default, the repository-purge is disabled. When I enabled it, it still wasn't executed during the repository scanning. It was only executed after I did a restart..
Hide
Maria Odea Ching added a comment - - edited

I finally replicated the issue I think the problem is in the create-missing-checksums consumer, it's file types are not getting included. The file types for the other consumers (like the index-content consumer) are updated w/o restart though, since the DLL artifact showed up in the browse after adding the **/*.dll in the Repository Scanning page and doing a re-scan.

Show
Maria Odea Ching added a comment - - edited I finally replicated the issue I think the problem is in the create-missing-checksums consumer, it's file types are not getting included. The file types for the other consumers (like the index-content consumer) are updated w/o restart though, since the DLL artifact showed up in the browse after adding the **/*.dll in the Repository Scanning page and doing a re-scan.
Hide
Maria Odea Ching added a comment -

Updated the summary for clarification

Show
Maria Odea Ching added a comment - Updated the summary for clarification
Hide
Maria Odea Ching added a comment -

Fixed in trunk -r691527:

  • updated the registry listener trigger condition for repo-purge, create-missing-checksums, auto-remove and index-content consumers
Show
Maria Odea Ching added a comment - Fixed in trunk -r691527:
  • updated the registry listener trigger condition for repo-purge, create-missing-checksums, auto-remove and index-content consumers

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: