PUT to datasources with method option as `external` not working has expected

Description

Following the REST API documentation here i should be able to do a PUT request to

.
Problem is i cannot get how to do it with an `external` method option.

This is with i'm doing:
I already have a `.zip` file with shapefiles in the geoserver data directory and i do the following PUT:

The file absolute path is in the body and the `myWorkspace` already exists.

Geoserver logs:

It really seems to me that Geoserver is trying to process the file path as an `url` but that should only happen if `method` was `url`.

Also, i'm able to do this request with success if `method` is `file` and the body has the file binary.

Environment

mac os, running Geoserver 2.13 compiled from source.

Assignee

Ian Turton

Reporter

Abel Soares

Triage

None

Fix versions

None

Affects versions

Components

Priority

Low
Configure