[Geoserver-devel] [jira] (GEOS-6782) NPE after WCS GetCoverage request for nonexistent coverage

Steve Ikeoka created an issue

GeoServer / BugGEOS-6782

NPE after WCS GetCoverage request for nonexistent coverage

Issue Type:

BugBug

Affects Versions:

2.7-beta

Assignee:

Andrea Aime

Attachments:

WCS_GetCoverage_NPE.patch

Components:

WCS

Created:

21/Nov/14 4:15 PM

Fix Versions:

2.7-beta

Priority:

MinorMinor

Reporter:

Steve Ikeoka

When a WCS 1.0.0 or 1.1.1 GetCoverage request is made for a coverage that does not exist, an NPE will be thrown and logged in CoverageCleanerCallback. The KVP parser will detect a missing coverage before executing the getCoverage code so this only affects XML requests. This can be fixed by adding a null check before calling CoverageCleanerCallback.addCoverages(). The WCS 2.0 code already performs the null check so it does not cause an NPE here.

A patch is attached.

Failed to fully dispose coverage: null: java.lang.NullPointerException
at org.geoserver.wcs.CoverageCleanerCallback.disposeCoverage(CoverageCleanerCallback.java:77) [gs-wcs-2.5.jar:2.5]
at org.geoserver.wcs.CoverageCleanerCallback.finished(CoverageCleanerCallback.java:50) [gs-wcs-2.5.jar:2.5]
at org.geoserver.ows.Dispatcher.fireFinishedCallback(Dispatcher.java:307) [gs-ows-2.5.jar:2.5]
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:284) [gs-ows-2.5.jar:2.5]

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo