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 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;