hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-926) Add Amazon S3 authentication support
Date Thu, 15 Apr 2010 07:00:51 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857207#action_12857207
] 

Asankha C. Perera commented on HTTPCLIENT-926:
----------------------------------------------

My earlier suggestion has been reporting a successful response, but with an error that the
signature did not match which I did not notice .. 

A working solution is to just remove the trailing \r\n which otherwise can be interpreted
as part of another [malformed] request. Since this is only at the end, this should not cause
an issue - but if a \r\n indeed does occur within the header value due to some long signature
etc, that could still cause problems..

For now, I've checked this into SVN

String headerValue = NAME + " " + credentials.getUserPrincipal().getName() + ":" + signature.trim();

cheers
asankha

> Add Amazon S3 authentication support
> ------------------------------------
>
>                 Key: HTTPCLIENT-926
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-926
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: Contrib
>            Reporter: Jean-Philippe Steinmetz
>             Fix For: 4.1 Alpha2
>
>         Attachments: AWSScheme.java, AWSSchemeFactory.java
>
>
> Add support for the the Amazon S3 authentication scheme as defined by the online document:
http://docs.amazonwebservices.com/AmazonS3/latest/index.html?RESTAuthentication.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message