galetahub / ckeditor

Ckeditor 4.x integration gem for rails
https://ckeditor.com/ckeditor-4/
MIT License
2.23k stars 878 forks source link

link image crashed #884

Closed redencion closed 4 years ago

redencion commented 4 years ago

Hi everyone

I'm working ckeditor version 4.16 on rails 5.2.3 ruby 2.6.3 + azure blobstorage + active storage+ docker + debian stretch

Case It's work s fine, I can upload image into ckeditor and write too, at all fine. But when I restart my docker container or rebuild it , so whole the links images embedded into html I can't see them. However I can previsualize the image in the path ckeditor servidor panel and I know the image is saved into blobstorage azure. But if I want to see image in another place calling url I can't see it. What can I do, Sorry my english is not very good looking xD.

Note: I'm working on azure blobstorage and app services, there exists error just add image into ckeditor version 5.1.0. Indeed when another host trying to see image it can't to see image uploaded

Logs Started GET "/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBGZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--46f7c4ff0bc306961e9d22f5471c22723115446c/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lKT0RBd1BnWTZCa1ZVIiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--9c694fd8229f3ef42adc68c9d3d24c7f1283c033/fixed_table.png" for ::1 at 2020-04-26 12:10:20 -0400 Started GET "/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6bc649f31490614f00721d6922e73bec9be44510/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lKT0RBd1BnWTZCa1ZVIiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--ed93943209406f156456f58b608e5066975ddbb9/Logo-Final-gra.png" for ::1 at 2020-04-26 12:10:20 -0400 Processing by ActiveStorage::RepresentationsController#show as PNG Started GET "/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBGQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4c8de5fb50646ddb8a403fe04bbf26091dfd2db1/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lKT0RBd1BnWTZCa1ZVIiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--384a928f38649e9ed8612c50d379b919411b5ebf/videos.png" for ::1 at 2020-04-26 12:10:21 -0400 Parameters: {"signed_blob_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBGZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--46f7c4ff0bc306961e9d22f5471c22723115446c", "variation_key"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lKT0RBd1BnWTZCa1ZVIiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--9c694fd8229f3ef42adc68c9d3d24c7f1283c033", "filename"=>"fixed_table"} Filter chain halted as :set_blob rendered or redirected

redencion commented 4 years ago

Can anyone help me?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

redencion commented 4 years ago

Fixed in ckeditor model picture.rb method url-content add return url-service_blobstorage+storage.key instead rails_representation_url(storage_data.variant(resize: '800>').processed, only_path: true). It has to change to avoid lost image or files loaded in our docker (volatile).

redencion commented 4 years ago

Ahh and thank you very much!