Skip to content

Commit

Permalink
Fixed propagation of error result in case of Patch request (#294)
Browse files Browse the repository at this point in the history
* Fixed propagation of error result in case of Patch request

* Cloud-config Add locationtech.jts to whitelistClasses.

* corrected log message

---------

Co-authored-by: lakde <[email protected]>
  • Loading branch information
hirenkp2000 and rlakde authored Jun 12, 2024
1 parent 1c1a9e3 commit 79f0332
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"maxPctParallelRequestsPerActor": 100,
"authMode": "JWT",
"extensionConfigParams": {
"whitelistClasses": [ "java.*", "javax.*", "com.here.*", "jdk.internal.reflect.*", "com.sun.*", "org.w3c.dom.*", "sun.misc.*"],
"whitelistClasses": [ "java.*", "javax.*", "com.here.*", "jdk.internal.reflect.*", "com.sun.*", "org.w3c.dom.*", "sun.misc.*","org.locationtech.jts.*"],
"intervalms": 30000,
"extensionsRootPath": "s3://SOME_S3_BUCKET/extensions/"
}
Expand Down
2 changes: 1 addition & 1 deletion docker/cloud-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"maxPctParallelRequestsPerActor": 100,
"authMode": "JWT",
"extensionConfigParams": {
"whitelistClasses": [ "java.*", "javax.*", "com.here.*", "jdk.internal.reflect.*", "com.sun.*", "org.w3c.dom.*", "sun.misc.*"],
"whitelistClasses": [ "java.*", "javax.*", "com.here.*", "jdk.internal.reflect.*", "com.sun.*", "org.w3c.dom.*", "sun.misc.*","org.locationtech.jts.*"],
"intervalms": 30000,
"extensionsRootPath": "s3://SOME_S3_BUCKET/extensions/"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,10 @@ private XyzResponse attemptFeaturesPatching(
spaceId, featuresFromRequest, responseType, addTags, removeTags, retry + 1);
} catch (NoCursor e) {
return returnError(
XyzError.EXCEPTION,
"Unexpected response when trying to persist patched features.",
"No cursor when analyzing error result, while attempting to write patched features into storage.");
er.reason,
er.message,
"No cursor when analyzing error result, while attempting to write patched features into storage. "
+ er);
}
} else {
if (responseType.equals(HttpResponseType.FEATURE)) {
Expand Down

0 comments on commit 79f0332

Please sign in to comment.