RestyaPlatform / board

Trello like kanban board. Based on Restya platform.
http://restya.com/board/
Open Software License 3.0
2.03k stars 381 forks source link

Broken attachments on boards imported from Trello #4340

Open AndreC10002 opened 2 years ago

AndreC10002 commented 2 years ago

Restyaboard 1.7, Ubuntu, php 7.4.23, all OS packages updated - installed from Digital Ocean image.

The attachments on boards imported from Trello aren't successfully downloaded. All files created on /usr/share/nginx/html/restyaboard/client/img/original/CardAttachment/ contain the following: 'unauthorized permission requested'.

These files would be downloaded from https://trello.com/1/cards/... . My understanding, based on the usage of Trello-Backup is that Trello is requiring the following headers to allow downloads:

Authorization: OAuth oauth_consumer_key=\"$key\", oauth_token=\"$application_token\"

Once those are sent in the request, the files are downloaded.

I believe the function that needs to be modified is curlExecute() on /usr/share/nginx/html/restyaboard/server/php/libs/core.php, but I don't know enough Restyaboard to properly do it.

Trello also stores files on AWS S3, but I didn't have a chance to test a board with those yet.

AndreC10002 commented 2 years ago

I can open a feature request, but it'd be great to have an import log so to know if something went wrong and what wasn't imported properly.

rrjanbiah commented 2 years ago

@AndreC10002 We have noted that the public boards can be imported without any issue. For private boards, we may need to check your fix and work on that. Till then, as a quick solution, you may make the board public, export it and import it within Restyaboard

laryn commented 2 years ago

I can confirm the workaround of momentarily setting a board to public, importing, and then reverting it back to private.

sridhar391 commented 2 years ago

@laryn Thanks for the confirmation of the workaround and we are checking about the fix and will update