DaanHoogland commented on code in PR #8277:
URL: https://github.com/apache/cloudstack/pull/8277#discussion_r2598996424
##########
server/src/main/java/com/cloud/api/ApiSerializerHelper.java:
##########
@@ -81,15 +97,43 @@ public static Object fromSerializedString(String result) {
}
return null;
} catch (RuntimeException e) {
- LOGGER.error("Caught runtime exception when doing GSON
deserialization on: " + result);
+ LOGGER.error("Caught runtime exception when doing GSON
deserialization on: " + classString);
throw e;
}
}
- public static Map<String, Object> fromSerializedStringToMap(String result)
{
+ /**
+ * validates that a class is allowed to be deserialised.
+ *
+ * TODO move to a more globally accesible util class
Review Comment:
```suggestion
* TODO move to a more globally accessible util class
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]