GeoServer

Namespace deletion should check for any store/layer still using the namespace

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.3
  • Fix Version/s: 1.7.4
  • Component/s: UI
  • Labels:
    None
  • Number of attachments :
    0

Description

To reproduce:
1. from a default install
2. navigate to Data > Coverages
3. Choose "img_sample2:Pk50095" and select 'delete'

The following stack trace is produced:

java.lang.NullPointerException
at org.vfny.geoserver.action.data.DataCoveragesSelectAction.coverageInGroup(DataCoveragesSelectAction.java:89)
at org.vfny.geoserver.action.data.DataCoveragesSelectAction.execute(DataCoveragesSelectAction.java:65)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

This bug prevents me cleaning out the default configuration when setting up a new geoserver instance; as a workaround I am going to go look at the data directory.

Activity

Hide
Jody Garnett added a comment -

This bug is preventing me from setting up the CCIP demo server; for now I will go into the filesystem and try not to mess everything up.

Show
Jody Garnett added a comment - This bug is preventing me from setting up the CCIP demo server; for now I will go into the filesystem and try not to mess everything up.
Hide
Andrea Aime added a comment -

Popping up priority, one is not supposed to hit the filesystem and modify the catalog entries by hand

Show
Andrea Aime added a comment - Popping up priority, one is not supposed to hit the filesystem and modify the catalog entries by hand
Hide
Andrea Aime added a comment -

Could not reproduce at first. In order to reproduce one has to delete the namespace in which the coverages are stored before trying to remove the coverages themselves.

Show
Andrea Aime added a comment - Could not reproduce at first. In order to reproduce one has to delete the namespace in which the coverages are stored before trying to remove the coverages themselves.
Hide
Andrea Aime added a comment -

Fixed. The code was checking for datastores using the namespace, but not for coverage stores

Show
Andrea Aime added a comment - Fixed. The code was checking for datastores using the namespace, but not for coverage stores

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: