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

Draw.io URL #100

Open ndnihil opened 4 years ago

ndnihil commented 4 years ago

Something with the main draw.io UI doesn't allow it to load, complaining about enabling javascript (recent change perhaps?).

As a workaround, you can configure: Admin-> Settings-> Additional settings-> Draw.io URL:

https://www.draw.io/?local=1

And the add-on will work again. Might want to make this the default going forward. They have a few integrations listed, but NC isn't among them.

davidjgraph commented 4 years ago

Any error in the browser console?

ndnihil commented 4 years ago

Nothing of interest. The main app now prompts for storage before loading the tool itself, and I'm guessing it's failing that part. The error (below) is a compatibility test returned by the draw.io server, and not a standard 4xx/5xx HTTP error code.

There are some other interesting arguments that might be worth looking at as well, but the local=1 is the fix for the load failure. May also be worth pursuing a formal integration mode since they have it available for google/OD/github/etc...

https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported-

Load failure message is:

Flowchart Maker and Online Diagram Software

draw.io (formerly Diagramly) is free online diagram software. You can use it as a flowchart maker, network diagram software, to create UML online, as an ER diagram tool, to design database schema, to build BPMN online, as a circuit diagram maker, and more. draw.io can import .vsdx, Gliffy™ and Lucidchart™ files . Page could not be loaded. Please try refreshing.

Please ensure JavaScript is enabled.

davidjgraph commented 4 years ago

That message is the noscript text, I need the error in the browser debugger console.

ndnihil commented 4 years ago

There weren't any messages that differ between local=1 arg and without the arg in console.

davidjgraph commented 4 years ago

I'd assume draw.io is loaded as an iFrame, are you certain you're looking at the console for that iFrame, not the NextCloud parent?

ChappIO commented 4 years ago

I'm running into the same issue. I'm getting two errors (probably related):

image

All I did was:

  1. Upload a .drawio file
  2. Open it

I could create a user account for you if you like so you can test. Ping me a message on Discord (ChappIO#8716) or Reddit (u/ChappIO) for credentials.