{"action":"closed","issue":{"url":"https://api.github.com/repos/plone/plone.app.contenttypes/issues/378","repository_url":"https://api.github.com/repos/plone/plone.app.contenttypes","labels_url":"https://api.github.com/repos/plone/plone.app.contenttypes/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/plone/plone.app.contenttypes/issues/378/comments","events_url":"https://api.github.com/repos/plone/plone.app.contenttypes/issues/378/events","html_url":"https://github.com/plone/plone.app.contenttypes/issues/378","id":190194985,"number":378,"title":"Automatic file download triggered on workflow state change","user":{"login":"lukebrannon","id":726332,"avatar_url":"https://avatars.githubusercontent.com/u/726332?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebrannon","html_url":"https://github.com/lukebrannon","followers_url":"https://api.github.com/users/lukebrannon/followers","following_url":"https://api.github.com/users/lukebrannon/following{/other_user}","gists_url":"https://api.github.com/users/lukebrannon/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebrannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebrannon/subscriptions","organizations_url":"https://api.github.com/users/lukebrannon/orgs","repos_url":"https://api.github.com/users/lukebrannon/repos","events_url":"https://api.github.com/users/lukebrannon/events{/privacy}","received_events_url":"https://api.github.com/users/lukebrannon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T23:28:35Z","updated_at":"2016-12-02T10:54:33Z","closed_at":"2016-12-02T10:54:33Z","body":"When a workflow is assigned to the file content type, any workflow state change triggers the file to be downloaded.  This is because the fti url_expr for the view action returns just the object url:\r\n\r\n`<action\r\n      action_id=\"view\"\r\n      category=\"object\"\r\n      condition_expr=\"\"\r\n      i18n:attributes=\"title\"\r\n      title=\"View\"\r\n      url_expr=\"string:${object_url}\"\r\n      visible=\"True\">\r\n    <permission value=\"View\"/>\r\n  </action>`\r\n\r\nProducts.CMFFormController.Actions.RedirectToAction is getting the view expression from the fti and returning the direct url to the file which triggers the download.\r\n\r\nThe view action url_expr should be:\r\n\r\n`url_expr=\"string:${object_url}/view\"`\r\n"}}
{"actor":{"display_login":"agitator"}}