|
Issue Type:
|
Bug
|
Affects Versions:
|
2.4-RC1
|
Assignee:
|
Unassigned
|
Components:
|
REST
|
Created:
|
04/Sep/13 5:43 PM
|
Description:
|
The JSON produced by /rest/about/version.json has an array of version information if it found more than one manifest, but only the resource itself rather than a single element array if there is only one manifest.
This seems like odd behaviour and causes the unit test org.geoserver.rest.AboutTest.testGetAsVersionsJSON() to fail if only one manifest was found (just GeoTools rather than GeoTools and GeoWebCache)
To replicate, compare /rest/about/version.json with GWC included, and with all GWC jars removed.
GeoTools and GWC:
{"about":{"resource":[{"@name":"GeoTools","Build-Timestamp":"04-Sep-2013 15:39","Git-Revision":"59cccb2ff6287e070323e6925879a0f695f55a8a","Version":"10-SNAPSHOT"},{"@name":"GeoWebCache","Git-Revision":"174f715bf93929d69d0f5ed84f0d3950e5746f80\/174f715bf93929d69d0f5ed84f0d3950e5746f80","Version":"1.5.0-beta"}]}}
Just GeoTools:
{"about":{"resource":{"@name":"GeoTools","Build-Timestamp":"04-Sep-2013 15:39","Git-Revision":"59cccb2ff6287e070323e6925879a0f695f55a8a","Version":"10-SNAPSHOT"}}}
The unit test failure occurs based on test order and test environment (Maven Surefire vs Eclipse)
|
Project:
|
GeoServer
|
Priority:
|
Minor
|
Reporter:
|
Kevin Smith
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)