Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 30, 2015
  1. @mdomsch

    add requester-pays tests

    mdomsch authored
  2. @mdomsch

    add [payer] command

    mdomsch authored
    which takes the --requester-pays as its argument (or not), and sets
    the payer policy accordingly.
  3. @mdomsch

    Merge pull request #515 from mdomsch/feature/requestor-pays

    mdomsch authored
    Feature/requestor pays
  4. @mdomsch

    move setting requester-pays into S3Request() init

    mdomsch authored
    This way we can catch all all GET and POST calls as
    https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
    indicates we should do.  This also lets us [ls] an object in a
    requester-pays bucket which we couldn't do before.
  5. @mdomsch
  6. @mdomsch

    add --requester-pays (#511)

    mdomsch authored
    This introduces a --requester-pays command line option, which is used
    in the recv_file() function to add the proper
    x-amz-request-payer:requester header to the GET request in downloading
    the file.
Commits on Mar 27, 2015
  1. @mdomsch

    Merge pull request #512 from fviard/fix_invalid_progress_info

    mdomsch authored
    Fix invalid file transfer progress info in case of local2remote and
  2. @fviard

    Fix invalid file transfer progress info in case of local2remote and r…

    fviard authored
    …emote2remote: If there was failed copy, seq number was preserved but previously uploaded file number was forgotten, thus user could have faced an invalid indication like: 14/8 when there is 6 upload following 6 remote copy failures.
Commits on Mar 24, 2015
  1. @mdomsch

    more IOError EPIPE catches

    mdomsch authored
Commits on Mar 18, 2015
  1. @mdomsch

    Merge pull request #508 from fviard/fix_encoding_multipart_filename

    mdomsch authored
    Another fix related to fix encoding issues. (file.name / stream.name are...
  2. @mdomsch

    Merge pull request #499 from fviard/fix_copy_modify_check_errors

    mdomsch authored
    For copy and modify, take care to check if there is an error after the start of the operation
  3. @fviard

    Another fix related to fix encoding issues. (file.name / stream.name …

    fviard authored
    …are bytes, so unicodise them also)
  4. @fviard

    For copy and modify, take care to check if there is an error after th…

    fviard authored
    …e start of the operation (reported by a status 200 but an "Error" root entry in the xml body)
    
    In addition, for the move, It is good to check for the CopyObject xml reply to see if it is a success.
    But, if there is a status of 200 and no "data" in response, don't fail. Other S3 server implementations use only status code and don't return any body when there is no error.
    
    References:
    http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html
    http://doc.s3.amazonaws.com/proposals/copy.html
  5. @mdomsch

    Remove useless imports and unused variables

    mdomsch authored
    as noted by pyflakes.
  6. @mdomsch

    update manpage for formatting

    mdomsch authored
  7. @mdomsch

    remove references to donations

    mdomsch authored
    Since TGRMN Software now has copyright ownership and control of the
    domains, the donation links are obsolete (and little used before now
    anyhow).
  8. @mdomsch

    replace /tmp/ with ~/ in manpage examples

    mdomsch authored
    as suggested by Paul Wise in commit f02d274
  9. @mdomsch
  10. @mdomsch

    escape - and 'Cache-Control' items in manpage

    mdomsch authored
    Suggested by Debian patches.  This automatically escapes dashes and
    the word 'Cache-Control' in the generated manpage.
    
    There is still an instance where the word Cache-Control is getting
    split across newlines due to the 80-character limit, which it doesn't
    catch, but it doesn't break the formatting of the rest of the
    manpage. It just looks like 'Cache- Control' in the result (note the
    extra space after the dash).  I'll live with that.
  11. @mdomsch
  12. @mdomsch

    Merge pull request #504 from LocutusOfBorg/fix-typo

    mdomsch authored
    Fix typo (overriden -> overridden)
  13. @dottedmag @LocutusOfBorg
  14. @dottedmag @LocutusOfBorg
  15. @pabs3 @LocutusOfBorg

    Use user home instead of tmp in examples

    pabs3 authored LocutusOfBorg committed
  16. @LocutusOfBorg

    Fix various typos spot by lintian

    Mikhail Gusarov authored LocutusOfBorg committed
  17. @LocutusOfBorg
Commits on Mar 16, 2015
  1. @mdomsch

    Merge pull request #495 from fviard/batch_encoding_fixes

    mdomsch authored
    Fixes for encoding issues
  2. @mdomsch

    Merge pull request #496 from fviard/fix_for_432

    mdomsch authored
    Fix for issue #432. Read the response from httplib even if there is a 0 ...
  3. @fviard

    Fix wrong exception used for EOF from S3 error during recv_file. (S3E…

    fviard authored
    …rror expect an http response, not a text message)
  4. @fviard

    fix encoding : Added encode_to_s3 and decode_from_s3 function + switc…

    fviard authored
    …hed to "unicode" call instead of "decode" as it is supposed to be more efficient.
Commits on Mar 13, 2015
  1. @fviard
Commits on Mar 12, 2015
  1. @fviard

    Fix for issue #432. Read the response from httplib even if there is a…

    fviard authored
    … 0 byte to read. So httplib doesn't think that there is a response waiting to be read when the next request come.
    
    Straightforward to fix thanks to the detailed analysis of Edwintorok.
    
    <<
    This seems to be due to this in python 2.7.9rc1's httplib:
    
            if self.__state != _CS_REQ_SENT or self.__response:
                raise ResponseNotReady()
    
    Apparently python created a response object for the content-length: 0 reply (for GET /0) and s3cmd
    didn't read/close that response object, and now it gives an error when you try to read anything else on the same persistent connection.
    >>
  2. @fviard

    Pass2 of "fixes encoding/decoding issues": os.walk replaced to handle…

    fviard authored
    … unicodise conversion + fixed the removal of most of useless or invalid unicodise/decodise in the code.
Commits on Mar 11, 2015
  1. @fviard

    Remove useless error import

    fviard authored
  2. @fviard

    Fixes encoding/decoding issues and so support for all strange charact…

    fviard authored
    …ers (chinese, japanese, ...) in file names, folder or path arguments (Should fix bug like #417i) when UTF-8 is not the system def$
    
    Now, in theory, everything that gets in should be converted to unicoded and then things would be converted back to string (user defined encoding) at the outmost parts when dealing with the system.
    When talking to S3, convert unicode to strings in utf-8 encoding.
    
    Validated with run-test.py in a computer with utf-8 as default encoding and a one with ANSI C as default encoding.
Something went wrong with that request. Please try again.