You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org> on 2015/03/23 11:20:18 UTC
[jira] (MRM-1879) Bug in create-missing-checksum consumer
Guimiot Isabelle created MRM-1879:
-------------------------------------
Summary: Bug in create-missing-checksum consumer
Key: MRM-1879
URL: https://jira.codehaus.org/browse/MRM-1879
Project: Archiva
Issue Type: Bug
Components: repository scanning
Affects Versions: 2.2.0
Environment: linux
Reporter: Guimiot Isabelle
Priority: Minor
I noticed that checksum files were always created again on all the artifacts during each repo scanning. In the log, I could see messages like :
Created missing checksum file /archiva_install/repositories/internal/com/company/project/myjar/1.2/myjar-1.2.jarsha1
There's a dot missing at the end of the path, should be myjar-1.2.jar.sha1 instead of myjar-1.2.jarsha1 , and I think this issue comes from this line in the code, file ArtifactMissingChecksumsConsumer.java :
{code}
File checksumFile = new File( this.repositoryDir, path + checksumAlgorithm[0].getExt() );
{code}
It should be :
{code}
File checksumFile = new File( this.repositoryDir, path + "." + checksumAlgorithm[0].getExt() );
{code}
Because without the dot, it doesn't find the checksum file, wrongly thinks it's missing, and re-creates it ! It's not a blocker bug, but it slows down large repos scanning...
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)