citizenos / ep_image_upload

Add images to etherpad and upload them to Amazon S3
Other
9 stars 16 forks source link

migrating from ep_copy_images #61

Open thelliez opened 1 year ago

thelliez commented 1 year ago

Hello,

Trying to migrate/update an installation using the ep_copy_images plugin, I get the following error for pages that already have images from the old install.

EP + ep_image_upload seem to work fine. But it crashes for my legacy pages. Any suggestions?

This is running on top of RockyLinux8 + NodeJS16 + Postgresql

Thanks!

type: 'Unhandled Promise rejection', msg: 'TypeError: /src\s=\s"([^\s]+\/\/[^/]+.\/[^\s]+\.\w*)/gi.exec(...) is null', url: 'https:///p/oldPage', source: 'https:///static/js/require-kernel.js?v=12388c46 line 1 > Function', linenumber: 3, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0', stack: '(module ep_image_upload/static/js/clientHooks.js)/exports.aceAttribsToClasses@https:///static/js/require-kernel.js?v=12388c46 line 1 > Function:3:480\n' + 'callHookFnSync@https:///javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define&v=12388c46:43:1543\n' + '(module ep_etherpad-lite/static/js/pluginfw/hooks.js)/exports.callAll/<@https:///javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define&v=12388c46:43:2259\n' + '(module ep_etherpad-lite/static/js/pluginfw/hooks.js)/exports.callAll@https:///javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define&v=12388c46:43:2236\n' + 'f/g/<@https://<UR/static/js/require-kernel.js?v=12388c46 line 1 > Function:19:1411\n' +