Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Naksha_2.2.25
- Fixed mixed-case tag searches by removing query normalization.

## Naksha_2.2.24
- Apply configured request limits before extension loading to avoid startup `TooManyTasks` errors.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ mavenPassword=YourPassword
# - here-naksha-lib-core/src/main/com/here/naksha/lib/core/NakshaVersion (static property: latest)
# - here-naksha-app-service/src/main/resources/swagger/openapi.yaml (info.version property)
# - CHANGELOG.md
version=2.2.24
version=2.2.25

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import com.here.naksha.lib.core.exceptions.XyzErrorException;
import com.here.naksha.lib.core.models.XyzError;
import com.here.naksha.lib.core.models.geojson.implementation.namespaces.XyzNamespace;
import com.here.naksha.lib.core.models.payload.events.QueryDelimiter;
import com.here.naksha.lib.core.models.payload.events.QueryParameter;
import com.here.naksha.lib.core.models.payload.events.QueryParameterList;
Expand Down Expand Up @@ -196,13 +195,13 @@ private static void addTagsToGlobalOpList(int crtOp, final @NotNull List<POp> gL
if (crtOp != OR && crtOp != AND) return;
// Do we have only one tag? then use EXISTS operation
if (tags.length == 1) {
gList.add(POp.exists(PRef.tag(XyzNamespace.normalizeTag(tags[0]))));
gList.add(POp.exists(PRef.tag(tags[0])));
return;
}
// We have multiple tags, so use OR / AND operation
final POp[] tagOpArr = new POp[tags.length];
for (int i = 0; i < tags.length; i++) {
tagOpArr[i] = POp.exists(PRef.tag(XyzNamespace.normalizeTag(tags[i])));
tagOpArr[i] = POp.exists(PRef.tag(tags[i]));
}
if (crtOp == OR) {
gList.add(POp.or(tagOpArr));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ servers:
info:
title: "Naksha Hub-API"
description: "Naksha Hub-API is a REST API to provide simple access to geo data."
version: "2.2.24"
version: "2.2.25"

security:
- AccessToken: [ ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ void assertionFailWhenTryingToBuildOperationWithSurroundingDelimiters(){
private static Stream<Arguments> simpleTagsSample() {
return Stream.of(
tagQuerySpec("tags=x", op -> op.existsWithTagName("x"), "only 'x'"),
tagQuerySpec(
"tags=One",
op -> op.existsWithTagName("One"),
"preserve capitalized tag"),
tagQuerySpec(
"tags=One+Two",
op -> op.hasType(OpType.AND)
.hasChildrenThat(
child -> child.existsWithTagName("One"),
child -> child.existsWithTagName("Two")),
"preserve capitalized tags in AND search"),
tagQuerySpec(
"tags=One,Two",
op -> op.hasType(OpType.OR)
.hasChildrenThat(
child -> child.existsWithTagName("One"),
child -> child.existsWithTagName("Two")),
"preserve capitalized tags in OR search"),
tagQuerySpec(
"tags=this,that",
op -> op.hasType(OpType.OR)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ public class NakshaVersion implements Comparable<NakshaVersion> {
public static final String v2_2_22 = "2.2.22";
public static final String v2_2_23 = "2.2.23";
public static final String v2_2_24 = "2.2.24";
public static final String v2_2_25 = "2.2.25";

/**
* The latest version of the naksha-extension stored in the resources.
*/
@AvailableSince(v2_0_5)
public static final NakshaVersion latest = of(v2_2_24);
public static final NakshaVersion latest = of(v2_2_25);

private final int major;
private final int minor;
Expand Down
Loading