notum-cz / strapi-plugin-record-locking

This plugin provides the functionality to prevent data loss in cases where multiple users are simultaneously editing the same record within STRAPI v4.
20 stars 8 forks source link

`strapi transfer` does not work with plugin enabled #91

Open ihmpavel opened 4 months ago

ihmpavel commented 4 months ago

Hi,

We are using your plugin and we really like the simplicity and ease of use. Unfortunately, when the plugin is enabled in config/plugins.ts transferring content via strapi transfer stops working. This is because no initial websocket connection to Strapi can be made (everything is rejected). Our Strapi is deployed on AWS and is returning error 502 when calling strapi transfer with enabled plugin. After disabling the plugin, everything works seamlessly.

I am not sure why these two features are colliding, because transfer is calling different endpoint - wss://<domain>/admin/transfer/runner/pull

Strapi version: 4.25.0 Plugin version: 1.3.11

omikulcik commented 4 months ago

Hi @ihmpavel, thank you for pointing this out. We did not know it. Looking at the source code of the plugin I have no clue what might be causing this to be honest. I think this is a low-prio bug because it can be turned on/off before and after transferring so we will not fix this right now.