Clearing resource cache after adding a new store results in a NPE
-----------------------------------------------------------------

                 Key: GEOS-3987
                 URL: http://jira.codehaus.org/browse/GEOS-3987
             Project: GeoServer
          Issue Type: Bug
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.0.3


This is due to a code interaction:
- the web page tries to grab the store from the resource pool before an id is 
assigned to it to check the configuration is actually working before saving it
- resource pool keyes the store cache by id, which in this case is null
- on cleanup CatalogImpl.getStore(id, ...) is called, and the latter cannot 
handle null ids

Options:
- we key the store cache by the info object instead of by its id like the other 
caches
- we don't store in the cache stores whose info id is null
- we make the catalog tolerant to null ids

I would go for the first or the second. What do you think?



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

        

------------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to