mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5839: fixed xml serializer to process collection field when its elements are of String type
(cherry picked from commit c3680cc111)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
server/src/com/cloud/api/response/ApiResponseSerializer.java
This commit is contained in:
parent
4fdfd8f913
commit
4d24452334
|
|
@ -28,6 +28,7 @@ import com.google.gson.annotations.SerializedName;
|
|||
import org.apache.cloudstack.api.ApiConstants;
|
||||
import org.apache.cloudstack.api.BaseCmd;
|
||||
import org.apache.cloudstack.api.ResponseObject;
|
||||
|
||||
import org.apache.cloudstack.api.response.*;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
|
|
@ -232,6 +233,8 @@ public class ApiResponseSerializer {
|
|||
if (idFieldName != null) {
|
||||
sb.append("<" + "uuidProperty" + ">" + idFieldName + "</" + "uuidProperty" + ">");
|
||||
}
|
||||
} else if (value instanceof String) {
|
||||
sb.append("<").append(serializedName.value()).append(">").append(value).append("</").append(serializedName.value()).append(">");
|
||||
}
|
||||
}
|
||||
if (usedUuidList) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue