Skip to content

Improved exception if other than the currently active workspace is validated#1925

Merged
copierrj merged 1 commit intodeegree:mainfrom
lat-lon:fix/exceptionIfValidateOtherWorkspace-1875
Jan 28, 2026
Merged

Improved exception if other than the currently active workspace is validated#1925
copierrj merged 1 commit intodeegree:mainfrom
lat-lon:fix/exceptionIfValidateOtherWorkspace-1875

Conversation

@lgoltz
Copy link
Copy Markdown
Contributor

@lgoltz lgoltz commented Jan 19, 2026

Fixes #1875

If REST API `/config/validate/notCrurrentWs' is validated instead of a 500 Internal server status code 400 Bad Request is returned with the following reason

Validating the requested workspace is not allowed: notCrurrentWs is not the currently active workspace.
``

@julianzz98
Copy link
Copy Markdown
Contributor

The improvement was successfully tested. As stated, the deegree REST API now returns the status code 400 with the following reason (e.g.):

Validating the requested workspace is not allowed: deegree-workspace-utah is not the currently active workspace.

@lgoltz lgoltz marked this pull request as ready for review January 19, 2026 19:59
@tfr42 tfr42 added console deegree administration console rest-api deegree REST API (config) and removed console deegree administration console labels Jan 23, 2026
@tfr42 tfr42 added this to the 3.6.6 milestone Jan 23, 2026
@copierrj copierrj merged commit f04af9d into deegree:main Jan 28, 2026
1 check passed
@lgoltz lgoltz deleted the fix/exceptionIfValidateOtherWorkspace-1875 branch February 18, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rest-api deegree REST API (config)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants