Skip to content

deegree REST API returns 500 Internal Server Error when using /config/validate/wsname on inactive workspace #1875

@julianzz98

Description

@julianzz98

When using /config/validate/wsname on another deegree workspace that is not currently running, a 500 Internal Server Error is returned:

curl -i -X GET \
   -H "X-API-Key:695ed4ac267a5acfa568dee472e749a7278ca901" \
 'http://localhost:8080/deegree-webservices/config/validate/deegree-workspace-utah'
HTTP/1.1 500 
Content-Length: 134
Date: Tue, 14 Oct 2025 19:57:58 GMT
Connection: close

Error while processing request: Cannot invoke "org.deegree.workspace.graph.ResourceGraph.toSortedList()" because "this.graph" is null

The logs of the deegree instance in use only show the following output:

deegree-1  | 2025-10-14T19:53:52.391Z  INFO  --- [http-nio-8080-exec-2] org.deegree.services.config.ApiKey       : ***
deegree-1  | 2025-10-14T19:53:52.392Z  INFO  --- [http-nio-8080-exec-2] org.deegree.services.config.ApiKey       : *** NOTE: The REST API is secured, so that the key set in file '/root/.deegree/config.apikey' is required to access it.
deegree-1  | 2025-10-14T19:53:52.392Z  INFO  --- [http-nio-8080-exec-2] org.deegree.services.config.ApiKey       : ***

This behavior conflicts with the documentation at https://download.deegree.org/documentation/3.6.0/html/#anchor-configuration-restapi, which describes the endpoint as following:

GET /config/validate/wsname[/path] – validate workspace with name <wsname> or file in workspace

Metadata

Metadata

Assignees

No one assigned

    Labels

    TMC discussionto be discussed by technical management committee membersbugerror issue and bug (fix)rest-apideegree REST API (config)

    Type

    No fields configured for Bug.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions