{"action":"created","issue":{"url":"https://api.github.com/repos/springbot/magento2-plugin/issues/35","repository_url":"https://api.github.com/repos/springbot/magento2-plugin","labels_url":"https://api.github.com/repos/springbot/magento2-plugin/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/springbot/magento2-plugin/issues/35/comments","events_url":"https://api.github.com/repos/springbot/magento2-plugin/issues/35/events","html_url":"https://github.com/springbot/magento2-plugin/issues/35","id":361777105,"node_id":"MDU6SXNzdWUzNjE3NzcxMDU=","number":35,"title":"New ProductRepositoryInterfaceV2 breaks Magento WebAPI functionality for swagger","user":{"login":"zack6849","id":1343898,"node_id":"MDQ6VXNlcjEzNDM4OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1343898?v=4","gravatar_id":"","url":"https://api.github.com/users/zack6849","html_url":"https://github.com/zack6849","followers_url":"https://api.github.com/users/zack6849/followers","following_url":"https://api.github.com/users/zack6849/following{/other_user}","gists_url":"https://api.github.com/users/zack6849/gists{/gist_id}","starred_url":"https://api.github.com/users/zack6849/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zack6849/subscriptions","organizations_url":"https://api.github.com/users/zack6849/orgs","repos_url":"https://api.github.com/users/zack6849/repos","events_url":"https://api.github.com/users/zack6849/events{/privacy}","received_events_url":"https://api.github.com/users/zack6849/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-19T14:30:11Z","updated_at":"2018-09-26T18:54:21Z","closed_at":null,"author_association":"NONE","body":"Hi There!\r\n\r\nIt seems your new class introduced in commit https://github.com/springbot/magento2-plugin/commit/777cc3e79a3d73af00fde0543aae46198ed6cf6f#diff-7ecff4ab7ab3441d131e4334a05736ad breaks magento 2's swagger interface with an error because it expects the string to end with \"Interface\" and yours is InterfaceV2, making the code in Magento\\\\WebApi\\\\Model\\\\ServiceMetadata::getServiceName() fail as there are only 3 matches, not 4.\r\n\r\n![screen shot 2018-09-19 at 10 33 26 am](https://user-images.githubusercontent.com/1343898/45760180-7f307b00-bbf7-11e8-9cac-fee594fdfebe.png)\r\n\r\nResulting in the following stack trace:\r\n\r\n```\r\nNotice: Undefined offset: 4 in /var/www/html/vendor/magento/module-webapi/Model/ServiceMetadata.php on line 216\r\n\r\n#0 /var/www/html/vendor/magento/module-webapi/Model/ServiceMetadata.php(216): Magento\\Framework\\App\\ErrorHandler-&gt;handler(8, 'Undefined offse...', '/var/www/html/v...', 216, Array)\r\n#1 /var/www/html/vendor/magento/module-webapi/Model/ServiceMetadata.php(115): Magento\\Webapi\\Model\\ServiceMetadata-&gt;getServiceName('Springbot\\\\Main\\\\...', 'V2')\r\n#2 /var/www/html/vendor/magento/module-webapi/Model/ServiceMetadata.php(156): Magento\\Webapi\\Model\\ServiceMetadata-&gt;initServicesMetadata()\r\n#3 /var/www/html/vendor/magento/module-webapi/Model/Rest/Swagger/Generator.php(923): Magento\\Webapi\\Model\\ServiceMetadata-&gt;getServicesConfig()\r\n#4 /var/www/html/vendor/magento/module-webapi/Controller/Rest/SchemaRequestProcessor.php(53): Magento\\Webapi\\Model\\Rest\\Swagger\\Generator-&gt;getListOfServices()\r\n#5 /var/www/html/vendor/magento/module-webapi/Controller/Rest.php(244): Magento\\Webapi\\Controller\\Rest\\SchemaRequestProcessor-&gt;process(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\r\n#6 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest-&gt;dispatch(Object(Magento\\Framework\\App\\Request\\Http))\r\n#7 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor-&gt;___callParent('dispatch', Array)\r\n#8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor-&gt;Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\r\n#9 /var/www/html/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\Interceptor-&gt;___callPlugins('dispatch', Array, Array)\r\n#10 /var/www/html/vendor/magento/framework/App/Http.php(135): Magento\\Webapi\\Controller\\Rest\\Interceptor-&gt;dispatch(Object(Magento\\Framework\\App\\Request\\Http))\r\n#11 /var/www/html/vendor/magento/framework/App/Bootstrap.php(257): Magento\\Framework\\App\\Http-&gt;launch()\r\n#12 /var/www/html/index.php(39): Magento\\Framework\\App\\Bootstrap-&gt;run(Object(Magento\\Framework\\App\\Http\\Interceptor))\r\n#13 {main}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/springbot/magento2-plugin/issues/comments/424830210","html_url":"https://github.com/springbot/magento2-plugin/issues/35#issuecomment-424830210","issue_url":"https://api.github.com/repos/springbot/magento2-plugin/issues/35","id":424830210,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDgzMDIxMA==","user":{"login":"JoeyK4816","id":20064786,"node_id":"MDQ6VXNlcjIwMDY0Nzg2","avatar_url":"https://avatars0.githubusercontent.com/u/20064786?v=4","gravatar_id":"","url":"https://api.github.com/users/JoeyK4816","html_url":"https://github.com/JoeyK4816","followers_url":"https://api.github.com/users/JoeyK4816/followers","following_url":"https://api.github.com/users/JoeyK4816/following{/other_user}","gists_url":"https://api.github.com/users/JoeyK4816/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeyK4816/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeyK4816/subscriptions","organizations_url":"https://api.github.com/users/JoeyK4816/orgs","repos_url":"https://api.github.com/users/JoeyK4816/repos","events_url":"https://api.github.com/users/JoeyK4816/events{/privacy}","received_events_url":"https://api.github.com/users/JoeyK4816/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T18:54:21Z","updated_at":"2018-09-26T18:54:21Z","author_association":"CONTRIBUTOR","body":"@zack6849 \r\nThanks for your report. This issue is being addressed in the pull request #37. We are currently testing the modification but had to make more updates than what was in your pull request. This PR will be merged into release version 1.6.12 later today."}}
{"actor":{"display_login":"JoeyK4816"}}