From 6170ce4af57c1af362f798a338cab9da15132b1d Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 16 Oct 2023 09:50:01 +0200 Subject: [PATCH 1/2] check object_id ignore case --- .../telefonica/iot/cygnus/backends/arcgis/model/Feature.java | 4 ++-- 1 file changed, 2 insertions(+), 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 217bcc6aa..3d7afae07 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 @@ -227,7 +227,7 @@ private void addProperty(JsonObject jsonObj, String name, Object property) { public Integer getObjectId() throws ArcgisException { Integer objectId = -1; for (Map.Entry attribute : attributes.entrySet()) { - if (OBJECTID_FIELDNAME.equals(attribute.getKey())) { + if (OBJECTID_FIELDNAME.equalsIgnoreCase(attribute.getKey())) { objectId = (Integer) attribute.getValue(); break; } @@ -252,7 +252,7 @@ public void setObjectId(Integer objectId) throws ArcgisException { boolean found = false; for (Map.Entry attribute : attributes.entrySet()) { - if (OBJECTID_FIELDNAME.equals(attribute.getKey())) { + if (OBJECTID_FIELDNAME.equalsIgnoreCase(attribute.getKey())) { found = true; attribute.setValue(objectId); break; From 19fa40a47fe3e888089dc48f1e514d7229ad9a9f Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 16 Oct 2023 09:51:46 +0200 Subject: [PATCH 2/2] update CNR --- CHANGES_NEXT_RELEASE | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 9fa5ef352..8f878f5f4 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,3 +1,4 @@ +- [cygnus-common] [Arcgis] check object_id ignore case (#2313) - [cygnus-common] [Arcgis] fix url quoted based on uniqueFieldType (#2311) - [cygnus-common] [SQL] Add Primary Key on Timestamp to Error Log table (#2302) - [cygnus-common] Upgrade gson dependency from 2.6.2 to 2.10.1