Skip to content

Commit

Permalink
Merge pull request #2315 from telefonicaid/fix/check_object_id_ignore…
Browse files Browse the repository at this point in the history
…_case

check object_id ignore case
  • Loading branch information
fgalan authored Oct 16, 2023
2 parents 9d18551 + 19fa40a commit 9a040f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private void addProperty(JsonObject jsonObj, String name, Object property) {
public Integer getObjectId() throws ArcgisException {
Integer objectId = -1;
for (Map.Entry<String, Object> attribute : attributes.entrySet()) {
if (OBJECTID_FIELDNAME.equals(attribute.getKey())) {
if (OBJECTID_FIELDNAME.equalsIgnoreCase(attribute.getKey())) {
objectId = (Integer) attribute.getValue();
break;
}
Expand All @@ -252,7 +252,7 @@ public void setObjectId(Integer objectId) throws ArcgisException {
boolean found = false;

for (Map.Entry<String, Object> attribute : attributes.entrySet()) {
if (OBJECTID_FIELDNAME.equals(attribute.getKey())) {
if (OBJECTID_FIELDNAME.equalsIgnoreCase(attribute.getKey())) {
found = true;
attribute.setValue(objectId);
break;
Expand Down

0 comments on commit 9a040f4

Please sign in to comment.