Marco Volpini ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480 ) *created* an issue
GeoServer ( https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMzRmZmY3YzJmZjUyNGJhZmEzOTk2MDY3ZWM1OTM3ZWMiLCJwIjoiaiJ9 ) / Bug ( https://osgeo-org.atlassian.net/browse/GEOS-10062?atlOrigin=eyJpIjoiMzRmZmY3YzJmZjUyNGJhZmEzOTk2MDY3ZWM1OTM3ZWMiLCJwIjoiaiJ9 ) GEOS-10062 ( https://osgeo-org.atlassian.net/browse/GEOS-10062?atlOrigin=eyJpIjoiMzRmZmY3YzJmZjUyNGJhZmEzOTk2MDY3ZWM1OTM3ZWMiLCJwIjoiaiJ9 ) LayerCache CatalogLinester might not be attached to the catalog at startup ( https://osgeo-org.atlassian.net/browse/GEOS-10062?atlOrigin=eyJpIjoiMzRmZmY3YzJmZjUyNGJhZmEzOTk2MDY3ZWM1OTM3ZWMiLCJwIjoiaiJ9 ) Issue Type: Bug Assignee: Marco Volpini ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480 ) Created: 13/May/21 9:21 AM Priority: Medium Reporter: Marco Volpini ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480 ) The issue has been encountered in a dev environment runnin GeoServer from Intellij on Windows (but not when running tests). The GeoServerLoader pick up the listener from the first catalog object ( https://github.com/geoserver/geoserver/blob/45e6bb1db06794c95c2a7479da53a684766d7f22/src/main/src/main/java/org/geoserver/config/GeoServerLoader.java#L441 ) being created before sync it with the catalog being created from an eventully existing catalog.xml, so that they are not lost after the sync process. However in this case the readCatalog method on the catalog2, issue the bean creation of the AccessManager being that attach the layerGroup listener to the available catalog1 instance, causing the listener to be lost when the sync happens. To fix is suggested a refactoring of the current code to retrieve the listeners after the read of the catalog2 ended. ( https://osgeo-org.atlassian.net/browse/GEOS-10062#add-comment?atlOrigin=eyJpIjoiMzRmZmY3YzJmZjUyNGJhZmEzOTk2MDY3ZWM1OTM3ZWMiLCJwIjoiaiJ9 ) Add Comment ( https://osgeo-org.atlassian.net/browse/GEOS-10062#add-comment?atlOrigin=eyJpIjoiMzRmZmY3YzJmZjUyNGJhZmEzOTk2MDY3ZWM1OTM3ZWMiLCJwIjoiaiJ9 ) Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100160- sha1:2fc23b5 )
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
