Skip to content

Commit

Permalink
Stream Enrich: fix incorrect parsing of S3 urls (fixes #2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Nov 15, 2016
1 parent cb3920e commit a769b19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ object KinesisEnrichApp extends App {
val targetFile = new File(uriFilePair._2)

// Ensure uri does not have doubled slashes
val cleanUri = new java.net.URI(uriFilePair._1.toString.replaceAll("(?<!(http:|https:))//", "/"))
val cleanUri = new java.net.URI(uriFilePair._1.toString.replaceAll("(?<!(http:|https:|s3:))//", "/"))

// Download the database file if it doesn't already exist or is empty
// See http://stackoverflow.com/questions/10281370/see-if-file-is-empty
Expand Down

0 comments on commit a769b19

Please sign in to comment.