Dispathcer findKvpRequestReader wrong type check
------------------------------------------------

                 Key: GEOS-4394
                 URL: http://jira.codehaus.org/browse/GEOS-4394
             Project: GeoServer
          Issue Type: Bug
            Reporter: Alessio Fabiani
            Assignee: Alessio Fabiani
             Fix For: 2.2.x


ISSUE:
======
Dispatcher findKvpRequestReader states

if (kvpReader.getRequestBean().isAssignableFrom(type)) {
    matches.add(kvpReader);
}

which should be reversed instead otherwise won't be possible to create other 
kind of requests other than the ones on core.


SOLUTION:
=========

if (type.isAssignableFrom(kvpReader.getRequestBean())) {
    matches.add(kvpReader);
}


-- 
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

        

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to