Support for Nextcloud 32
Nextcloud 32 got released. However I can not upgrade yet, since Draw.io does not support it yet.
I tested it with my Nextcloud test server and did not find any issues. So I suggest to update appinfo/info.xml to support Nextcloud 32 as well.
A new version is published. Please check if it works with no issues Thanks
NC32.0.0 and Draw.io app 3.1.1 I can create a new diagram, but when I try to open an existing one, Nextcloud proposes to download it.
Also Draw.io icons are not visible in the File app :
Draw.io works fine in my Nextcloud 32 test environment:
However on my production server which is still Nextcloud 31, the MIME type icons are missing - eventhough Draw.io itself seems to work fine:
Running occ maintenance:repair --include-expensive on the server did not fix this. So I removed and reinstalled the app - this seem to have fixed the MIME type icons:
Maybe there is a producedure which can be run during update as well to make sure, the icons are correct.
Removing and reinstalling the app makes the preview in Files OK, and I can now open the files from Files app.
But shared links won't work, it shows the file in the File explorer and proposes eventually to download it instead of opening it directly.
We had similar problem with NC 31 : https://github.com/jgraph/drawio-nextcloud/issues/97
Shared links trigger the following error here:
Call to a member function getPermissions() on null in file '/var/www/myserver.example/apps/drawio/lib/Controller/EditorController.php' line 856
A workaround to get at least read-only shares working again - in apps/drawio/lib/Controller/EditorController.php update checkPermissions() as following:
protected function checkPermissions($share, $permissions) {
if (!$share) {
return false;
}
return ($share->getPermissions() & $permissions) === $permissions;
}
However, it is not possible to share Diagrams including editing. I am not sure if this ever worked before and I don't have a development environment for Nextcloud here at the moment.
I have a production NC 31 where shared diagrams including editing are working.
I have a production NC 31 where shared diagrams including editing are working.
Ok,then something has changed in NC32 to aquire the token for editing. I will open a new issue for this.
See https://github.com/jgraph/drawio-nextcloud/issues/114