I'm using geoserver rest api to control my server.
Recently I encountered problem while creating ImageMosaic.
Running the following command (the file is attached), produces a coverage with inappropriate parameters types:
Fetching the coverage properties, gives me the following XML:
You can see, for example, that `USE_JAI_IMAGEREAD` parameter type is defined as 'string' which is wrong (should be 'boolean').
This becomes a real trouble when I'm trying to use the REST api to UPDATE coverage parameters. Using the given (wrong) type, doesn't update the parameter.
This makes it impossible to update those parameters via the api, unless you guess the correct type (which is impossible to do while using this ability in code).
On the other hand, when the coverage is created via Geoserver control GUI, the parameters type are defined correctly:
linux, ubuntu 17
Confirmed with Geoserver 2.16.1. All boolean parameters appear as strings when the coverage is created with REST. Paramters are turned into boolean if I edit the coverage settings through the UI and save.