| The coverageName parameter is ignored when creating an external ImageMosaic through the REST API. The name of the resulting layer is set to the name of the enclosing directory. I am specifically working with database backed ImageMosaics, so I am not sure if this is also an issue with shapefile backed mosaics. The same URL with external.imagemosaic substituted with external.geotiff for instance works as expected. I am setting "content-type" to "text/plain" and "accept" to "application/xml" in my requests. Example, PUT /geoserver/rest/workspaces/ws/coveragestores/mosaic/external.imagemosaic?coverageName=layer (data) /data/mosaic results in a CoverageStore named "mosaic" and a layer named "mosaic" rather than a layer named "layer" PUT /geoserver/rest/workspaces/ws/coveragestores/mosaic/external.geotiff?coverageName=layer (data) /data/mosaic/image1.tiff results in a CoverageStore named "mosaic" and a layer named "layer as expected. |