{"action":"created","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/9292","repository_url":"https://api.github.com/repos/dotCMS/core","labels_url":"https://api.github.com/repos/dotCMS/core/issues/9292/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/9292/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/9292/events","html_url":"https://github.com/dotCMS/core/issues/9292","id":163001963,"number":9292,"title":"Need to save file twice to trigger exception","user":{"login":"shaydotcms","id":8741846,"avatar_url":"https://avatars.githubusercontent.com/u/8741846?v=3","gravatar_id":"","url":"https://api.github.com/users/shaydotcms","html_url":"https://github.com/shaydotcms","followers_url":"https://api.github.com/users/shaydotcms/followers","following_url":"https://api.github.com/users/shaydotcms/following{/other_user}","gists_url":"https://api.github.com/users/shaydotcms/gists{/gist_id}","starred_url":"https://api.github.com/users/shaydotcms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaydotcms/subscriptions","organizations_url":"https://api.github.com/users/shaydotcms/orgs","repos_url":"https://api.github.com/users/shaydotcms/repos","events_url":"https://api.github.com/users/shaydotcms/events{/privacy}","received_events_url":"https://api.github.com/users/shaydotcms/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotCMS/core/labels/Doc%20:%20Needs%20Doc","name":"Doc : Needs Doc","color":"bfdadc"},{"url":"https://api.github.com/repos/dotCMS/core/labels/WF%20:%20Merged","name":"WF : Merged","color":"d4c5f9"},{"url":"https://api.github.com/repos/dotCMS/core/labels/WF%20:%20Needs%20QA","name":"WF : Needs QA","color":"fef2c0"},{"url":"https://api.github.com/repos/dotCMS/core/labels/z-Iter-4","name":"z-Iter-4","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotCMS/core/milestones/35","html_url":"https://github.com/dotCMS/core/milestones/3.6","labels_url":"https://api.github.com/repos/dotCMS/core/milestones/35/labels","id":1688186,"number":35,"title":"3.6","description":"","creator":{"login":"wezell","id":934364,"avatar_url":"https://avatars.githubusercontent.com/u/934364?v=3","gravatar_id":"","url":"https://api.github.com/users/wezell","html_url":"https://github.com/wezell","followers_url":"https://api.github.com/users/wezell/followers","following_url":"https://api.github.com/users/wezell/following{/other_user}","gists_url":"https://api.github.com/users/wezell/gists{/gist_id}","starred_url":"https://api.github.com/users/wezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wezell/subscriptions","organizations_url":"https://api.github.com/users/wezell/orgs","repos_url":"https://api.github.com/users/wezell/repos","events_url":"https://api.github.com/users/wezell/events{/privacy}","received_events_url":"https://api.github.com/users/wezell/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":55,"state":"open","created_at":"2016-04-06T20:32:54Z","updated_at":"2016-07-06T21:36:59Z","due_on":"2016-08-30T04:00:00Z","closed_at":null},"comments":3,"created_at":"2016-06-29T19:04:10Z","updated_at":"2016-07-06T23:03:37Z","closed_at":null,"body":"Related to #9197\r\nIn order to prevent the generation of empty metaData/content file, the system should trigger an exception if CONTENT_ALLOW_ZERO_LENGTH_FILES=false. Currently, the first time the file is saved, there’s not exception in the logs. You need to **save the file twice** to trigger the exception.\r\n\r\nSteps to reproduce:\r\n1. Login to dotcms\r\n2. Upload a .txt file which size is than 0\r\n3. Open the .txt file and edit the content. Delete all data so the size now is 0\r\nBefore:\r\n![image](https://cloud.githubusercontent.com/assets/8741846/16464875/686ced3c-3df9-11e6-884e-0672cb83dfb0.png)\r\nAfter:\r\n![image](https://cloud.githubusercontent.com/assets/8741846/16464879/713a5e04-3df9-11e6-93c8-3f0d65c76d8b.png)\r\n4. Hit Save or Save/Publish\r\n5. You will see the file was successfully saved containing 0 bytes\r\n6. You need to hit Save or Save/Publish twice to trigger the exception:\r\n![image](https://cloud.githubusercontent.com/assets/8741846/16464916/91c090bc-3df9-11e6-9d33-62c5bce2304d.png)\r\n\r\nTested locally in:\r\nmaster-3.6 // Win7 Pro SP1 // SQLServer 2012 // Firefox\r\nmaster-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Chrome"},"comment":{"url":"https://api.github.com/repos/dotCMS/core/issues/comments/230933576","html_url":"https://github.com/dotCMS/core/issues/9292#issuecomment-230933576","issue_url":"https://api.github.com/repos/dotCMS/core/issues/9292","id":230933576,"user":{"login":"DeanGonzalez","id":1569167,"avatar_url":"https://avatars.githubusercontent.com/u/1569167?v=3","gravatar_id":"","url":"https://api.github.com/users/DeanGonzalez","html_url":"https://github.com/DeanGonzalez","followers_url":"https://api.github.com/users/DeanGonzalez/followers","following_url":"https://api.github.com/users/DeanGonzalez/following{/other_user}","gists_url":"https://api.github.com/users/DeanGonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/DeanGonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeanGonzalez/subscriptions","organizations_url":"https://api.github.com/users/DeanGonzalez/orgs","repos_url":"https://api.github.com/users/DeanGonzalez/repos","events_url":"https://api.github.com/users/DeanGonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/DeanGonzalez/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T23:03:37Z","updated_at":"2016-07-06T23:03:37Z","body":"I believe this is already documented here: http://auth.dotcms.com/docs/latest/file-configuration - but let me know if there is something I am missing"}}
{"actor":{"display_login":"DeanGonzalez"}}