Gabriel Roldan ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A54db8b09-1e64-436a-adac-248049585cee ) *created* an issue
GeoServer ( https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNmMwN2RlN2QwZWRmNDRhMDg1MDU5OTQ4MmY5MDExYWIiLCJwIjoiaiJ9 ) / Bug ( https://osgeo-org.atlassian.net/browse/GEOS-10425?atlOrigin=eyJpIjoiNmMwN2RlN2QwZWRmNDRhMDg1MDU5OTQ4MmY5MDExYWIiLCJwIjoiaiJ9 ) GEOS-10425 ( https://osgeo-org.atlassian.net/browse/GEOS-10425?atlOrigin=eyJpIjoiNmMwN2RlN2QwZWRmNDRhMDg1MDU5OTQ4MmY5MDExYWIiLCJwIjoiaiJ9 ) NullPointerException on new AbstractAccessRuleDAO.lock() method ( https://osgeo-org.atlassian.net/browse/GEOS-10425?atlOrigin=eyJpIjoiNmMwN2RlN2QwZWRmNDRhMDg1MDU5OTQ4MmY5MDExYWIiLCJwIjoiaiJ9 ) Issue Type: Bug Assignee: Niels Charlier ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1d2c4019-de4e-4624-8b27-2486941601cf ) Created: 19/Mar/22 1:57 AM Priority: Medium Reporter: Gabriel Roldan ( https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A54db8b09-1e64-436a-adac-248049585cee ) https://osgeo-org.atlassian.net/browse/GEOS-10390 introduced a new method, AbstractAccessRuleDAO.lock() as part of https://github.com/geoserver/geoserver/pull/5705 which unconditionally calls in the watcher instance variable, which can be null, when SecuredResourceNameChangeListener calls dao.lock(): public Lock lock() { return watcher.getResource().lock(); } It all works only if there’s a security folder. The other method that uses that variable does perform a null check: public boolean isModified() { return watcher != null && watcher.isStale(); } ( https://osgeo-org.atlassian.net/browse/GEOS-10425#add-comment?atlOrigin=eyJpIjoiNmMwN2RlN2QwZWRmNDRhMDg1MDU5OTQ4MmY5MDExYWIiLCJwIjoiaiJ9 ) Add Comment ( https://osgeo-org.atlassian.net/browse/GEOS-10425#add-comment?atlOrigin=eyJpIjoiNmMwN2RlN2QwZWRmNDRhMDg1MDU5OTQ4MmY5MDExYWIiLCJwIjoiaiJ9 ) 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#100197- sha1:003460b )
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel