Fixing #24432 serialization issue using LinkedHashMap<String, String>

instead of LinkedHashMap<String, Object>
This commit is contained in:
Francesco Mangiacrapa 2023-01-17 17:07:36 +01:00
parent 3775f54f02
commit 8dc90cbd6e
3 changed files with 22 additions and 12 deletions

View File

@ -54,6 +54,7 @@
@ -131,6 +132,7 @@
@ -208,6 +210,7 @@
@ -285,6 +288,7 @@
@ -327,6 +331,7 @@
@ -336,7 +341,7 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="metadata-profile-form-builder-widget-2.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/metadata-profile-form-builder-widget/metadata-profile-form-builder-widget"> <dependent-module archiveName="geoportal-data-common-2.0.1.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geoportal-data-common/geoportal-data-common">
<dependency-type>uses</dependency-type> <dependency-type>uses</dependency-type>
</dependent-module> </dependent-module>
@ -394,6 +399,7 @@
@ -471,6 +477,7 @@
@ -548,6 +555,7 @@
@ -625,6 +633,7 @@

View File

@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- [#24281] Fixed filtering selection label - [#24281] Fixed filtering selection label
- [#24049] Fixed "Show on Map" facility vs Chrome browser - [#24049] Fixed "Show on Map" facility vs Chrome browser
- [#24432] Fixing serialization issue using LinkedHashMap<String, String> instead of LinkedHashMap<String, Object>
## [v3.0.0] - 2022-11-09 ## [v3.0.0] - 2022-11-09

View File

@ -140,7 +140,7 @@ public class ViewRelationshipPanel extends Composite {
secondProjectPanelContainer.clear(); secondProjectPanelContainer.clear();
this.fromTheProject = project; this.fromTheProject = project;
Entry<String, Object> firstEntrySet = project.getFirstEntryOfMap(); Entry<String, String> firstEntrySet = project.getFirstEntryOfMap();
String htmlMsg = firstEntrySet.getKey() + ": <b>" + firstEntrySet.getValue() + "</b> (id: " + project.getId() String htmlMsg = firstEntrySet.getKey() + ": <b>" + firstEntrySet.getValue() + "</b> (id: " + project.getId()
+ ")"; + ")";
@ -203,7 +203,7 @@ public class ViewRelationshipPanel extends Composite {
@Override @Override
public void onSuccess(ResultDocumentDV result) { public void onSuccess(ResultDocumentDV result) {
mapOfTargetProjectForId.put(relationDV.getTargetUCD(), result); mapOfTargetProjectForId.put(relationDV.getTargetUCD(), result);
Entry<String, Object> firstEntrySet = result.getFirstEntryOfMap(); Entry<String, String> firstEntrySet = result.getFirstEntryOfMap();
String htmlMsg = firstEntrySet.getKey() + ": <b>" + firstEntrySet.getValue() String htmlMsg = firstEntrySet.getKey() + ": <b>" + firstEntrySet.getValue()
+ "</b> (id: " + result.getId() + ")"; + "</b> (id: " + result.getId() + ")";