You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/04 03:25:27 UTC

[jira] [Commented] (NIFI-1025) PutS3Object fails if running with Java 8

    [ https://issues.apache.org/jira/browse/NIFI-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14988763#comment-14988763 ] 

ASF GitHub Bot commented on NIFI-1025:
--------------------------------------

Github user trkurc commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/107#discussion_r43836211
  
    --- Diff: nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/s3/TestPutS3Object.java ---
    @@ -87,16 +93,29 @@ public void testStorageClass() throws IOException {
         @Test
         public void testPermissions() throws IOException {
             final TestRunner runner = TestRunners.newTestRunner(new PutS3Object());
    -        runner.setProperty(PutS3Object.BUCKET, "test-bucket-00000000-0000-0000-0000-123456789012");
    +
             runner.setProperty(PutS3Object.CREDENTAILS_FILE, CREDENTIALS_FILE);
    -        runner.setProperty(PutS3Object.FULL_CONTROL_USER_LIST, "28545acd76c35c7e91f8409b95fd1aa0c0914bfa1ac60975d9f48bc3c5e090b5");
    +        runner.setProperty(PutS3Object.BUCKET, BUCKET_NAME);
    +        runner.setProperty(PutS3Object.FULL_CONTROL_USER_LIST,"28545acd76c35c7e91f8409b95fd1aa0c0914bfa1ac60975d9f48bc3c5e090b5");
    +        runner.setProperty(PutS3Object.REGION, REGION);
     
             final Map<String, String> attrs = new HashMap<>();
             attrs.put("filename", "folder/4.txt");
    -        runner.enqueue(Paths.get("src/test/resources/hello.txt"), attrs);
    +        runner.enqueue(getResourcePath(RESOURCE_NAME), attrs);
    +
             runner.run();
     
             runner.assertAllFlowFilesTransferred(PutS3Object.REL_SUCCESS, 1);
         }
     
    -}
    +    @Test
    +    /**
    +     * Run this test to check what version of Joda-time is actually being linked.
    +     *
    +     * @see: https://issues.apache.org/jira/browse/NIFI-1025
    +     * @see: https://github.com/aws/aws-sdk-java/issues/444
    +     */
    +    public void testJodaTime() {
    +        System.out.println(new DateTime().getClass().getProtectionDomain().getCodeSource());
    --- End diff --
    
    This doesn't appear to test for something - just a dump to the screen


> PutS3Object fails if running with Java 8
> ----------------------------------------
>
>                 Key: NIFI-1025
>                 URL: https://issues.apache.org/jira/browse/NIFI-1025
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Mark Payne
>             Fix For: 0.4.0
>
>
> There is a known bug with the version of the AWS SDK (and associated Joda Time library that is being used) that prevents the PutS3Object processor from successfully putting data to Amazon S3 if running the newest version of Java (Java 1.8 update 60). There is a ticket for this in the AWS SDK: https://github.com/aws/aws-sdk-java/issues/444
> We need to update to a newer version of the AWS SDK in order to ensure that this works on Java 1.8.60



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)