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

Cannot load shape library from URL in configuration file

Open RobMcA opened this issue 3 years ago • 0 comments

Preflight Checklist

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug

A configured library shows access denied when trying to open the shape library using a URL. Importing the downloaded file works fine.

To Reproduce Steps to reproduce the behavior:

  1. Start Draw.io Desktop
  2. Click on Extras -> Configuration...
  3. Paste the configuration in the additional context section below and click Apply
  4. Restart Draw.io
  5. On the left pane, click More Shapes...
  6. Select Oracle -> OCI Graphics and click Apply
  7. On the left pane expand OCI
  8. See Access Denied error

Expected behavior

When expanding the OCI section the graphics library should be loaded and shown.

Screenshots image

image

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 17.4.2

Desktop (please complete the following information):

  • OS: MacOS Monterey 12.3.1

Additional context

Here is the configuration.

{
  "libraries": [
    {
      "title": {
        "main": "Oracle"
      },
      "entries": [
        {
          "id": "oci-graphics",
          "title": {
            "main": "OCI Graphics"
          },
          "desc": {
            "main": "Graphics for Topologies and Diagrams"
          },
          "libs": [
            {
              "title": {
                "main": "OCI"
              },
              "url": "https://docs.oracle.com/en-us/iaas/Content/Resources/Assets/OCI_Icons.drawio"
            }
          ]
        }
      ]
    }
  ]
}

RobMcA avatar Apr 22 '22 21:04 RobMcA