[ https://issues.apache.org/jira/browse/JCLOUDS-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290771#comment-14290771 ]
ASF subversion and git services commented on JCLOUDS-351: --------------------------------------------------------- Commit affad9fa3b66e45c4b7c0bb2483e959dc0f5341a in jclouds's branch refs/heads/master from [~gaul] [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=affad9f ] JCLOUDS-96: JCLOUDS-351: Fix S3 copy if tests Use correct options in testCopyIfUnmodifiedSince, use looser time bounds, and ensure that tests throw HttpResponseException when expected. > testCopyIfModifiedSince fails against AWS-S3 > -------------------------------------------- > > Key: JCLOUDS-351 > URL: https://issues.apache.org/jira/browse/JCLOUDS-351 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore > Affects Versions: 1.6.3 > Reporter: Andrew Gaul > Labels: aws-s3 > Fix For: 1.9.0 > > > {noformat} > testCopyIfModifiedSince(org.jclouds.aws.s3.AWSS3ClientLiveTest) Time > elapsed: 2.929 sec <<< FAILURE! > org.jclouds.aws.AWSResponseException: request PUT > https://gaul-blobstore1330667931334611482.s3.amazonaws.com/pears HTTP/1.1 > failed with code 412, error: AWSError{requestId='...', requestToken='...', > code='PreconditionFailed', message='At least one of the pre-conditions you > specified did not hold', > context='{Condition=x-amz-copy-source-If-Modified-Since, HostId=...}'} > at > org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:76) > at > org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67) > at > org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180) > at > org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150) > at > org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:131) > at > org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:97) > at > org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:58) > at > org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:157) > at > org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:124) > at com.sun.proxy.$Proxy56.copyObject(Unknown Source) > at > org.jclouds.s3.S3ClientLiveTest.testCopyIfModifiedSince(S3ClientLiveTest.java:374) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)