Originally reported in Inkscape's bugtracker at https://gitlab.com/inkscape/inbox/-/issues/5395 by rebio
- Download (or create an Inkscape svg file, with a path with an Fillet/Chamfer LPE applied)
- Login to Wikimedia commons
- Try to upload the svg to Wikimedia Commons https://commons.wikimedia.org/wiki/Special:UploadWizard
What happens?:
- Upload failed, with the following warning
- Found event-handler attribute only_selected="false" in uploaded file.
What should have happened instead?:
- No error.
Marc Jeanmougin identified the problem in https://gitlab.com/inkscape/inbox/-/issues/5395#note_637538360 :
This is caused by the check on https://github.com/wikimedia/mediawiki/blob/master/includes/upload/UploadBase.php#L1670 [(https://github.com/wikimedia/mediawiki/blob/de91a0db45eaf31b57873b9d22aceaaa3d1be09a/includes/upload/UploadBase.php#L1670)] being WAY too aggressive : they check for any properties starting with "on" (reasonable given the list of properties in https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers ) in any element from any namespace which is the part that makes no sense : things in a <inkscape:path-effect> element will not get processed by a browser so there is no reason to clear its properties.