Page MenuHomePhabricator

maximum Characters per svg-tag for xml-parser unknown
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
Upload the file https://doc-0k-a4-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/nsu966bin5bk5uliv7mqoq4nbfsvrnnd/1578945600000/06785432790838067384/*/1N4XoAJ3gZgXMoYrNfhzVGrUsq7DxRRRm?e=download (From https://drive.google.com/drive/folders/1qSQWgj5maKIlFv9daMMCivep06bqHySI, mentioned in https://en.wikipedia.org/wiki/Wikipedia:SVG_help#Can%27t_upload_a_SVG_file_on_Wikimedia)

This file contains a >15.000.000 Characters long attribute xlink:href, which seems to make problems with the parser. (Shortening the xlink:href works to upload see https://commons.wikimedia.org/w/index.php?title=File:Test.svg&diff=387267960&oldid=387256821#filehistory 21:14, 13. Jan. 2020 )

Maybe it is another bug, but https://commons.wikimedia.org/wiki/File:1_42_polytope_7-cube.svg#filehistory does not render with the merged path (~10MB), but render with ~500.000 short lines (~28MB)

Actual Results:
If I use https://commons.wikimedia.org/w/index.php?title=Special:UploadWizard&uselang=de I get "Diese Datei hat die Dateiprüfung nicht bestanden" (german for This file does not succeded the test.)
If I use https://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=de I get "Das XML in der hochgeladenen Datei konnte nicht geparst werden." (german for The XML cant be paresed in the uploaded file.)

Expected Results:
(It might be wanted, since uploading 10MB large Raster-files in a SVG-Container, might be seen as a missuse of SVG.)
A notice of a maximal tag-length mentioned on https://commons.wikimedia.org/wiki/Commons:Maximum_file_size