{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1121","labels_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1121/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1121/comments","events_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1121/events","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1121","id":52906181,"number":1121,"title":"Fix EZP-23837: Impossible to set the value of a Media field","user":{"login":"dpobel","id":305563,"avatar_url":"https://avatars.githubusercontent.com/u/305563?v=3","gravatar_id":"","url":"https://api.github.com/users/dpobel","html_url":"https://github.com/dpobel","followers_url":"https://api.github.com/users/dpobel/followers","following_url":"https://api.github.com/users/dpobel/following{/other_user}","gists_url":"https://api.github.com/users/dpobel/gists{/gist_id}","starred_url":"https://api.github.com/users/dpobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpobel/subscriptions","organizations_url":"https://api.github.com/users/dpobel/orgs","repos_url":"https://api.github.com/users/dpobel/repos","events_url":"https://api.github.com/users/dpobel/events{/privacy}","received_events_url":"https://api.github.com/users/dpobel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-26T14:54:12Z","updated_at":"2015-01-06T08:06:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/1121","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1121","diff_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1121.diff","patch_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1121.patch"},"body":"JIRA: https://jira.ez.no/browse/EZP-23837 (discovered while implementing the Media field edit view in PlatformUI https://jira.ez.no/browse/EZP-23813)\r\n\r\n# Description\r\n\r\nIt's impossible to update the value of a Media field using the REST API. It seems like it's because unlike for BinaryFile and Image, the Media field type processor does not extend the BinaryInputProcessor (which takes care of creating a file on the disk with the data provided in the REST update struct).\r\n\r\nNote: for now, this is a very rough patch just to let me work on EZP-23813 and to see which tests it breaks :)\r\n\r\n# Tests\r\n\r\nmanual for now"},"comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/comments/68836976","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1121#issuecomment-68836976","issue_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1121","id":68836976,"user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T08:06:39Z","updated_at":"2015-01-06T08:06:39Z","body":"Well, it won't work less than it did. I went quite quickly through this,\nbut i can test it a deep further."}}