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:
Alena Prokharchyk 2014-01-08 15:38:08 -08:00 committed by Rohit Yadav
parent 4fdfd8f913
commit 4d24452334
1 changed files with 3 additions and 0 deletions

View File

@ -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) {