{"action":"created","issue":{"url":"https://api.github.com/repos/netlify/netlify-cms/issues/1656","repository_url":"https://api.github.com/repos/netlify/netlify-cms","labels_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1656/labels{/name}","comments_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1656/comments","events_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1656/events","html_url":"https://github.com/netlify/netlify-cms/issues/1656","id":353444445,"node_id":"MDU6SXNzdWUzNTM0NDQ0NDU=","number":1656,"title":"\"Publish successful\" even though it failed with an HTTP 400","user":{"login":"m0ru","id":1730492,"node_id":"MDQ6VXNlcjE3MzA0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1730492?v=4","gravatar_id":"","url":"https://api.github.com/users/m0ru","html_url":"https://github.com/m0ru","followers_url":"https://api.github.com/users/m0ru/followers","following_url":"https://api.github.com/users/m0ru/following{/other_user}","gists_url":"https://api.github.com/users/m0ru/gists{/gist_id}","starred_url":"https://api.github.com/users/m0ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m0ru/subscriptions","organizations_url":"https://api.github.com/users/m0ru/orgs","repos_url":"https://api.github.com/users/m0ru/repos","events_url":"https://api.github.com/users/m0ru/events{/privacy}","received_events_url":"https://api.github.com/users/m0ru/received_events","type":"User","site_admin":false},"labels":[{"id":783953137,"node_id":"MDU6TGFiZWw3ODM5NTMxMzc=","url":"https://api.github.com/repos/netlify/netlify-cms/labels/area:%20auth","name":"area: auth","color":"fbca04","default":false},{"id":783339779,"node_id":"MDU6TGFiZWw3ODMzMzk3Nzk=","url":"https://api.github.com/repos/netlify/netlify-cms/labels/area:%20extensions/backends","name":"area: extensions/backends","color":"fbca04","default":false},{"id":783214943,"node_id":"MDU6TGFiZWw3ODMyMTQ5NDM=","url":"https://api.github.com/repos/netlify/netlify-cms/labels/exp:%20intermediate","name":"exp: intermediate","color":"3B8686","default":false},{"id":168064400,"node_id":"MDU6TGFiZWwxNjgwNjQ0MDA=","url":"https://api.github.com/repos/netlify/netlify-cms/labels/kind:%20bug","name":"kind: bug","color":"FF8C94","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-23T15:50:29Z","updated_at":"2018-08-27T17:16:18Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please add a comment to the existing issue instead.\r\n\r\nPlease include as much of the information requested below as possible. If you fail to provide the requested information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.\r\n\r\nIf you have an issue that can be shown visually, please provide a screenshot or GIF of the problem as well.\r\n-->\r\n\r\n**Describe the bug**\r\n\r\nOur setup run's Netlify against a Gitlab server, that we also use for sign-in into Netlify. When editing a post as a user without push-permissions (our master branch was protected as it turns out), the network-tab shows an error 400 (\"bad request\" with a message like \"you cannot push to this branch\"). However, the Netlify-GUI was still showing the green \"Entry saved\"-popup. When reloading the page or navigating back and to the post again, the changes are gone, of course. This is misleading and might lead to lost work.\r\n\r\n**To Reproduce**\r\n1. Have a post on a write-protected branch in a repo on a Gitlab server, respectively login with a user without write-permissions\r\n2. Edit that post\r\n3. Click \"Publish Now\"\r\n4. The green \"Entry saved\" popup should show up, the network-tab should show an error 400\r\n5. Navigate back and to the post again or reload the page\r\n6. The changes are gone (even though it has said before that they're saved), the misconfiguration of the git requires debugging / reading the network-tab to discover.\r\n\r\n**Expected behavior**\r\n\r\nThe pop-up at step 4 / after publishing to show an error, tell me that the post wasn't saved and that the problem is that my account doesn't have permissions to do so (and tell me to ask my git-admin to make changes to the specific branches write permissions if I want access)\r\nA clear and concise description of what you expected to happen.\r\n\r\n**Applicable Versions:**\r\n<!-- You can find the CMS version by checking your web browser's developer tools console while in the CMS. -->\r\n - Netlify CMS version: netlify-cms 2.0.9\r\n - Git provider: Gitlab 11.1.4 at <https://gitlab.fsinf.at/fsinf/website>\r\n - OS: Windows 10\r\n - Browser version 61.0.2\r\n\r\n**CMS configuration**\r\n<https://beta.fsinf.at/admin/config.yml>\r\n"},"comment":{"url":"https://api.github.com/repos/netlify/netlify-cms/issues/comments/416298903","html_url":"https://github.com/netlify/netlify-cms/issues/1656#issuecomment-416298903","issue_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1656","id":416298903,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjI5ODkwMw==","user":{"login":"tech4him1","id":20345941,"node_id":"MDQ6VXNlcjIwMzQ1OTQx","avatar_url":"https://avatars1.githubusercontent.com/u/20345941?v=4","gravatar_id":"","url":"https://api.github.com/users/tech4him1","html_url":"https://github.com/tech4him1","followers_url":"https://api.github.com/users/tech4him1/followers","following_url":"https://api.github.com/users/tech4him1/following{/other_user}","gists_url":"https://api.github.com/users/tech4him1/gists{/gist_id}","starred_url":"https://api.github.com/users/tech4him1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tech4him1/subscriptions","organizations_url":"https://api.github.com/users/tech4him1/orgs","repos_url":"https://api.github.com/users/tech4him1/repos","events_url":"https://api.github.com/users/tech4him1/events{/privacy}","received_events_url":"https://api.github.com/users/tech4him1/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T17:16:18Z","updated_at":"2018-08-27T17:16:18Z","author_association":"COLLABORATOR","body":"> You shouldn't be able to log in without write permissions, need to find out why that's not the case for the GitLab backend.\r\n\r\n@m0ru Do the users have write permissions for the rest of the repo, and just not the protected branch?"}}
{"actor":{"display_login":"tech4him1"}}