Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REST] Added validation for relation between ThingUID and BridgeUID #1704

Merged
merged 1 commit into from
Oct 17, 2020

Conversation

cweitkamp
Copy link
Contributor

@cweitkamp cweitkamp commented Oct 8, 2020

  • Check for valid ThingUID when creating a Thing which is related to a Bridge

Similar to #1481

My first idea was to add the check inside ThingRegistryImpl.createThingOfType(ThingTypeUID, ThingUID, ThingUID, String, Configuration) but I was not sure if it is the best idea to throw an IAE if the given ThingUID does not match as it will be API breaking.

Maybe we should not merge it until we have a valid solution for openhab/openhab-webui#380.

Signed-off-by: Christoph Weitkamp github@christophweitkamp.de

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp force-pushed the bugfix-rest-thinguid-bridgeuid branch from c90d310 to 47beed1 Compare October 16, 2020 18:32
@cweitkamp cweitkamp requested a review from a team October 16, 2020 18:32
@kaikreuzer kaikreuzer added rebuild Triggers the Jenkins PR build and removed rebuild Triggers the Jenkins PR build labels Oct 17, 2020
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Thanks!

@kaikreuzer kaikreuzer merged commit 4ba7077 into openhab:master Oct 17, 2020
@cweitkamp cweitkamp deleted the bugfix-rest-thinguid-bridgeuid branch October 17, 2020 17:01
@kaikreuzer kaikreuzer added this to the 3.0.0.M2 milestone Nov 2, 2020
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
…#1704)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
GitOrigin-RevId: 4ba7077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core REST/SSE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants