Skip to content

GeoServer add layer fails with no error #1645

@pfrollo

Description

@pfrollo

When I add a layer to GeoServer and no layer is added, there is no error given by CLI indicating that no layer was added.

I expect when adding a layer fails that a clear message is given by CLI indicating that no layer was added.

I followed this tutorial and when executed geowave gs layer add gdelt-kde I got the following message:

Add GeoServer layer for 'gdelt-kde: OK : {
  "description": "Please use -a, or choose one of these with -id:",
  "layers":   [
        {
      "id": "gdeltevent_kde",
      "type": "raster"
    },
        {
      "id": "gdeltevent",
      "type": "vector"
    }
  ]
}

This message is generated by org.locationtech.geowave.cli.geoserver.GeoServerRestClient#addLayer. Further inspection of the code reveals that no layer was added in this case because addlayer doesn't know how to deal with multiple adapters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions