Style modifications through restconfig do not cause a catalog event to be
thrown, preventing GWC to clear the cache
-------------------------------------------------------------------------------------------------------------------
Key: GEOS-4367
URL: http://jira.codehaus.org/browse/GEOS-4367
Project: GeoServer
Issue Type: Bug
Components: REST
Affects Versions: 2.1-RC1
Reporter: Gabriel Roldán
Assignee: Gabriel Roldán
Fix For: 2.1-RC2
The problem is the restconfig API is not calling Catalog.save(StyleInfo), so
the Catalog is not issuing a notification event that the GWC listener can take
and truncate the affected layers.
If the style is modified through the GeoServer UI though, the cache _is_
cleared for the affected layers.
The {org.geoserver.catalog.rest.StyleResource} class, instead of modifying the
StyleInfo, goes under the hood making:
{code}
protected void handleObjectPut(Object object) throws Exception {
...
else if ( object instanceof Style ) {
StyleInfo s = catalog.getStyleByName( style );
catalog.getResourcePool().writeStyle( s, (Style) object, true );
}
LOGGER.info( "PUT style " + style);
}
{code}
which effectively causes the style to be written down to its .sld file and
cleared from the ResourcePool cache, but doesn't cause the notification event
to be thrown.
--
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
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel