{"push_id":1352072079,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"0d8d224f1e4e80bff2b7cfde2001a45d16070c62","before":"2f4e63527c8a661b27ab3534650943e0ff668ba3","commits":[{"sha":"0d8d224f1e4e80bff2b7cfde2001a45d16070c62","author":{"name":"jleroux","email":"30ff29376f7601e7d7dc635c6f4515526c177c5d@13f79535-47bb-0310-9956-ffa450edef68"},"message":"Fixed: You cannot edit an image in content\n(OFBIZ-7000)\n\nIf you get to\ncontent/control/EditLayout?drDataResourceId=NOCONTENTFOUND&contentId=NOCONTENTFOUND\nWhen trying to editing you get an error\n\nMohammed Rehan Khan explored the issue and found that there is a condition in \nDataResourceWorker method to render content of 'text' mime type only, for others\n it returns exception.\n\nWe can fix this by setting up mimeTypeID as null in request param\n\nQuestion: Why setting up mimeTypeTypeId as 'null' is fixing this issue?\nAnswer: As we don't have image specific worker method for rendering these type \nof contents, so we are using DataResourceWorker.renderDataResourceAsText() \nto render image type content as well. Due to following condition, \ntargetMimeTypeId is setting up as \"text/html\" if sent null and hence not \nthrowing the exception reported in the ticket.\n\nThanks: Mohammed Rehan Khan for the patch\n\ngit-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/applications/content@1765094 13f79535-47bb-0310-9956-ffa450edef68","distinct":true,"url":"https://api.github.com/repos/OFBizCI/content/commits/0d8d224f1e4e80bff2b7cfde2001a45d16070c62"}]}
{"actor":{"display_login":"PierreSmits"}}