pawelrojek/nextcloud-drawio

Errors on public shared Links

BlockMen opened this issue · 2 comments

First, thanks for your work on this app, its great!

Testing on commit c02cebb here my findings:

  • Option to open a shared file with Draw.io is only shown when disabling the builtin "text" App (even with mimetypes in config folder)
  • Even then it doesn't work yet, giving an internal server error, with following server logs:
    index | Exception: Call to a member function getRelativePath() on null
    Error: Undefined variable: baseFolder at /var/www/nextcloud/apps/drawio/controller/editorcontroller.php#174

Unfortunately i don't know any of the nextcloud API so i just wildguessingly changed L174 to "drawioFilePath" => rawurlencode($relativePath), which indeed fixed (?) the issue mentioned above, but does not load the file. Instead an error from draw.io is given: Fehler Keine Diagrammdatei which translates to no diagram file found

I hope this helps solving the issues as i would love to use Draw.io with shared files :)

Cheers,
BlockMen

Sry, but #136 does NOT fix my issue. As stated above after applying the correct path variable the public shared file is still not opening:

Instead an error from draw.io is given: Fehler Keine Diagrammdatei which translates to no diagram file found

Also there seems to be an issue with the Nextcloud AppStore: To be sure I removed draw.io App and reinstalled, but patch #136 seems not applied in 0.9.9 via AppStore!?

@BlockMen Eat that, motherfucker:

Scuba_Lights

This is in Minetest now. Have fun with your fork.