Importer raises a NullPointerException if the specified path is wrong

Description

The importer responds with an "HTTP/1.1 201 Created" even if the provided import session informations are wrong and caused errors.

There are two error cases.

In the first case, the data.file path points to an existing directory but a missing file:

This will respond with the following JSON:

And log the following:

In the first case, the data.file path points to an non-existing directory (note VER instead of VAR):

This will respond with the following JSON, note the missing "message" :

with the following log:

Environment

GeoServer 2.13 master on Dockerized Debian

Status

Assignee

Alessio Fabiani

Reporter

Gnafu

Triage

Fix versions

None

Affects versions

Components

Priority

Medium
Configure