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

ASF GitHub Bot commented on LIBCLOUD-833:
-----------------------------------------

GitHub user lmorfitt opened a pull request:

    https://github.com/apache/libcloud/pull/839

    [LIBCLOUD-833] and [LIBCLOUD-834](workaround)

    ## Changes Title (replace this with a logical title for your changes)
    
    ### Description
    
    [LIBCLOUD-833] - The AWS China region requires V4 authentication. Set the 
auth version to v4 allowing the region to function.
    
     [LIBCLOUD-834](workaround) - With V4 auth enabled the upload_via_stream 
function does not work and fails with an "InvalidCreds" error. This work around 
disables the supports_s3_multipart_upload section allow files to be uploaded to 
V4 regions.
    
    For more information on contributing, please see 
[Contributing](http://libcloud.readthedocs.org/en/latest/development.html#contributing)
    section of our documentation.
    
    ### Status
    
    Replace this: describe the PR status. Examples:
    -  ready for review
    
    ### Checklist (tick everything that applies)
    
    - [X] [Code 
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
 (required, can be done after the PR checks)
    - [ ] Documentation
    - [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
    - [ ] 
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
 (required for bigger changes)


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lmorfitt/libcloud trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/839.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #839
    
----
commit ee0914d4cc5727542168eccc30cab5ce1204e9f7
Author: Luke Morfitt <[email protected]>
Date:   2016-07-11T12:43:04Z

    China requrest v4 authentication

commit 62d0c4b824af8f47e872bf25570d5fd308c6d801
Author: Luke Morfitt <[email protected]>
Date:   2016-07-11T12:46:22Z

    V4 authenticaion and multipart_upload currently fails with "InvalidCreds" 
error. Disabled the upload using mutlipart uploads. Disabled 
upload_object_via_stream from using multipart uploads which allows V4 Auth 
uploads to complete.

----


> China s3 requires V4 authentication
> -----------------------------------
>
>                 Key: LIBCLOUD-833
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-833
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>         Environment: Production
>            Reporter: Luke Morfitt
>            Priority: Blocker
>
> Versions 1.1.0
> The china region requires v4 authentication in order to function as v2 is not 
> supported in the region.
> This is currently blocking us from using libcloud with the AWS China region.



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

Reply via email to