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

Support for Nextcloud 32

Open arnowelzel opened this issue 2 months ago • 9 comments

Nextcloud 32 got released. However I can not upgrade yet, since Draw.io does not support it yet.

arnowelzel avatar Sep 28 '25 14:09 arnowelzel

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.

arnowelzel avatar Oct 02 '25 14:10 arnowelzel

A new version is published. Please check if it works with no issues Thanks

m-mohamedin avatar Oct 03 '25 15:10 m-mohamedin

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 :

Image

Mer0me avatar Oct 04 '25 09:10 Mer0me

Draw.io works fine in my Nextcloud 32 test environment:

Image

However on my production server which is still Nextcloud 31, the MIME type icons are missing - eventhough Draw.io itself seems to work fine:

Image

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:

Image

Maybe there is a producedure which can be run during update as well to make sure, the icons are correct.

arnowelzel avatar Oct 04 '25 19:10 arnowelzel

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

Image

Mer0me avatar Oct 05 '25 07:10 Mer0me

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

arnowelzel avatar Oct 05 '25 09:10 arnowelzel

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.

arnowelzel avatar Oct 05 '25 09:10 arnowelzel

I have a production NC 31 where shared diagrams including editing are working.

Mer0me avatar Oct 05 '25 09:10 Mer0me

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

arnowelzel avatar Oct 05 '25 16:10 arnowelzel