Skip to content

Commit

Permalink
Merge pull request #772 from amvanbaren/feature/issue-768
Browse files Browse the repository at this point in the history
make namespace and extension query case-insensitive
  • Loading branch information
amvanbaren authored Jul 3, 2023
2 parents 72629f2 + bcc1072 commit af09fea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ public Page<ExtensionVersion> findActiveVersions(QueryRequest request) {
conditions.add(NAMESPACE.PUBLIC_ID.eq(request.namespaceUuid));
}
if (!StringUtils.isEmpty(request.namespaceName)) {
conditions.add(NAMESPACE.NAME.eq(request.namespaceName));
conditions.add(DSL.upper(NAMESPACE.NAME).eq(DSL.upper(request.namespaceName)));
}
if (!StringUtils.isEmpty(request.extensionUuid)) {
conditions.add(EXTENSION.PUBLIC_ID.eq(request.extensionUuid));
}
if (!StringUtils.isEmpty(request.extensionName)) {
conditions.add(EXTENSION.NAME.eq(request.extensionName));
conditions.add(DSL.upper(EXTENSION.NAME).eq(DSL.upper(request.extensionName)));
}
if(request.targetPlatform != null) {
conditions.add(EXTENSION_VERSION.TARGET_PLATFORM.eq(request.targetPlatform));
Expand Down

0 comments on commit af09fea

Please sign in to comment.