Skip to content

Commit

Permalink
NIFI-3785: Fixed Rebasing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Freedom9339 committed Feb 12, 2025
1 parent f197809 commit 06a1e13
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,18 +674,16 @@ public Response updateControllerService(
@Path("{id}/move-options")
@Operation(
summary = "Gets the move options for a controller service",
responses = @ApiResponse(content = @Content(schema = @Schema(implementation = ProcessGroupOptionEntity.class))),
security = {
@SecurityRequirement(name = "Read - /flow")
}
)
@ApiResponses(
value = {
responses = {
@ApiResponse(content = @Content(schema = @Schema(implementation = ProcessGroupOptionEntity.class))),
@ApiResponse(responseCode = "400", description = "NiFi was unable to complete the request because it was invalid. The request should not be retried without modification."),
@ApiResponse(responseCode = "401", description = "Client could not be authenticated."),
@ApiResponse(responseCode = "403", description = "Client is not authorized to make this request."),
@ApiResponse(responseCode = "404", description = "The specified resource could not be found."),
@ApiResponse(responseCode = "409", description = "The request was valid but NiFi was not in the appropriate state to process it.")
},
security = {
@SecurityRequirement(name = "Read - /flow")
}
)
public Response getProcessGroupOptions(
Expand Down Expand Up @@ -841,10 +839,6 @@ public Response moveControllerServices(
// authorize the service
final ComponentAuthorizable authorizableControllerService = lookup.getControllerService(id);

if (authorizableControllerService.getAuthorizable().isAuthorized(authorizer, RequestAction.WRITE, user)) {
throw new IllegalStateException("You do not have permission to perform this action.");
}

authorizableControllerService.getAuthorizable().authorize(authorizer, RequestAction.WRITE, user);
final ControllerServiceDTO requestControllerServiceDTO = serviceFacade.getControllerService(id, true).getComponent();

Expand Down

0 comments on commit 06a1e13

Please sign in to comment.