8000 When creating an object first try to GET it · Issue #121 · qoobaa/s3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
When creating an object first try to GET it #121
Open
@mustela

Description

@mustela

Guys, I'm trying to create a simple object but when I do it, it first run a GET and of corse since the resource doesn't exists it rise an exception:

s = my_bucket.objects.build "holaaaa/"
s.save
opening connection to my_bucket.s3.amazonaws.com:80...
opened
<- "GET /holaaaa/? HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nDate: Tue, 18 Oct 2016 17:03:03 GMT\r\nAuthorization: AWS xxxxxxx=\r\nHost: my_bucket.s3.amazonaws.com\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"

Is this the expected behavior?

UPDATED: The problem is when you don't set the content of the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0