Bug 132513 - SVG filter warns on metadata
Summary: SVG filter warns on metadata
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Heiko Tietze
URL:
Whiteboard: target:7.0.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-29 09:59 UTC by Heiko Tietze
Modified: 2020-04-30 07:23 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2020-04-29 09:59:20 UTC
New about.svg has 

  <metadata
     id="metadata6096">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title>LibreOffice 7 about dialog design</dc:title>
        <dc:creator>
          <cc:Agent>
            <dc:title>Bayu Rizaldhan Rayes</dc:title>
          </cc:Agent>
        </dc:creator>
etc.

but SVG filter throws the warning

warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <metadata> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <rdf:RDF> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:Work> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:format> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:type> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:title> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:creator> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:Agent> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:title> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:publisher> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:Agent> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:title> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <dc:description> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:license> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:License> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:permits> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:permits> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:requires> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:requires> (!)
warn:svgio:88979:88979:svgio/source/svgreader/svgdocumenthandler.cxx:408: Unknown Base SvgToken <cc:permits> (!)

We could just ignore <metadata>. Is it an easyhack, Tomaz?
Comment 1 Tomaz Vajngerl 2020-04-29 10:07:53 UTC
Actually, I don't think any of this should be a warning - just write an info on unknown element would be fine. Many SVG's have additional elements (Inkscape) which we won't handle.
Comment 2 Commit Notification 2020-04-29 19:37:55 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b5b2e4ae435859ba0e72bafd30f68054892b4c83

Resolves tdf#132513 - SVG warns on metadata

It will be available in 7.0.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.