Page MenuHomePhabricator

Accessing image file in Diffusion must not generate error (unhandled exception)
Closed, ResolvedPublic

Description

When accessing an image file (tested PNG and JPG) through Diffusion in order to show it in the browser an unhandled exception is thrown.

Unhandled Exception ("PhutilProxyException")	
Host returned HTTP/200, but invalid JSON data in response to a Conduit method call.

Environment: Chrome 45.x on OSX 10.10.5
Note: This happened on our (SaaS) Phabricator instance on phacility.com

Screen Shot 2015-09-02 at 11.27.02.png (488×790 px, 70 KB)

Event Timeline

CaptSpot assigned this task to epriestley.
CaptSpot updated the task description. (Show Details)
CaptSpot added a project: Support.
CaptSpot changed the visibility from "Public (No Login Required)" to "All Users".
CaptSpot added a subscriber: CaptSpot.
chad changed the visibility from "All Users" to "Public (No Login Required)".Sep 2 2015, 2:29 PM

Thanks for the report! I'll take a look at this.

I suspect the root issue is that we're trying to JSON-encode non-UTF data because of the repository service configuration in the cluster. This might require a partial fix of T5955, although I think I had some plans to just change how this API works (to return a reference to a file rather than the raw file data, which could be better for a number of reasons) so that might be a simpler approach.

We can also generally improve the error behavior here.

epriestley triaged this task as Normal priority.Sep 2 2015, 2:30 PM
epriestley edited projects, added Phacility Support, Conduit, Diffusion, Files; removed Support.
epriestley added a project: Phacility.
epriestley moved this task from Backlog to Onboarding/NUX on the Phacility board.
ivan-1986 closed subtask Restricted Maniphest Task as Spite.Sep 13 2015, 9:59 AM