Fix bug where focal point detection will fail if the volume subfolder… #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… setting contains an alias.
It fails because the alias is passed unexpanded to AWS as part of the object name.
Example error log:
2020-05-26 21:12:57 [-][1][-][error][craft\controllers\AssetsController::actionUpload] An error occurred when saving an asset: Error executing "DetectFaces" on "https://rekognition.us-east-1.amazonaws.com"; AWS HTTP error: Client error:
POST https://rekognition.us-east-1.amazonaws.com
resulted in a400 Bad Request
response:{"__type":"InvalidS3ObjectException","Code":"InvalidS3ObjectException","Logref":"ab2b33db-a156-41c5-8050-fd4e0b1d8c72"," (truncated...)
InvalidS3ObjectException (client): Unable to get object metadata from S3. Check object key, region and/or access permissions. - {"__type":"InvalidS3ObjectException","Code":"InvalidS3ObjectException","Logref":"ab2b33db-a156-41c5-8050-fd4e0b1d8c72","Message":"Unable to get object metadata from S3. Check object key, region and/or access permissions."}
in /var/app/vendor/craftcms/cms/src/controllers/AssetsController.php:375
in /var/app/vendor/craftcms/cms/src/web/Controller.php:178
in /var/app/vendor/craftcms/cms/src/web/Application.php:291