Page MenuHomePhabricator

Unexpected error "This SVG file contains an illegal namespace" for xmlns:rdfs attribute value
Closed, ResolvedPublic


When attempting to upload the file at it is rejected with the following error

This SVG file contains an illegal namespace "".

Source code:

<?xml version='1.0' encoding='iso-8859-1'?>
<svg xmlns='' xml:space='preserve' version="1.2" baseProfile="tiny"
overflow='visible' xmlns:xlink='' viewBox='0 0 353.388 108.396' xmlns:dc=''>
  <title property="dc:title">Semantic Web cube symbol with text</title>
  <desc property="dc:description">..</desc>

Looks like it shouldn't be looking at this attribute for anything.

See also:
T144827: Files created in Adobe Illustrator and edited in Inkscape rejected with 'uploadscriptednamespace'

Event Timeline

Krinkle created this task.Dec 15 2016, 4:40 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 15 2016, 4:40 AM

I suppose we need to whitelist it (UploadBase::checkSvgScriptCallback).

MarkTraceur triaged this task as Medium priority.Dec 22 2016, 5:30 PM
MarkTraceur moved this task from Untriaged to Triaged on the Multimedia board.

Change 333001 had a related patch set uploaded (by Bartosz Dziewoński):
UploadBase: Allow RDF Schema namespace in SVG files

Thanks. I see that and were already whitelisted. yay :)

Change 333001 merged by jenkins-bot:
UploadBase: Allow RDF Schema namespace in SVG files

matmarex closed this task as Resolved.Jan 26 2017, 12:11 PM
matmarex claimed this task.
matmarex removed a project: Patch-For-Review.