Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import old etherpads #6785

Open
paulirish opened this issue Dec 3, 2024 · 0 comments
Open

Can't import old etherpads #6785

paulirish opened this issue Dec 3, 2024 · 0 comments

Comments

@paulirish
Copy link

Describe the bug
I have ~35 .etherpad files from ~10 years ago. I don't know the exact version used back then (though perhaps @vladikoff may)

I just setup etherpad locally and am attempting to import them.

But I'm running into this assert(authorId != null); line which is failing the import with AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value

Honestly have no idea if it's just the one problem or.. it's a harbinger and there's a pile of backcompat issues behind this one.

I'm open to writing my own migration script to update these old .etherpad files to something modern etherpad-lite can handle.. but... before I embark on that I wanted to see if any maintainers here have any bright ideas or useful resources. :)

I'm using import from the Web UI, not API.

To Reproduce
Here's an example .etherpad file that repros: https://gist.github.com/paulirish/da70e566b3911c90f9a0d4aaf867b8e7

Maybe related:

stack trace
    at async <anonymous> (/opt/etherpad-lite/src/node/hooks/express/importexport.ts:84:7)
    at async Object.exports.doImport (/opt/etherpad-lite/src/node/handler/ImportHandler.ts:255:28)
    at async doImport (/opt/etherpad-lite/src/node/handler/ImportHandler.ts:156:5)
    at async Object.exports.setPadRaw (/opt/etherpad-lite/src/node/utils/ImportEtherpad.ts:118:5)
    at Pad.check (/opt/etherpad-lite/src/node/db/Pad.ts:716:9)

[2024-12-03T12:20:57.911] [ERROR] ImportHandler - Internal error during import: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
[2024-12-03T12:20:57.910] [WARN] ImportEtherpad - (pad importtest) unsupported attributes (try installing a plugin): underline

Server:

  • Etherpad version: 2.2.6, git sha 0c68ddc
  • OS: docker on synology dsm
  • Is the server free of plugins: YES. no plugins at all. (Though apparently i'll need plugins to add support for list, strikethrough, underline, and start )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant