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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Naksha_2.2.24
- Apply configured request limits before extension loading to avoid startup `TooManyTasks` errors.

## Naksha_2.2.23
- Enforced write authorization checks to deny write operations for read-only URM tokens.

Expand Down Expand Up @@ -69,4 +72,3 @@
## Naksha_1.0.0

- *[MCPODS-4933](https://devzone.it.here.com/jira/browse/MCPODS-4933)* - First PoC version, demo'ed in E2E, as an alternative to DataHub APIs

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.23
version=2.2.24

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.23"
version: "2.2.24"

security:
- AccessToken: [ ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ public class NakshaVersion implements Comparable<NakshaVersion> {
public static final String v2_2_21 = "2.2.21";
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";

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

private final int major;
private final int minor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public void setExtensionId(@Nullable String extensionId) {
getEventHandlerConstructor(getClassName(), EventHandler.class, eventTargetClass);
} else {
ClassLoader extClassLoader = naksha.getClassLoader(this.extensionId);
if (extClassLoader == null) {
throw new Exception(
"Extension " + this.extensionId + " is not loaded yet for event handler " + getId());
}
//noinspection unchecked
constructor = (Fe3<IEventHandler, INaksha, EventHandler, EventTarget<?>>) getEventHandlerConstructor(
getClassName(), EventHandler.class, eventTargetClass, extensionId, extClassLoader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ public NakshaHub(
throw new RuntimeException("Server configuration not found! Neither in Admin storage nor a default file.");
}
this.nakshaHubConfig = finalCfg;
if (this.nakshaHubConfig.extensionConfigParams != null) {
this.extensionManager = ExtensionManager.getInstance(this);
} else {
logger.warn("ExtensionManager is not initialised due to extensionConfigParams not found.");
}
// Setting Concurrency Thresholds
logger.info("Value of maxParallelRequestsPerCPU is {}", nakshaHubConfig.maxParallelRequestsPerCPU);
logger.info("Value of maxPctParallelRequestsPerActor is {}", nakshaHubConfig.maxPctParallelRequestsPerActor);
IRequestLimitManager requestLimitManager = new DefaultRequestLimitManager(
nakshaHubConfig.maxParallelRequestsPerCPU, nakshaHubConfig.maxPctParallelRequestsPerActor);
logger.info("Instance level limit is {}", requestLimitManager.getInstanceLevelLimit());
AbstractTask.setConcurrencyLimitManager(requestLimitManager);
if (this.nakshaHubConfig.extensionConfigParams != null) {
this.extensionManager = ExtensionManager.getInstance(this);
} else {
logger.warn("ExtensionManager is not initialised due to extensionConfigParams not found.");
}

logger.info("NakshaHub initialization done!");
}
Expand Down
Loading