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

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

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 claimed this task.
matmarex removed a project: Patch-For-Review.