Giter Club home page Giter Club logo

aws-s3's People

Contributors

evancarroll avatar jdrago999 avatar leejo avatar robin13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aws-s3's Issues

Load / hash order bugs in use of Moose attributes (perl 5.18+)

There are critical hash ordering bugs in this distribution's modules with the use of perl 5.18 and above. I have added a test case in my fork, which shows bugs in the Signer module, the commit message describes the issue:

96b6b1b

The test failure is typical of hash/load order bugs. It sporadically fails with 5.18 but passes with 5.16. The bug may be caused by the fact that some attributes depend on others but not all are lazy.

I have also noticed that some of the attributes have rather odd definitions in that they are required => 1 but also lazy => 1 and have a default. This is a contradiction in all but the narrowest use case (required+lazy+default can make sense for an attribute which has a clearer).

I will look into fixing this in my branch and raise a pull-request if necessary. I would say in its current state the distribution is broken with 5.18+ as the Signer module will not always correctly sign the request.

AWS::S3::File Zero byte file

Been running into an issue while accessing an object that is zero bytes. Here is the error returned.

Attribute (size) does not pass the type constraint because: Validation failed for 'Int' with value undef at constructor AWS::S3::File::new (defined at /usr/local/share/perl/5.14.2/AWS/S3/File.pm line 195) line 106
AWS::S3::File::new('AWS::S3::File', 'bucket', 'AWS::S3::Bucket=HASH(0x3112b80)', 'key', 'cases/00398535/a0i30000001ClJcAAK/Status.html', 'size', undef, 'contenttype', 'application/octet-stream', 'etag', '"d41d8cd98f00b204e9800998ecf8427e"', 'lastmodified', 'Fri, 13 Mar 2015 01:06:04 GMT', 'is_encrypted', 0) called at /usr/local/share/perl/5.14.2/AWS/S3/Bucket.pm line 181
AWS::S3::Bucket::file('AWS::S3::Bucket=HASH(0x3112b80)', 'cases/00398535/a0i30000001ClJcAAK/Status.html') called at lib/s3.pm line 64
s3::getObj('s3=HASH(0x2ab3000)', 'cases/00398535/a0i30000001ClJcAAK/Status.html') called at obj-bak.pl line 473

Move from VSO to Moose/Mouse

As VSO is deprecated in favour if Mouse/Mouse, would it be possible to move to Moose?
If you agree, I can write the patch.

Bugs from merger of #3.

I highlighted some of them robin13@933e0ef

The test now errors with

 Can't locate object method "contenttype" via package "AWS::S3::File" at t/010-basic/010-basic.t line 215.
 at t/010-basic/010-basic.t line 215

It appears as if this patch

  1. cuddles the elses
  2. renames some occurances of contenttype to content_type while leaving others untouched
  3. fails tests because of references to older "contenttype" and not new "content_type"

"contenttype" occurs in lib/AWS/S3/HTTPRequest.pm and lib/AWS/S3/Bucket.pm -- neither of these occurances were changed either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.