From 6fa4718b4436e05d4787fe19f4b3d198a19e7250 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 7 Oct 2024 15:57:42 +0200 Subject: [PATCH 1/3] check if really objectId is found --- .../telefonica/iot/cygnus/backends/arcgis/model/Feature.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java index 2c62847c4..223f2154b 100644 --- a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java +++ b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java @@ -275,8 +275,7 @@ public Integer getObjectId() throws ArcgisException { break; } } - - if ("".equals(objectId)) { + if (objectId.equals(-1)) { throw new ArcgisException("Cant find " + GisAttributeType.OID + " in Feature Object."); } else { return objectId; From 948eb09a184e99b67b845962706ea3abc9c40dc7 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 7 Oct 2024 16:10:45 +0200 Subject: [PATCH 2/3] update CNR --- CHANGES_NEXT_RELEASE | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 062ec4b8f..a9e27a763 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,2 +1,3 @@ +- [cygnus-ngsi][arcgis] Fix getObjectId to raise error when ObjectId is not retrieved from entity - [cygnus-ngsi][arcgis] Check feature table is connected before use it (#2405) - [cygnus-ngsi][arcgis] Set feature table to not connected after a connection error (#2405) From f9932ff8212d33ae7e27225a53fe285eb40e3bd9 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 7 Oct 2024 16:12:56 +0200 Subject: [PATCH 3/3] update CNR --- CHANGES_NEXT_RELEASE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index e16c980ee..67eac22d3 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,4 +1,4 @@ -- [cygnus-ngsi][arcgis] Fix getObjectId to raise error when ObjectId is not retrieved from entity +- [cygnus-ngsi][arcgis] Fix getObjectId to raise error when ObjectId is not retrieved from entity (#2424) - [cygnus-ngsi][arcgis] Fix json parse for instance of PolyLine, Polygon and Multipoint (#2423) - [cygnus-ngsi][arcgis] Check feature table is connected before use it (#2405) - [cygnus-ngsi][arcgis] Set feature table to not connected after a connection error (#2405)