Skip to content

Commit

Permalink
debug trim. typo (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanoy authored Aug 30, 2021
1 parent 9f2933c commit 993b411
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -61,8 +61,11 @@ public class StatusResource {

@PostConstruct
void trimToken() {
LOGGER.debug("Status match before trim {}", statusToken.trim().equals(statusToken));
statusToken = statusToken.trim();
cleanupToken = cleanupToken.trim();
LOGGER.debug("Status match after trim {}", statusToken.trim().equals(statusToken));

}

@POST
@@ -101,6 +104,7 @@ public Response removeEngagement(@HeaderParam(value = "x-notification-token") St

if(!cleanupToken.equals(secretTokenHeader) || cleanupToken.equals("OFF")) {
LOGGER.error("Invalid cleanup token used");

return Response.status(Status.UNAUTHORIZED).build();
}

2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ lodestar.participants.api/mp-rest/scope=javax.inject.Singleton
webhook.token=${WEBHOOK_TOKEN:t}
cleanup.token=${CLEANUP_TOKEN:OFF}
status.file=status.json
commit.watch.files=${COMMT_WATCH_FILES:engagement.json,participants.json,artifacts.json}
commit.watch.files=${COMMIT_WATCH_FILES:engagement.json,participants.json,artifacts.json}
commit.msg.filter.list=${COMMIT_FILTERED_MESSAGE_LIST:manual_refresh}

# version

0 comments on commit 993b411

Please sign in to comment.