Casting to String, in order to avoid GWT serialization issue, see

#24537#note-9 and #24432
This commit is contained in:
Francesco Mangiacrapa 2023-02-07 11:47:39 +01:00
parent 955d670ce4
commit 62ce92b371
1 changed files with 7 additions and 4 deletions

View File

@ -527,8 +527,8 @@ public class ConvertToDataValueObjectModel {
project.getProfileVersion() != null ? project.getProfileVersion().getValue() : ""); project.getProfileVersion() != null ? project.getProfileVersion().getValue() : "");
theProject.setVersion(project.getVersion() != null ? project.getVersion().getValue() : ""); theProject.setVersion(project.getVersion() != null ? project.getVersion().getValue() : "");
theProject.setTheDocument(toGenericDocumentDV(project.getId(), project.getTheDocument(), DocumentDV.class,
projectReader.getListDocumentKeys(), projectReader.isIncludeFullDocumentMap())); theProject.setTheDocument(toGenericDocumentDV(project.getId(), project.getTheDocument(), DocumentDV.class, projectReader.getListDocumentKeys(), projectReader.isIncludeFullDocumentMap()));
List<Relationship> relations = project.getRelationships(); List<Relationship> relations = project.getRelationships();
@ -1004,7 +1004,10 @@ public class ConvertToDataValueObjectModel {
} }
} }
documentAsMap.put(key, value); //Casting to String, in order to avoid GWT serialization issue, see #24537#note-9 and #24432
String valueString = value!=null?value+"":null;
documentAsMap.put(key, valueString);
return documentAsMap; return documentAsMap;
} }