Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where focal point detection will fail if the volume subfolder… #86

Closed

Commits on May 27, 2020

  1. Fix bug where focal point detection will fail if the volume subfolder…

    … 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 a `400 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
    JoshCoady committed May 27, 2020
    Configuration menu
    Copy the full SHA
    569df6d View commit details
    Browse the repository at this point in the history