Open sdelcroix opened 1 year ago
This case is even worse :(
I really like Decidim and I'm really sad to admit that the base64 migration has been a total mess for us. Additionally to the initial issue, there were others :
After digging hours to figure out an automated way, we had to fix all of these by hand. The topic is closed for us but if someone wants to search why the migration task silently failed, I can provide content data that have been incorrectly migrated.
Could you provide the original content which you have been migrating with the migration script and it resulted in the wrong outcome?
It would potentially help fixing this issue.
Thanks for your time ;) Here are some sample data :
decidim upgrade 0.26 - migration base64 issue - accountability 72.txt
I think this is because the task doesn't handle this case.
decidim upgrade 0.26 - migration base64 issue - page 15.txt
decidim upgrade 0.26 - migration base64 issue - blog post 19.txt decidim upgrade 0.26 - migration base64 issue - blog post 20.txt decidim upgrade 0.26 - migration base64 issue - blog post 29.txt decidim upgrade 0.26 - migration base64 issue - blog post 31.txt
I'm on vacation from July, 29th to August, 13th. If needed, I could provide more data until tomorrow or when I'm back ;)
Describe the bug
After upgrading from 0.25 to 0.26.7, and running the Base64 images migration task, some images have wrong URL. The filename is not present at the end of URL, but a "hash" or a "key".
Example :
/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaW9JIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3effc0f11422c1febf5c0b07889068782d40a4bc/ab3c4f7c3a620fc9486731c88d519ad0
Additionally, the protocol and domain are missing too.
This is resulting in a 404 not found error.
To Reproduce
Expected behavior
Right URLs for base64 images converted in ActiveStorage attachments
Screenshots
No response
Stacktrace
Here some log lines :
And the blob found in console :
Extra data
Additional context