maxammann / trello-to-deck

trello-to-deck reads from an JSON export of Trello and creates a board in Nextcloud Deck.
MIT License
66 stars 9 forks source link

Attachment import fails #30

Open nielsgeo opened 2 years ago

nielsgeo commented 2 years ago

Issue

To Deck imported attachment files are corrupted (.pdf, .docx) or contain text "unauthorized permission requested" instead of the Trello attachment content (.txt). Import of cards, comments, checklists works fine, no error messages, only "successfully migrated to deck!"

Seems as if links to attachments on trello servers are not accessible for trello-to-deck (as usual in browser if not logged in to trello). Maybe necessary to provide trello's login details to trello-to-deck?

To reproduce:

OS

Win10 Python 3.9.4

Nextcloud version

20.0.13 (most likely, it is a manged server I do not have access to)

Please feel free to ask for any details if needed. Thanks a lot for providing this essential tool!

maxammann commented 2 years ago

Hm that could actually be! Did it the import work for images? I suppose trello handles images and other attachments differently.

maxammann commented 2 years ago

Maybe this would be an API which could simplify this: https://developer.atlassian.com/cloud/trello/guides/rest-api/automating-exports/

nielsgeo commented 2 years ago

Hm that could actually be! Did it the import work for images?

Thanks for quick reply. .jpg images are likewise not imported in correct way. Same content if I open with text editor.

maxammann commented 2 years ago

Oke this is very strange, because it means that Trello changed their policy. Previously it was possible to download attachments without authentication

maxammann commented 2 years ago

I'll soon have more free time (next week). In the mean time one option could be to make your board public for a short time.

nielsgeo commented 2 years ago

In the mean time one option could be to make your board public for a short time.

Great, this does work for me! Thanks for the hint.

maxammann commented 2 years ago

Perfect :) Nonetheless thanks for the report. Will look at is more close soon