aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-jcr
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-16 22:36:09 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-16 22:36:09 +0200
commit118604a706f1fd66bcda450c1ac8370eff60e4cf (patch)
treeb181604dbf884a82697e987500ceb2ed81e24f28 /archiva-modules/plugins/metadata-store-jcr
parente4f38c2fbe1f6ce82da98ca9d67d6cc41757f833 (diff)
downloadarchiva-118604a706f1fd66bcda450c1ac8370eff60e4cf.tar.gz
archiva-118604a706f1fd66bcda450c1ac8370eff60e4cf.zip
Fixing unit tests
Diffstat (limited to 'archiva-modules/plugins/metadata-store-jcr')
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
index f9df40d7c..00cef0828 100644
--- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
@@ -1522,7 +1522,7 @@ public class JcrMetadataRepository
" AND [projectVersion].[jcr:path] LIKE '/repositories/%/content/%'" :
" AND ISDESCENDANTNODE(projectVersion,'/" + getRepositoryContentPath( repositoryId ) + "')";
List<ArtifactMetadata> result = new ArrayList<>( );
- if (key!=null && Arrays.binarySearch( PROJECT_VERSION_VERSION_PROPERTIES, key )>=0)
+ if (key==null || (key!=null && Arrays.binarySearch( PROJECT_VERSION_VERSION_PROPERTIES, key )>=0))
{
// We search only for project version properties if the key is a valid property name
String q1 =