PacketFire / paste-click

Paste text, images, video or any file
http://paste.click
3 stars 1 forks source link

500 responses returned for duplicate objects using GCS Driver #50

Closed ncatelli closed 5 years ago

ncatelli commented 5 years ago

General When posting duplicate objects via the GCS driver, 500 responses are returned for objects that already exist.

To Reproduce Steps to reproduce the behavior:

  1. Post an object echo 'hello' | curl -sD - 'http://paste.click/' --data-binary @-
  2. Post the same object echo 'hello' | curl -sD - 'http://paste.click/' --data-binary @-
echo 'hello' | curl -sD - 'http://paste.click/' --data-binary @-
HTTP/1.1 500 Internal Server Error
Server: openresty/1.13.6.2
Date: Thu, 21 Feb 2019 04:00:59 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 68
Connection: keep-alive
X-Content-Type-Options: nosniff

Unable to save object
http://cdn.paste.click/sZRqySSS0jR8YjW00mERhA

Expected behavior Duplicate objects should return a 200 and the same link as if no error has occurred.

ncatelli commented 5 years ago

This stemmed from a bucket policy issue. this is now resolved