Skip to content

Commit

Permalink
0004089: sym_node_security on default channel causes bad things to
Browse files Browse the repository at this point in the history
happen, better to warn user and let trigger create as configured
  • Loading branch information
erilong committed Oct 31, 2019
1 parent 72ab1ab commit 3c5468e
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -1622,12 +1622,7 @@ protected void updateOrCreateDatabaseTriggers(Trigger trigger, Table table,
if (verifyInDatabase) {
Channel channel = configurationService.getChannel(trigger.getChannelId());
if (channel == null) {
errorMessage = String
.format("Trigger %s had an unrecognized channel_id of '%s'. Please check to make sure the channel exists. Creating trigger on the '%s' channel",
trigger.getTriggerId(), trigger.getChannelId(),
Constants.CHANNEL_DEFAULT);
log.error(errorMessage);
trigger.setChannelId(Constants.CHANNEL_DEFAULT);
log.warn("Trigger '{}' has a channel of '{}' not found in sym_channel table", trigger.getTriggerId(), trigger.getChannelId());
}
}

Expand Down

0 comments on commit 3c5468e

Please sign in to comment.