{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/1114","repository_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/1114/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/1114/comments","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/1114/events","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/1114","id":175089195,"number":1114,"title":"AWS-SDK - MISSING REQUIRED CLIENT CONFIGURATION OPTIONS region and version","user":{"login":"binhle410","id":1531732,"avatar_url":"https://avatars.githubusercontent.com/u/1531732?v=3","gravatar_id":"","url":"https://api.github.com/users/binhle410","html_url":"https://github.com/binhle410","followers_url":"https://api.github.com/users/binhle410/followers","following_url":"https://api.github.com/users/binhle410/following{/other_user}","gists_url":"https://api.github.com/users/binhle410/gists{/gist_id}","starred_url":"https://api.github.com/users/binhle410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhle410/subscriptions","organizations_url":"https://api.github.com/users/binhle410/orgs","repos_url":"https://api.github.com/users/binhle410/repos","events_url":"https://api.github.com/users/binhle410/events{/privacy}","received_events_url":"https://api.github.com/users/binhle410/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-05T15:03:35Z","updated_at":"2016-09-06T02:21:05Z","closed_at":null,"body":"<!--\r\n    Before you open an issue, make sure this one does not already exists.\r\n    Please also read the \"guidelines for contributing\" link above before posting.\r\n-->\r\nThere is a related issue and the reporter reverted the aws-sdk to an older version, this shouldn't be the way to go. I believe SonataMediaBundle should update its source to fix this bug.\r\n\r\n### Environment\r\ndev and prod\r\n#### Sonata packages\r\nSonataMediaBundle\r\n```bash\r\n$ composer show sonata-project/*\r\nsonata-project/admin-bundle              2.3.10 Symfony SonataAdminBundle\r\nsonata-project/block-bundle              2.2.15 Symfony SonataBlockBundle\r\nsonata-project/cache                     1.0.7  Cache library\r\nsonata-project/classification-bundle     2.2.3  Symfony SonataClassificationBundle\r\nsonata-project/core-bundle               2.3.11 Symfony SonataCoreBundle\r\nsonata-project/datagrid-bundle           2.2    Symfony SonataDatagridBundle\r\nsonata-project/doctrine-extensions       1.0.2  Doctrine2 behavioral extensions\r\nsonata-project/doctrine-orm-admin-bundle 2.3.4  Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle\r\nsonata-project/easy-extends-bundle       2.1.10 Symfony SonataEasyExtendsBundle\r\nsonata-project/exporter                  1.7.0  Lightweight Exporter library\r\nsonata-project/intl-bundle               2.2.4  Symfony SonataIntlBundle\r\nsonata-project/media-bundle              2.3.4  Symfony SonataMediaBundle\r\nsonata-project/notification-bundle       2.3.4  Symfony SonataNotificationBundle\r\nsonata-project/translation-bundle        1.1.0  SonataTranslationBundle\r\n```\r\n\r\n#### Symfony packages\r\n```bash\r\n$ composer show symfony/*\r\nsymfony/assetic-bundle     v2.8.0  Integrates Assetic into Symfony2\r\nsymfony/monolog-bundle     2.11.1  Symfony MonologBundle\r\nsymfony/polyfill-apcu      v1.2.0  Symfony polyfill backporting apcu_* functions to lower PHP versions\r\nsymfony/polyfill-intl-icu  v1.2.0  Symfony polyfill for intl's ICU-related data and classes\r\nsymfony/polyfill-mbstring  v1.2.0  Symfony polyfill for the Mbstring extension\r\nsymfony/polyfill-php54     v1.2.0  Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions\r\nsymfony/polyfill-php55     v1.2.0  Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions\r\nsymfony/polyfill-php56     v1.2.0  Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions\r\nsymfony/polyfill-php70     v1.2.0  Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions\r\nsymfony/polyfill-util      v1.2.0  Symfony utilities for portability of PHP codes\r\nsymfony/security-acl       v2.8.0  Symfony Security Component - ACL (Access Control List)\r\nsymfony/swiftmailer-bundle v2.3.11 Symfony SwiftmailerBundle\r\nsymfony/symfony            v2.8.10 The Symfony PHP framework\r\n```\r\n\r\n#### PHP version\r\n\r\n```bash\r\n$ php -v\r\nPHP 7.0.8 (cli) (built: Jun 21 2016 15:27:20) ( ZTS )\r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies\r\n    with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans\r\n\r\n```\r\n\r\n## Steps to reproduce\r\nJust install SonataMediaBundle and update all dependencies then clear cache\r\n## Expected results\r\nCache cleared successfully\r\n## Actual results\r\nGet error **MISSING REQUIRED CLIENT CONFIGURATION OPTIONS** exception\r\n\r\n```\r\nphp.exe E:\\xampp\\htdocs\\projects\\symfony2\\inspot\\app\\console cache:clear --env=dev\r\n\r\n                                                                                      \r\n  [InvalidArgumentException]                                                          \r\n  Missing required client configuration options ok man?:                              \r\n  region: (string)                                                                    \r\n    A \"region\" configuration value is required for the \"s3\" service                   \r\n    (e.g., \"us-west-2\"). A list of available public regions and endpoints can be      \r\n    found at http://docs.aws.amazon.com/general/latest/gr/rande.html.                 \r\n  version: (string)                                                                   \r\n    A \"version\" configuration value is required. Specifying a version constraint      \r\n    ensures that your code will not be affected by a breaking change made to the      \r\n    service. For example, when using Amazon S3, you can lock your API version to      \r\n    \"2006-03-01\".                                                                     \r\n                                                                                      \r\n    Your build of the SDK has the following version(s) of \"s3\": * \"2006-03-01\"        \r\n                                                                                      \r\n    You may provide \"latest\" to the \"version\" configuration value to utilize the      \r\n    most recent available API version that your client's API provider can find.       \r\n    Note: Using 'latest' in a production application is not recommended.              \r\n                                                                                      \r\n    A list of available API versions can be found on each client's API documentation  \r\n    page: http://docs.aws.amazon.com/aws-sdk-php/v3/api/index.html. If you are        \r\n    unable to load a specific API version, then you may need to update your copy of   \r\n    the SDK.                                                                          \r\n                                                                                      \r\n\r\n\r\nProcess finished with exit code 1 at 22:03:09.\r\nExecution time: 9,703 ms.\r\n```"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/comments/244834853","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/1114#issuecomment-244834853","issue_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/1114","id":244834853,"user":{"login":"binhle410","id":1531732,"avatar_url":"https://avatars.githubusercontent.com/u/1531732?v=3","gravatar_id":"","url":"https://api.github.com/users/binhle410","html_url":"https://github.com/binhle410","followers_url":"https://api.github.com/users/binhle410/followers","following_url":"https://api.github.com/users/binhle410/following{/other_user}","gists_url":"https://api.github.com/users/binhle410/gists{/gist_id}","starred_url":"https://api.github.com/users/binhle410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhle410/subscriptions","organizations_url":"https://api.github.com/users/binhle410/orgs","repos_url":"https://api.github.com/users/binhle410/repos","events_url":"https://api.github.com/users/binhle410/events{/privacy}","received_events_url":"https://api.github.com/users/binhle410/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T02:21:05Z","updated_at":"2016-09-06T02:21:05Z","body":"It was this issue #860 that I meant. The author downgraded aws-sdk to a lesser version.\r\nSo, if the aws/aws-sdk-php is updated to version 3 in a **\"composer update\"** comment, the SonataMediaBundle's S3 config is broken.\r\n\r\nAnyway, I have looked into SonataMediaBundle's latest branch and I do see that **sdk_version: 3** has to be added to under sonata_media.filesystem.s3\r\n\r\nso my config looks like\r\n```\r\nsonata_media:\r\n    filesystem:\r\n        local:\r\n            directory:  %kernel.root_dir%/../web/uploads/media\r\n            create:     false\r\n#        Amazon s3\r\n        s3:\r\n            sdk_version: 3\r\n            bucket: %s3_bucket_name%\r\n            accessKey: %s3_access_key%\r\n            secretKey: %s3_secret_key%\r\n            region: %s3_region%\r\n            directory: %s3_directory%\r\n```\r\nWhere do I go to update the documentation ?"}}
{"actor":{"display_login":"binhle410"}}