{"action":"reopened","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/3673","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/3673/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/3673/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/3673/events","html_url":"https://github.com/Automattic/wp-calypso/issues/3673","id":137399495,"number":3673,"title":"Editor: Password protected posts are pretty buggy","user":{"login":"nylen","id":227022,"avatar_url":"https://avatars.githubusercontent.com/u/227022?v=3","gravatar_id":"","url":"https://api.github.com/users/nylen","html_url":"https://github.com/nylen","followers_url":"https://api.github.com/users/nylen/followers","following_url":"https://api.github.com/users/nylen/following{/other_user}","gists_url":"https://api.github.com/users/nylen/gists{/gist_id}","starred_url":"https://api.github.com/users/nylen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nylen/subscriptions","organizations_url":"https://api.github.com/users/nylen/orgs","repos_url":"https://api.github.com/users/nylen/repos","events_url":"https://api.github.com/users/nylen/events{/privacy}","received_events_url":"https://api.github.com/users/nylen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Editor","name":"Editor","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-29T22:29:53Z","updated_at":"2016-03-12T11:10:33Z","closed_at":null,"body":"Now that the bugfix in #3628 is merged you should see the following additional buggy behavior in the editor.\r\n\r\n1. Load a password protected post in the editor.\r\n2. Backspace over the password.  Post visibility magically changes to public.\r\n3. Click \"Password\" again.  The error message about an empty password reappears, but the password is no longer blank.\r\n4. Backspace over the password again.  This time it appears to work as expected.\r\n\r\n<img width=\"250\" src=\"https://cloud.githubusercontent.com/assets/227022/13411182/617b0358-df01-11e5-8cfe-1c3842755fae.gif\">\r\n\r\nIt looks like the `EditorVisibility` component is due for a rewrite - there is a lot of convoluted and subtly broken logic in there to attempt to handle password-protected posts, and especially the error condition of an empty password."}}