Endless loop in org.geoserver.util.ReaderUtils class "stringToList" function
----------------------------------------------------------------------------
Key: GEOS-2352
URL: http://jira.codehaus.org/browse/GEOS-2352
Project: GeoServer
Issue Type: Bug
Affects Versions: 1.7.0
Reporter: Min Feng
Assignee: Andrea Aime
When there are more than one keywords in input "keywords" string, such as "WCS,arcGridSample,arcGridSample_Coverage", after the first loop, the "keywords" variable becomes ",arcGridSample,arcGridSample_Coverage", then "index" is always 0, and the function gets in a endless loop.
I think line 753 in "...\geoserver\platform\src\main\java\org\geoserver\util\ReaderUtils.java" should be changed to:
753 keywords=keywords.substring(index+1);
Below is testcase function:
public void testStringToList() throws Exception {
org.geoserver.util.ReaderUtils.stringToList("WCS,arcGridSample,arcGridSample_Coverage", ",");
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira