Bug 163170 - Add support for MS Visio template format vstx
Summary: Add support for MS Visio template format vstx
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium enhancement
Assignee: Bartosz
URL:
Whiteboard: target:25.2.0 target:24.8.3 target:24...
Keywords:
Depends on:
Blocks: Visio
  Show dependency treegraph
 
Reported: 2024-09-26 18:29 UTC by Bartosz
Modified: 2024-12-14 21:20 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example template file. (78.47 KB, application/vnd.ms-visio.template.main+xml)
2024-09-26 18:30 UTC, Bartosz
Details
Another vstx file floor plan (1.12 MB, application/vnd.ms-visio.template.main+xml)
2024-09-26 18:33 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosz 2024-09-26 18:29:45 UTC
Description:
With Visio 2013 the Template format was introduced with extension ".vstx".

libvisio is supporting this format, but LibreOffice is not recognize it.


Steps to Reproduce:
1. Open  attached .vstx file


Actual Results:
Notice Error message that the file is corrupted. After saying no, the file is opening correctly

Expected Results:
There is no error message during opening vstx file


Reproducible: Always


User Profile Reset: No

Additional Info:
Opening vstx file
Comment 1 Bartosz 2024-09-26 18:30:51 UTC
Created attachment 196730 [details]
Example template file.

After renaming extension to vsdx, the file is opening without a problem.
Comment 2 Bartosz 2024-09-26 18:33:49 UTC
Created attachment 196731 [details]
Another vstx file floor plan
Comment 3 Xisco Faulí 2024-09-27 07:40:43 UTC
Reproduced in

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b532d79f39ae047d2f59535679230a8d053b5b35
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 4 Xisco Faulí 2024-09-27 07:44:39 UTC
This fixes the issue: https://gerrit.libreoffice.org/c/core/+/174027
Comment 5 Commit Notification 2024-09-29 08:05:15 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/529dfc741a4ad6735937adaf10acdd567da4f84c

tdf#163170 Add support for MS Visio Template format with .vstx extension

It will be available in 25.2.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.
Comment 6 BogdanB 2024-09-29 11:49:48 UTC
Verified.

Opening well in
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0e955c4b236bcf9e66e7b49cc3ae285f1a4a9e32
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

Not working in (Notice Error)
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 7 Commit Notification 2024-09-30 01:27:20 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/71c6897d9751f7255bf48536cd8302c0fcf35740

tdf#163170 Add support for MS Visio Template format with .vstx extension

It will be available in 24.8.3.

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.
Comment 8 Commit Notification 2024-09-30 01:27:23 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/74c70eee86291c994becc39dad0cf0aafa92a09b

tdf#163170 Add support for MS Visio Template format with .vstx extension

It will be available in 24.2.7.

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.
Comment 9 Bartosz 2024-10-24 21:33:23 UTC
*** Bug 89469 has been marked as a duplicate of this bug. ***
Comment 10 Maarten Hoes 2024-12-10 12:09:46 UTC
(In reply to Bartosz from comment #9)
> *** Bug 89469 has been marked as a duplicate of this bug. ***

@Bartosz :

You marked bug 89469 as a duplicate of this bug, but this does not seem to be true. That bug (feature request) is about displaying (and being able to use) the 'Visio Stencils' in LibreOffice (which it currently cannot do as far as I can tell, even with your recent commits), and this bug seems to be about being able to 'open' Visio Templates without displaying an error.

For an example of how Visio deals with the Stencils, please see the second attachment of that bug/feature request (a screenshot: "Screenshot of Visio Stencil opened in Visio 2013"). You can see the stencil (which has included icons in the Visio file) in the lower left corner.