-
Bug
-
Resolution: Fixed
-
Medium
-
2.8.1
-
None
Performing a REST API call to get a file revision with revisionInfo is successful if the output is set to XML:
https://fisheye.inst.com/crucible/rest-service-fe/revisionData-v1/revisionInfo/FE-hg?path=buildit.xml&revision=489fa21
However, for JSON it fails:
https://fisheye.inst.com/crucible/rest-service-fe/revisionData-v1/revisionInfo/FE-hg.json?path=buildit.xml&revision=489fa21
In FishEye the following stacktrace can be seen:
2012-11-22 10:55:12,694 ERROR [btpool0-39 ] fisheye.app com.cenqua.fisheye.web.filters.TotalityFilter-logExceptionDetails - Exception "Conflicting getter definitions for property "ancestor": com.atlassian.fisheye.spi.data.FileRevisionData#getAncestor(0 params) vs com.atlassian.fisheye.spi.data.FileRevisionData#getAncestors(0 params)" (org.codehaus.jackson.map.JsonMappingException) while processing "/fisheye/rest/api/1.0/rest-service-fe/revisionData-v1/revisionInfo/FE-hg" (Referer:"null") org.codehaus.jackson.map.JsonMappingException: Conflicting getter definitions for property "ancestor": com.atlassian.fisheye.spi.data.FileRevisionData#getAncestor(0 params) vs com.atlassian.fisheye.spi.data.FileRevisionData#getAncestors(0 params) at org.codehaus.jackson.map.ser.StdSerializerProvider._createAndCacheUntypedSerializer(StdSerializerProvider.java:740) at org.codehaus.jackson.map.ser.StdSerializerProvider.findValueSerializer(StdSerializerProvider.java:344) at org.codehaus.jackson.map.ser.StdSerializerProvider.findTypedValueSerializer(StdSerializerProvider.java:420) at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:601) at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256) at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1604) at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)