mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[rest] Fix ThingActionsResource does not accept new Thing action UIDs with hash (#4445)
* [rest] Fix ThingActionsResource does not accept new Thing action UIDs due to wrong path RegEx Signed-off-by: Florian Hotze <dev@florianhotze.com>
This commit is contained in:
+3
-1
@@ -217,7 +217,9 @@ public class ThingActionsResource implements RESTResource {
|
||||
|
||||
@POST
|
||||
@RolesAllowed({ Role.USER, Role.ADMIN })
|
||||
@Path("/{thingUID}/{actionUid: [a-zA-Z0-9]+\\.[a-zA-Z0-9]+}")
|
||||
// accept actionUid in the form of "scope.actionTypeUid" or "scope.actionTypeUid#signatureHash"
|
||||
// # is URL encoded as %23
|
||||
@Path("/{thingUID}/{actionUid: [a-zA-Z0-9]+\\.[a-zA-Z0-9]+(%23[A-Fa-f0-9]+)?}")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Operation(operationId = "executeThingAction", summary = "Executes a thing action.", responses = {
|
||||
|
||||
Reference in New Issue
Block a user