mirror of https://github.com/apache/archiva.git
[MRM-446] search by checksum was not working due to a case mismatch
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3f3de4a98
commit
a40c80e2e1
|
@ -56,7 +56,7 @@ public class ArtifactsByChecksumConstraint
|
|||
*/
|
||||
public ArtifactsByChecksumConstraint( String desiredChecksum, String type )
|
||||
{
|
||||
if( StringUtils.isEmpty( type ) )
|
||||
if ( StringUtils.isEmpty( type ) )
|
||||
{
|
||||
// default for no specified type.
|
||||
whereClause = "this.checksumSHA1 == desiredChecksum || this.checksumMD5 == desiredChecksum";
|
||||
|
@ -72,8 +72,8 @@ public class ArtifactsByChecksumConstraint
|
|||
whereClause = "this.checksum" + type.trim() + " == desiredChecksum";
|
||||
}
|
||||
|
||||
declParams = new String[]{ "String desiredChecksum" };
|
||||
params = new Object[]{ desiredChecksum };
|
||||
declParams = new String[]{"String desiredChecksum"};
|
||||
params = new Object[]{desiredChecksum.toLowerCase()};
|
||||
}
|
||||
|
||||
public String getSortColumn()
|
||||
|
|
Loading…
Reference in New Issue