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

Use the same regex as the install and uninstall method #1543

Merged
merged 1 commit into from
Jul 12, 2020
Merged

Use the same regex as the install and uninstall method #1543

merged 1 commit into from
Jul 12, 2020

Conversation

silamon
Copy link
Contributor

@silamon silamon commented Jul 11, 2020

The getById method is missing the ":". See the install and uninstall method.

@cweitkamp cweitkamp added bug An unexpected problem or unintended behavior of the Core REST/SSE labels Jul 11, 2020
@@ -138,7 +138,7 @@ public Response getTypes(@HeaderParam("Accept-Language") @ApiParam(value = "lang
}

@GET
@Path("/{extensionId: [a-zA-Z_0-9-]+}")
@Path("/{extensionId: [a-zA-Z_0-9-:]+}")
Copy link
Contributor

Choose a reason for hiding this comment

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

I am a fan of streamlining it but not sure if we should add the colon here or rather remove it from install/uninstall methods.

@kaikreuzer You introduced the colon in eclipse-archived/smarthome#3076 because the marketplace adds marcetplace: prefix. As the Marketplace itself is EOL. What is your opinion on this?

Copy link
Member

Choose a reason for hiding this comment

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

As the Marketplace itself is EOL

I would not say so. What we will drop is the Eclipse IoT Marketplace extension service, but not the general marketplace extension mechanism (see openhab/openhab-addons#6673).
We will therefore need a way to differentiate between "distro" add-ons and stuff that comes from other (external) sources. And using colons for such namespaces imho still makes sense, so I would keep it in place.

@cweitkamp cweitkamp requested a review from kaikreuzer July 11, 2020 19:33
@cweitkamp cweitkamp removed the bug An unexpected problem or unintended behavior of the Core label Jul 11, 2020
@cweitkamp cweitkamp merged commit c788f2f into openhab:master Jul 12, 2020
@cweitkamp cweitkamp added this to the 3.0 milestone Jul 12, 2020
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants