{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/7825","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/7825/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/7825/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/7825/events","html_url":"https://github.com/magento/magento2/issues/7825","id":195830653,"number":7825,"title":"2.1.3 CE - Unable to set attribute set for new product","user":{"login":"rbairwell","id":775269,"avatar_url":"https://avatars.githubusercontent.com/u/775269?v=3","gravatar_id":"","url":"https://api.github.com/users/rbairwell","html_url":"https://github.com/rbairwell","followers_url":"https://api.github.com/users/rbairwell/followers","following_url":"https://api.github.com/users/rbairwell/following{/other_user}","gists_url":"https://api.github.com/users/rbairwell/gists{/gist_id}","starred_url":"https://api.github.com/users/rbairwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbairwell/subscriptions","organizations_url":"https://api.github.com/users/rbairwell/orgs","repos_url":"https://api.github.com/users/rbairwell/repos","events_url":"https://api.github.com/users/rbairwell/events{/privacy}","received_events_url":"https://api.github.com/users/rbairwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-15T15:14:28Z","updated_at":"2016-12-15T15:14:28Z","closed_at":null,"body":"<!--- Provide a general summary of the issue in the Title above -->\r\n<!--- Before adding new issues, please, check this article https://github.com/magento/magento2/wiki/Issue-reporting-guidelines-->\r\n\r\n### Preconditions\r\n<!--- Provide a more detailed information of environment you use -->\r\n<!--- Magento version, tag, HEAD, etc., PHP & MySQL version, etc.. -->\r\n1. Magento 2.1.3 CE (from Composer)\r\n2. PHP v7.0.14 Apache\r\n\r\nThis was a 2.1.2 install which was then upgraded to 2.1.3 before any products/attributes were setup. Products/attributes were imported from 1.7.0.2 using the data-migration-tool.\r\n\r\n### Steps to reproduce\r\n<!--- Provide a set of unambiguous steps to reproduce this bug include code, if relevant  -->\r\n1.  Create an attribute set (I'm using some imported from Magento 1.7)\r\n2. Go to Products->Catalog and Select \"Add Product\" and Simple Product (Configurable Product also fails, not tested another). URL is currently https://XXXX/catalog/product/new/set/21/type/simple/key/KEY/\r\n3. Change the \"Attribute Set\" dropdown from Default to anything else.\r\nA POST call is made to:\r\nhttps://XXXX/admin/catalog/product/reload/type/simple/store/0/popup/1/componentJson/1/prev_set_id/21/key/KEY/?set=15&isAjax=true\r\n[post data includes a form_key and returns 181Kb of JSON]\r\nanother POST is made to:\r\nhttps://XXXX/admin/catalog/product/reload/type/simple/store/0/popup/1/componentJson/1/prev_set_id/15/key/KEY/?set=undefined&isAjax=true\r\nwhich fails with a 503 Service Unavailable code\r\n[post data includes a form_key and returns a standard \"There has been an error processing your request\" with the corresponding var/report file containing:\r\n\r\n```\r\na:4:{i:0;s:37:\"attribute_set_id is a required field.\";i:1;s:4163:\"#0 /WEBROOT/vendor/magento/module-eav/Model/Attribute/GroupRepository.php(111): Magento\\Framework\\Exception\\InputException::requiredField('attribute_set_i...')\r\n#1 /WEBROOT/vendor/magento/module-catalog/Model/ProductAttributeGroupRepository.php(57): Magento\\Eav\\Model\\Attribute\\GroupRepository->getList(Object(Magento\\Framework\\Api\\SearchCriteria))\r\n#2 /WEBROOT/vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php(426): Magento\\Catalog\\Model\\ProductAttributeGroupRepository->getList(Object(Magento\\Framework\\Api\\SearchCriteria))\r\n#3 /WEBROOT/vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php(241): Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->getGroups()\r\n#4 /WEBROOT/vendor/magento/module-catalog/Ui/DataProvider/Product/Form/ProductDataProvider.php(68): Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\Modifier\\Eav->modifyMeta(Array)\r\n#5 /WEBROOT/vendor/magento/framework/View/Element/UiComponentFactory.php(269): Magento\\Catalog\\Ui\\DataProvider\\Product\\Form\\ProductDataProvider->getMeta()\r\n#6 /WEBROOT/vendor/magento/framework/View/Element/UiComponentFactory.php(164): Magento\\Framework\\View\\Element\\UiComponentFactory->mergeMetadata('product_form', Array, false)\r\n#7 /WEBROOT/vendor/magento/framework/View/Layout/Generator/UiComponent.php(124): Magento\\Framework\\View\\Element\\UiComponentFactory->create('product_form', NULL, Array)\r\n#8 /WEBROOT/vendor/magento/framework/View/Layout/Generator/UiComponent.php(93): Magento\\Framework\\View\\Layout\\Generator\\UiComponent->generateComponent(Object(Magento\\Framework\\View\\Layout\\Data\\Structure), 'product_form', Array, Object(Magento\\Framework\\View\\Layout\\Interceptor))\r\n#9 /WEBROOT/vendor/magento/framework/View/Layout/GeneratorPool.php(86): Magento\\Framework\\View\\Layout\\Generator\\UiComponent->process(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Generator\\Context))\r\n#10 /WEBROOT/vendor/magento/framework/View/Layout.php(327): Magento\\Framework\\View\\Layout\\GeneratorPool->process(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Generator\\Context))\r\n#11 /WEBROOT/var/generation/Magento/Framework/View/Layout/Interceptor.php(89): Magento\\Framework\\View\\Layout->generateElements()\r\n#12 /WEBROOT/vendor/magento/framework/View/Layout/Builder.php(129): Magento\\Framework\\View\\Layout\\Interceptor->generateElements()\r\n#13 /WEBROOT/vendor/magento/framework/View/Layout/Builder.php(65): Magento\\Framework\\View\\Layout\\Builder->generateLayoutBlocks()\r\n#14 /WEBROOT/vendor/magento/framework/View/Layout.php(244): Magento\\Framework\\View\\Layout\\Builder->build()\r\n#15 /WEBROOT/vendor/magento/framework/View/Layout.php(935): Magento\\Framework\\View\\Layout->build()\r\n#16 /WEBROOT/var/generation/Magento/Framework/View/Layout/Interceptor.php(492): Magento\\Framework\\View\\Layout->getOutput()\r\n#17 /WEBROOT/vendor/magento/framework/View/Result/Layout.php(181): Magento\\Framework\\View\\Layout\\Interceptor->getOutput()\r\n#18 /WEBROOT/vendor/magento/framework/View/Result/Layout.php(164): Magento\\Framework\\View\\Result\\Layout->render(Object(Magento\\Framework\\App\\Response\\Http\\Interceptor))\r\n#19 /WEBROOT/var/generation/Magento/Framework/View/Result/Layout/Interceptor.php(89): Magento\\Framework\\View\\Result\\Layout->renderResult(Object(Magento\\Framework\\App\\Response\\Http\\Interceptor))\r\n#20 /WEBROOT/vendor/magento/framework/App/Http.php(139): Magento\\Framework\\View\\Result\\Layout\\Interceptor->renderResult(Object(Magento\\Framework\\App\\Response\\Http\\Interceptor))\r\n#21 /WEBROOT/vendor/magento/framework/App/Bootstrap.php(258): Magento\\Framework\\App\\Http->launch()\r\n#22 /WEBROOT/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))\r\n#23 {main}\";s:3:\"url\";s:192:\"/XXXX/catalog/product/reload/type/configurable/store/0/popup/1/componentJson/1/prev_set_id/16/key/9b342c123e56ef9b1123af9d7cc8711bb6206efb3f693d9f74d1028b926d8834/?set=undefined&isAjax=true\";s:11:\"script_name\";s:10:\"/index.php\";}\r\n```\r\n\r\nanother POST is made to:\r\nhttps://XXXX/admin/catalog/product/reload/type/simple/store/0/popup/1/componentJson/1/prev_set_id/15/key/KEY/?set=&isAjax=true\r\nwhich fails with a 404 Forbidden code (and HTML is returned)\r\n\r\n### Expected result\r\n1. The list of attributes is updated\r\n\r\n### Actual result\r\n1. The \"Please wait\" spinner continues to show.\r\n\r\n<!--- (This may be platform independent comment) -->\r\n"}}
{"actor":{"display_login":"rbairwell"}}