Skip to content

Commit

Permalink
[rest] Fix ThingActionsResource does not accept new Thing action UIDs…
Browse files Browse the repository at this point in the history
… with hash (#4445)

* [rest] Fix ThingActionsResource does not accept new Thing action UIDs due to wrong path RegEx

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Nov 11, 2024
1 parent 0d031a3 commit 31d3434
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ public Response getActions(@PathParam("thingUID") @Parameter(description = "thin

@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 = {
Expand Down

0 comments on commit 31d3434

Please sign in to comment.