Return-Path: X-Original-To: apmail-streams-dev-archive@minotaur.apache.org Delivered-To: apmail-streams-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E24B17375 for ; Tue, 24 Feb 2015 07:32:00 +0000 (UTC) Received: (qmail 11079 invoked by uid 500); 24 Feb 2015 07:32:00 -0000 Delivered-To: apmail-streams-dev-archive@streams.apache.org Received: (qmail 11037 invoked by uid 500); 24 Feb 2015 07:32:00 -0000 Mailing-List: contact dev-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list dev@streams.incubator.apache.org Received: (qmail 11026 invoked by uid 99); 24 Feb 2015 07:32:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 07:32:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Feb 2015 07:31:38 +0000 Received: (qmail 10960 invoked by uid 99); 24 Feb 2015 07:31:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 07:31:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4117BE03E8; Tue, 24 Feb 2015 07:31:35 +0000 (UTC) From: mfranklin To: dev@streams.incubator.apache.org Reply-To: dev@streams.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-streams pull request: STREAMS-243 | Updated S3Configurat... Content-Type: text/plain Message-Id: <20150224073135.4117BE03E8@git1-us-west.apache.org> Date: Tue, 24 Feb 2015 07:31:35 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user mfranklin commented on a diff in the pull request: https://github.com/apache/incubator-streams/pull/167#discussion_r25233223 --- Diff: streams-contrib/streams-amazon-aws/streams-persist-s3/src/main/java/org/apache/streams/s3/S3Configurator.java --- @@ -64,15 +64,15 @@ public static S3WriterConfiguration detectWriterConfiguration(Config s3) { try { s3Configuration = mapper.readValue(s3.root().render(ConfigRenderOptions.concise()), S3WriterConfiguration.class); + + if(!s3Configuration.getWriterPath().endsWith("/")) { + s3Configuration.setWriterPath(s3Configuration.getWriterPath() + "/"); + } } catch (Exception e) { e.printStackTrace(); --- End diff -- since you are in here, remove e.printStackTrace(). If the exception needs to be output to the console, it needs to be output to the logs. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---