Skip to content

Inserting image doesn't work : lok_allow not taking alias_group into account. #13727

@vincib

Description

@vincib

Describe the Bug

When I edit a document opened from a Nextcloud and I want to insert an image from my nextcloud into the document, I can browse my files, but when I click "insert file", nothing happen, and collabora logs this:

dec. 03 11:07:47 hostname coolwsd[1931654]: kit-1931654-1931654 2025-12-03 11:07:47.068565 +0100 [ kitbroker_2137 ] ERR  ToMaster-4a0e2: CALLBACK_ERROR: { "code": 24581, "kind": "network", "cmd": "insert"}| kit/ChildSession.cpp:3742
dec. 03 11:07:47 hostname coolwsd[1931654]: kit-1931654-1931654 2025-12-03 11:07:47.068686 +0100 [ kitbroker_2137 ] ERR  ToMaster-4a0e2: error: cmd=insert kind=network code=24581| common/Session.hpp:181

We found a way to reproduce, stated below:

Steps to Reproduce

  1. Install collabora
  2. Setup the configuration to have a remote_config url
  3. This remote_config URL spit out a JSON file containing a storage > wopi > alias_groups > groups > host > "https://mynextcloud.com"
  4. open an ODT document from mynexcloud.com using this collabora
  5. The document opens properly
  6. click Insert > Illustration > Image > Image... and select an image from your nextcloud
  7. click "insert this file" => nothing happen

To make it work we MUST add mynextcloud.com in the lok_allow key in the coolwsd.xml configuration statically

Expected Behavior

I expect lok_allow to be a dynamic configurable list too.

We tried to setup the remote_config with a lok_allow key too as follow:

{ "kind":"configuration", "net": { "lok_allow": { "hosts" : ["mynextcloud.com"]  }   }  }

but it didn't work.

Actual Behavior

lok_allow is a static configuration list, it's seems to be read at boottime and can't be modified later.

  • Collabora version: collabora online lite version 25.04.7-3
  • OS and version: server running Debian 12
  • Browser and version: Chrome 142

Metadata

Metadata

Assignees

No one assigned

    Labels

    25.04bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions