board icon indicating copy to clipboard operation
board copied to clipboard

Broken attachments on boards imported from Trello

Open AndreC10002 opened this issue 3 years ago • 4 comments

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 avatar Sep 21 '21 18:09 AndreC10002

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.

AndreC10002 avatar Sep 21 '21 18:09 AndreC10002

@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

rrjanbiah avatar Sep 23 '21 06:09 rrjanbiah

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

laryn avatar Apr 06 '22 21:04 laryn

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

sridhar391 avatar Apr 07 '22 05:04 sridhar391