Skip to content

Commit

Permalink
fixes #2, better s3 key decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sherzberg committed Aug 16, 2017
1 parent 668cd7a commit bd9f271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<groupId>org.sherzberg.graylog.plugins</groupId>
<artifactId>graylog-plugin-s3</artifactId>
<version>2.3.0-SNAPSHOT</version>
<version>2.3.0-1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public List<S3SNSNotification> parse(Message message) {
notifications.addAll(s3EventNotification.getRecords().stream().map(record -> new S3SNSNotification(
message.getReceiptHandle(),
record.getS3().getBucket().getName(),
record.getS3().getObject().getKey()
record.getS3().getObject().getUrlDecodedKey()
)).collect(Collectors.toList()));
} catch (Exception e) {
LOG.error("Could not parse SNS notification: " + message.getBody(), e);
Expand Down

0 comments on commit bd9f271

Please sign in to comment.