payload: {"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/14080","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/14080/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/14080/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/14080/events","html_url":"https://github.com/magento/magento2/issues/14080","id":304747820,"node_id":"MDU6SXNzdWUzMDQ3NDc4MjA=","number":14080,"title":"Category path is the same as key producing duplicate URL issue","user":{"login":"AaronKaa","id":523347,"node_id":"MDQ6VXNlcjUyMzM0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/523347?v=4","gravatar_id":"","url":"https://api.github.com/users/AaronKaa","html_url":"https://github.com/AaronKaa","followers_url":"https://api.github.com/users/AaronKaa/followers","following_url":"https://api.github.com/users/AaronKaa/following{/other_user}","gists_url":"https://api.github.com/users/AaronKaa/gists{/gist_id}","starred_url":"https://api.github.com/users/AaronKaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AaronKaa/subscriptions","organizations_url":"https://api.github.com/users/AaronKaa/orgs","repos_url":"https://api.github.com/users/AaronKaa/repos","events_url":"https://api.github.com/users/AaronKaa/events{/privacy}","received_events_url":"https://api.github.com/users/AaronKaa/received_events","type":"User","site_admin":false},"labels":[{"id":1283696669,"node_id":"MDU6TGFiZWwxMjgzNjk2NjY5","url":"https://api.github.com/repos/magento/magento2/labels/Component:%20Url","name":"Component: Url","color":"7fb703","default":false,"description":null},{"id":686420665,"node_id":"MDU6TGFiZWw2ODY0MjA2NjU=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Clear%20Description","name":"Issue: Clear Description","color":"0e8a16","default":false,"description":"Gate 2 Passed. Manual verification of the issue description passed"},{"id":686476746,"node_id":"MDU6TGFiZWw2ODY0NzY3NDY=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Confirmed","name":"Issue: Confirmed","color":"0e8a16","default":false,"description":"Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed"},{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Format%20is%20valid","name":"Issue: Format is valid","color":"0e8a16","default":false,"description":"Gate 1 Passed. Automatic verification of issue format passed"},{"id":21716835,"node_id":"MDU6TGFiZWwyMTcxNjgzNQ==","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Ready%20for%20Work","name":"Issue: Ready for Work","color":"0e8a16","default":false,"description":"Gate 4. Acknowledged. Issue is added to backlog and ready for development"},{"id":686477069,"node_id":"MDU6TGFiZWw2ODY0NzcwNjk=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.1.x","name":"Reproduced on 2.1.x","color":"e99695","default":false,"description":"The issue has been reproduced on latest 2.1 release"},{"id":686477126,"node_id":"MDU6TGFiZWw2ODY0NzcxMjY=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.2.x","name":"Reproduced on 2.2.x","color":"e99695","default":false,"description":"The issue has been reproduced on latest 2.2 release"},{"id":686477167,"node_id":"MDU6TGFiZWw2ODY0NzcxNjc=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.3.x","name":"Reproduced on 2.3.x","color":"7d6ed1","default":false,"description":"The issue has been reproduced on latest 2.3 release"},{"id":1716906423,"node_id":"MDU6TGFiZWwxNzE2OTA2NDIz","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.4.x","name":"Reproduced on 2.4.x","color":"2eceea","default":false,"description":"The issue has been reproduced on latest 2.4-develop branch"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-13T12:39:22Z","updated_at":"2019-12-30T12:09:04Z","closed_at":null,"author_association":"NONE","body":"### Preconditions\r\nMagento 2.4\r\nUbuntu 18.04\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create any category on second level (with parent_id =2).\r\nName: Test category 1, Url key: test-category-1.\r\n2. Create sub category in \"Test category 2\" with `level = 2` by res api:\r\n`/V1/categories`\r\n```json\r\n{\r\n\t\"category\": {\r\n\t\t\"name\": \"Test category 2\",\r\n\t\t\"parent_id\":\"3\",  /* Test category 1 */\r\n\t\t\"is_active\":\"true\",\r\n\t\t\"include_in_menu\": true,\r\n\t\t\"level\":\"2\",\r\n\t\t\"custom_attributes\": [{ \"attribute_code\": \"url_key\", \"value\": \"test-category-2\" }]\r\n\t}\r\n}\r\n```\r\nAt now we have the url_key: \"test-category-1\" and path: \"/test-category-1/test-category-2\".\r\n\r\n3. Change the url key of the Test category 2 either in the backend or via the api to something like \"test-category-2-changed\"\r\n\r\n### Expected result:\r\nCategory \"Test category 2\" has attribute values:\r\nurl_key: \"test-category-2-changed\"\r\nurl_path: \"/test-category-1/test-category-2-changed\"\r\n\r\n### Actual result:\r\nCategory \"Test category 2\" has attribute values:\r\nurl_key: \"test-category-2-changed\"\r\nurl_path: \"test-category-2-changed\"\r\n\r\n**Note**\r\nWhen I try to change a category url key, it changes the path to be identical which results in an error being raised and short category urls which don't include its parent, it has now affected categories that I haven't explicitly changed/saved.\r\n(table `catalog_category_entity_varchar`)\r\n\r\n<img width=\"565\" alt=\"screen shot 2018-03-13 at 12 35 48\" src=\"https://user-images.githubusercontent.com/523347/37341961-214b6b5c-26bb-11e8-9423-9ac2a1f33ea0.png\">\r\n\r\nAs you can see from the screen shot (with url_key, attribute_id 117 and url_path, attribute_id 118) the mens-footwear category has been affected but not the womens-footwear category."},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/569661087","html_url":"https://github.com/magento/magento2/issues/14080#issuecomment-569661087","issue_url":"https://api.github.com/repos/magento/magento2/issues/14080","id":569661087,"node_id":"MDEyOklzc3VlQ29tbWVudDU2OTY2MTA4Nw==","user":{"login":"magento-engcom-team","id":31669971,"node_id":"MDQ6VXNlcjMxNjY5OTcx","avatar_url":"https://avatars1.githubusercontent.com/u/31669971?v=4","gravatar_id":"","url":"https://api.github.com/users/magento-engcom-team","html_url":"https://github.com/magento-engcom-team","followers_url":"https://api.github.com/users/magento-engcom-team/followers","following_url":"https://api.github.com/users/magento-engcom-team/following{/other_user}","gists_url":"https://api.github.com/users/magento-engcom-team/gists{/gist_id}","starred_url":"https://api.github.com/users/magento-engcom-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento-engcom-team/subscriptions","organizations_url":"https://api.github.com/users/magento-engcom-team/orgs","repos_url":"https://api.github.com/users/magento-engcom-team/repos","events_url":"https://api.github.com/users/magento-engcom-team/events{/privacy}","received_events_url":"https://api.github.com/users/magento-engcom-team/received_events","type":"User","site_admin":false},"created_at":"2019-12-30T12:09:04Z","updated_at":"2019-12-30T12:09:04Z","author_association":"CONTRIBUTOR","body":":white_check_mark: Confirmed by @engcom-Echo \n Thank you for verifying the issue. Based on the provided information internal tickets `MC-30130` were created\n\n**Issue Available**: @engcom-Echo, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._"}}
other: {"actor":{"display_login":"magento-engcom-team"}}