Issue Type: Bug 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 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
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to