Skip to content

Adjust persistence REST HTTP response status code#5330

Draft
Nadahar wants to merge 1 commit intoopenhab:mainfrom
Nadahar:rest-persistence-response
Draft

Adjust persistence REST HTTP response status code#5330
Nadahar wants to merge 1 commit intoopenhab:mainfrom
Nadahar:rest-persistence-response

Conversation

@Nadahar
Copy link
Contributor

@Nadahar Nadahar commented Feb 6, 2026

During the evolution of openhab/openhab-webui#3766, it has been determined that the getPersistenceServiceConfiguration API endpoint should return 204 instead of 404 if no matching configuration exists. The reason is that there is no expectation that one should exist.

For a more detailed explanation, see this discussion in the PR, which is summed up here: openhab/openhab-webui#3766 (comment)

I'm holding back updating the "alerts" in distro for #5236 in case this is accepted as well, so that these changes can all be listed together.

…one exists

For further information, see openhab/openhab-webui#3766

Signed-off-by: Ravi Nadahar <[email protected]>
@Nadahar Nadahar requested a review from a team as a code owner February 6, 2026 17:36
@Nadahar
Copy link
Contributor Author

Nadahar commented Feb 6, 2026

Can anyone think of anything else than MainUI that use this endpoint?

Copy link
Contributor

@mherwege mherwege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mherwege
Copy link
Contributor

mherwege commented Feb 6, 2026

I don’t know. Maybe Habapp, @spacemanspiff2007 ?

I am fine with the change.

@Nadahar
Copy link
Contributor Author

Nadahar commented Feb 8, 2026

Doubt seem to have arisen regarding if this is desired or not. I'm converting this to draft until a decision has been made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants