Commit c93f6f92 authored by Jérome Perrin's avatar Jérome Perrin

ooo: fix tiff and a disable broken odp -> odg

parent fad6fbe6
Pipeline #27905 failed with stage
in 0 seconds
......@@ -97,6 +97,7 @@ class MimeMapper:
'Word 2007–365':'ms.docx',
'Microsoft Word 6.0':'6.doc',
'Microsoft Word 95':'95.doc',
'TIFF - Tagged Image File Format': 'tiff',
}
uno_path = kw.get("uno_path", environ.get('uno_path'))
office_binary_path = kw.get("office_binary_path",
......@@ -122,6 +123,9 @@ class MimeMapper:
'writer_web_png_Export',
'writer_web_webp_Export',
# cause an odp -> odg conversion to appear as available, but returning an odp
'impress8_draw',
# 'writer_jpg_Export', # Seems not working from cloudooo in Libre Office 4.3.3.2
# 'writer_png_Export', # Seems not working from cloudooo in Libre Office 4.3.3.2
# 'draw_eps_Export', # Seems not working from cloudooo in Libre Office 5.0.0.5
......
......@@ -72,4 +72,9 @@ class TestAllFormatsERP5Compatibility(TestCase):
data_output = data_output['data']
file_type = self._getFileType(data_output)
self.assertNotIn(": empty", file_type)
if source_format != extension:
# when no filter exist for destination format, the document is not converted
# but silently returned in source format, the assertion below should detect
# this.
self.assertNotEqual(source_mimetype, file_type)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment