Page MenuHomePhabricator

Show error message when user requests an SVG that does not exist
Closed, ResolvedPublic2 Estimated Story Points

Description

When the user requests an SVG that does not exist (either via url or from search page), keep/redirect the user on the search page and show the message below

Design

Screen Shot 2018-12-19 at 4.29.44 PM.png (840×2 px, 128 KB)

Event Timeline

Niharika created this task.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Niharika set the point value for this task to 2.Jan 23 2019, 12:37 AM

This is now live on the staging site and ready for QA.

This has been included in version 0.4.0 and is now in production.

@Samwilson You sure? I don't see it here: https://tools.wmflabs.org/svgtranslate/File:Qwijhuierytu38e2wpq%5B

Edit: I do see it when I type other random strings but for some weird reason, this random string breaks it.

reset() expects parameter 1 to be array, null given is being thrown by Retriever::retrieve():

$info = $this->api->imageInfo($fileName);
$url = reset($info['imageinfo'])['url'];
Niharika moved this task from QA to Q3 2018-19 on the Community-Tech-Sprint board.