nextcloud-drawio icon indicating copy to clipboard operation
nextcloud-drawio copied to clipboard

.drawio files are not opened by the app

Open DavideAG opened this issue 4 years ago • 10 comments
trafficstars

Hi,

After the update to drawio 1.0.0 in nextcloud 20.0.8 I can't open .drawio files. In the old version, XML files was directly recognized and automatically opened using drawio but now (after the switch to .drawio extension) they are not recognized. I changed the extension of my files from xml to drawio but nothing happens. Even creating new drawio files (in .drawio extension) it is not working prooperly.

Thank you in advance

DavideAG avatar Mar 11 '21 07:03 DavideAG

I have a similar issue, old XML files are now completely ignored but the drawio files open. One of our users is a risk assessment officer and has roughly ~200 files. Yes, we can rename them manually but i think this should have been thoroughly tested.

Guess he didn't take the risk of loosing his files into his assessment

Entrio avatar Mar 11 '21 07:03 Entrio

Can confirm this with dawio 1.0.0 and nextcloud 19.0.9. Can't open .xml neither .drawio files. Renaming doesn't help.

thomasgg23 avatar Mar 11 '21 08:03 thomasgg23

I was able to solve it this way: As admin go to: Settings > Additional settings > Draw.io > click save Perhaps you must change on option like "Offline Mode" on/off. The files have to be renamed to *.drawio.

lorettprinz avatar Mar 11 '21 09:03 lorettprinz

@Entrio There are (free) tools for batch file renaming for every OS. It shouldn't really take more than 10 minutes. You can do it server side (don't forget to "occ files:scan --all") or by installing NextCloud client on your desktop and using OS specific tools.

I had to get rid of XML file extension override because it was causing various problems. By default XML files are text files in Nextcloud (hence override), and this is an universal file format, that could be really anything. It was used for legacy reasons. Draw.io didn't have any specific file extension in 2017 (they used .xml but it was "inspired" by the XML file structure), when this app was first released, but now it's ".drawio".

pawelrojek avatar Mar 11 '21 12:03 pawelrojek

I was able to solve it this way: As admin go to: Settings > Additional settings > Draw.io > click save Perhaps you must change on option like "Offline Mode" on/off. The files have to be renamed to *.drawio.

worked for me

thomasgg23 avatar Mar 11 '21 13:03 thomasgg23

rename from *.xml to *.drawio not working if filename contains non-latin characters. diagram.xml -> diagram.drawio WORKING диаграмма.xml -> диаграмма.drawio - DON'T WORKING диаграмма.xml -> diagram.drawio WORKING

Phaere avatar Mar 12 '21 09:03 Phaere

rename from *.xml to *.drawio not working if filename contains non-latin characters. diagram.xml -> diagram.drawio WORKING диаграмма.xml -> диаграмма.drawio - DON'T WORKING диаграмма.xml -> diagram.drawio WORKING

У меня тоже самое. Пришлось все переименовывать на латиницу.

I have same issue. I ended up renaming all files manually to Latin characters. A royal pain in the ass

Entrio avatar Mar 12 '21 09:03 Entrio

I was able to solve it this way: As admin go to: Settings > Additional settings > Draw.io > click save Perhaps you must change on option like "Offline Mode" on/off. The files have to be renamed to *.drawio.

this works for me

osm-frasch avatar Mar 17 '21 10:03 osm-frasch

I was able to solve it this way: As admin go to: Settings > Additional settings > Draw.io > click save Perhaps you must change on option like "Offline Mode" on/off. The files have to be renamed to *.drawio.

@pawelrojek So, is it intended that the .drawio Files are only opened in Nextcloud if the Settings are configured for Offline Mode?

Greek64 avatar Mar 28 '21 10:03 Greek64

I was able to solve it this way: As admin go to: Settings > Additional settings > Draw.io > click save Perhaps you must change on option like "Offline Mode" on/off. The files have to be renamed to *.drawio.

@pawelrojek So, is it intended that the .drawio Files are only opened in Nextcloud if the Settings are configured for Offline Mode?

No, the change of the setting is only to make sure that the configuration is run. After saving it when it was changed you may set the setting back the way you like.

depuits avatar Aug 21 '21 12:08 depuits