Bug 146659 - Found scriptable element "script" in the uploaded SVG file.
Summary: Found scriptable element "script" in the uploaded SVG file.
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-09 00:25 UTC by davidak
Modified: 2022-01-21 21:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
original file (19.58 KB, application/vnd.oasis.opendocument.presentation)
2022-01-09 00:26 UTC, davidak
Details
exported svg (462.99 KB, image/svg+xml)
2022-01-09 00:26 UTC, davidak
Details
exported SVG without script section (15.46 KB, image/svg+xml)
2022-01-21 21:17 UTC, Jean-Baptiste Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davidak 2022-01-09 00:25:56 UTC
Description:
When i try to upload an SVG file exported from LibreOffice Impress to Wikimedia Commons, i get the error:

Found scriptable element "script" in the uploaded SVG file.

The version is 7.1.7.2 which can't get selected from the list.

Steps to Reproduce:
1. go to https://commons.wikimedia.org/wiki/Special:UploadWizard
2. upload file
3. get error

Actual Results:
error: Found scriptable element "script" in the uploaded SVG file.


Expected Results:
LibreOffice should be compatible with Wikipedia.


Reproducible: Always


User Profile Reset: No



Additional Info:
create compatible files
Comment 1 davidak 2022-01-09 00:26:36 UTC
Created attachment 177403 [details]
original file
Comment 2 davidak 2022-01-09 00:26:59 UTC
Created attachment 177404 [details]
exported svg
Comment 3 Jean-Baptiste Faure 2022-01-21 21:16:38 UTC
The script section in the SVG comes from that you are exporting the whole presentation document. If you select the graphic and check the case "Selection" in the filename selection dialog, you will get a SVG file without script section. And far smaller than your previous SVG.

Closing as NotABug.

Best regards. JBF
Comment 4 Jean-Baptiste Faure 2022-01-21 21:17:19 UTC
Created attachment 177693 [details]
exported SVG without script section