pawelrojek / nextcloud-drawio

Draw.io intergration app
https://apps.nextcloud.com/apps/drawio
GNU Affero General Public License v3.0
227 stars 60 forks source link

Release 0.9.9 broke Nextcloud #138

Closed mhaluska closed 3 years ago

mhaluska commented 3 years ago

Latest release is blocking basic operations (for example + sign to create new file - totally blocked, no menu appears) and drawio mime is not working. Only Brave browser is working.

OS client: macOS 11.2.2, Windows Server 2019 Browser: tested - Safari and Firefox = problem, Brave = OK Nextcloud: 21.0.0 Drawio app: 0.9.9 OS server: Debian 10 Web server: nginx 1.14.2 PHP: 7.3.27

When I disable Drawio app, everything is again working.

Edit: Also Brave stopped working, probably some files has been cached.

JoshuaPettus commented 3 years ago

I bet you this is related to my ticket #137

mhaluska commented 3 years ago

@JoshuaPettus seems you were quicker than me, except I don't see such error in log. Are you experiencing same issues like me? App doesn't open, just offers file download (like missing MIME).

JoshuaPettus commented 3 years ago

Yeah, after the app crashes, draw.io is disabled by nextcloud and MIME resets to default for .xml. I did get the add document (+) not loading for a bit too. Maybe it was stuck in a half way point...

mhaluska commented 3 years ago

Thanks for info, seems this is same issue, not related to PHP version.

harry-t-itch commented 3 years ago

I have the same issue after updating to NC21. Did some research on the error report in the log and tried the solution here: https://github.com/nextcloud/server/issues/24711#issuecomment-785198651 No success so far. I had to deactivate draw.io for "+"-menu to work again.

NC21 using docker-image with nginx proxy on ubuntu 18.04 server

pawelrojek commented 3 years ago

It seems to freeze after you exit an opened file and return to the NC (sometimes, but not always).

As a temporary workaround you can try reloading the page with CTRL+F5.

I'm working on a proper solution.

[btw - console log is flooded with warnings and deprecation notices]

mhaluska commented 3 years ago

CTRL+F5 didn't work for me. Even using incognito with clean cache = (+)-menu is blocked when Drawio app is active.

harry-t-itch commented 3 years ago

Same here. There is actually a difference between using firefox and chrome. While in firefox it doesn't work at all (filetype not registered, "+"-menu Not working), when drawio is active, in chrome it is possible to open a drawing after activation just once. Afterwards the filetype seems to be not registred anymore (just plaintext when opening it, and no logo associated) and the "+"-menu doesn't work (refresh using F5). hope this helps.

pawelrojek commented 3 years ago

It should work now. Tested on PHP 8.0 / 7.3 - NC21 and NC20.

mhaluska commented 3 years ago

Tested on two instances (NC21), works without problem. Thank you

harry-t-itch commented 3 years ago

It should work now. Tested on PHP 8.0 / 7.3 - NC21 and NC20.

fix confirmed on NC21 (docker). thanks a lot!