Skip to content

Commit

Permalink
Merge pull request #2312 from telefonicaid/fix/compare_gis_attribute_…
Browse files Browse the repository at this point in the history
…type_enum

enum.toString to equals compare
  • Loading branch information
danielvillalbamota authored Oct 10, 2023
2 parents bd11469 + 4558be0 commit 9d18551
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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] 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
- [cygnus-common] Upgrade mysql-java-connector dependency from 8.0.28 to 8.0.33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ protected String getUniqueFieldList(List<Feature> featureArray, String uniqueFie
// Checks if field exists in table, an retrieves it's type
if (hasAttribute(uniqueField)) {
String uniqueFieldType = getAttributeType(uniqueField);
quoted = GisAttributeType.DATE.equals(uniqueFieldType)
|| GisAttributeType.STRING.equals(uniqueFieldType);

quoted = GisAttributeType.DATE.toString().equalsIgnoreCase(uniqueFieldType)
|| GisAttributeType.STRING.toString().equalsIgnoreCase(uniqueFieldType);
LOGGER.debug("uniqueField: " + uniqueField + " uniqueFieldType " + uniqueFieldType + " in table");
// Make the list
for (Feature feature : featureArray) {
if (feature.getAttributes().containsKey(uniqueField)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ public static HttpResponse requestHTTP(String urlToRead, Map<String, String> par

try {
String strUrl = fullUrl(urlToRead, params);
LOGGER.debug("requesting HTTP: " + strUrl);
LOGGER.debug("requesting HTTP: " + strUrl +
"---METHOD: " + httpMethod.toString() +
"---BODY: " + body);

// Create a trust manager that does not validate certificate chains
TrustManager[] trustAllCerts = new TrustManager[] {new X509TrustManager() {
Expand Down

0 comments on commit 9d18551

Please sign in to comment.