dachcom-digital / pimcore-members

Pimcore Object, Asset and Document Restriction & Frontend Authentication
Other
54 stars 34 forks source link

Use FlySystem for Storage #172

Closed aarongerig closed 1 year ago

aarongerig commented 1 year ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? yes

When you try to download an asset via a protected link (in a AWS S3 setup) it throws the following error:

request.CRITICAL:
Uncaught PHP Exception ErrorException: "User Warning: Error executing "GetObject" on "https://bucket-name.s3.eu-central-1.amazonaws.com/assetshttps";
AWS HTTP error: Client error: `GET https://bucket-name.s3.eu-central-1.amazonaws.com/assetshttps` resulted in a `404 Not Found` response NotFound (client): 404 Not Found (Request-ID: G0V9FEQ3ZT02SEG2)

<?xml version="1.0" encoding="UTF-8"?> <Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>assetshttps</Key><RequestId>G0V9FEQ3ZT02SEG2</RequestId><HostId>bVouZKh8ba/Wg5Y4mlZ1Eq31xL+8z7v260lR4XdRKP6atg0EN8Bmcn0TXtgVTe6MeELYDPrulmY=</HostId></Error>" at /var/www/html/vendor/aws/aws-sdk-php/src/S3/StreamWrapper.php line 764
solverat commented 1 year ago

Fixed with #180