Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

BUG - Meta Tags on PUT Command do not work #89

Open
pl4yradam opened this issue Feb 7, 2020 · 3 comments
Open

BUG - Meta Tags on PUT Command do not work #89

pl4yradam opened this issue Feb 7, 2020 · 3 comments

Comments

@pl4yradam
Copy link

pl4yradam commented Feb 7, 2020

Hi,

When creating a PUT command followed by generating a pre signed request, you are given a correct url containing meta information through the x-amz-meta headers, when you then PUT to this url, the file will be stored (in your tmp bucket) however on reviewing the meta file, the data is not contained in there.

Steps to reproduce

`
/** @var CommandInterface $cmd */
$cmd = $this->s3ClientService->client->getCommand('PutObject', [
'Bucket' => env('S3_BUCKET'),
'Key' => 'imports/' . $filename,
'Metadata' => [
'import_id' => $import->id,
],
]);

        $preSignedRequest = $this->s3ClientService->client->createPresignedRequest($cmd, '+5 minutes');`

This generates the correct presigned url, when you PUT the file to that url, check your /tmp/bucket/keylocation folder look at the meta tag file and the import id will not be there.

NOTE: Locally this does not work
On a DEV environment using actual AWS, this does work.

@ar90n
Copy link
Owner

ar90n commented Feb 7, 2020

@pl4yradam
Thanks for your report. I'm so sorry for inconvenience.
It seems that this issue is caused by the restriction of s3rver which is a backend of serverless-s3-local. So this feature is not supported for now.

@pl4yradam
Copy link
Author

pl4yradam commented Feb 8, 2020 via email

@colesiegel
Copy link

Hey @ar90n it looks like they got back on jamhall/s3rver#591, is there any update for this fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants