Defect #22910

Inline(Base64) Images are not shown anyone after update to 3.2.2

Added by Roman Pickl about 3 years ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution:Invalid Affected version:3.2.2

Description

I noticed that images inlined/pasted as Base64 (using ckeditor) are not displayed any more (empty src tag in HTML) in issues, notes, project Descriptions after updating to 3.2.2.


Related issues

Related to Redmine - Feature #20391: Add support for data URI in mails received New

History

#1 Updated by Toshi MARUYAMA about 3 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Please contact plugin author.

#2 Updated by Victor Campos almost 3 years ago

Hi,
I don't use any plugin and I have this problem too.

#3 Updated by Victor Campos almost 3 years ago

Here a example working:

#4 Updated by Victor Campos almost 3 years ago

/lib/redcloth3.rb

There is a line:
return m unless uri_with_safe_scheme?(url) (#964)

It's breaking base64 urls

#5 Updated by Toshi MARUYAMA almost 3 years ago

Victor Campos wrote:

Hi,
I don't use any plugin and I have this problem too.

It disabled by r15433 for security reason.

#6 Updated by Aleksandar Pavic visit redminecookbook.com 5 months ago

data:image is getting more and more use, broken plugin functionality of ckeditor is fixed by adding

 Loofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.replace RedmineCkeditor.allowed_protocols
 Loofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.add('data')

to it's init.rb

however my opinion is that Redmine should be able to handle base64 images just like it's handling PNG or JPG...

And broken windows paste image from clipboard functionality in new Chrome is fixed by adding https://ckeditor.com/cke4/addon/pastebase64 to assets/ckeditor-contrib

#7 Updated by Aleksandar Pavic visit redminecookbook.com 4 months ago

I also had to change type of column messages, field content from text to longtext in order to be able to work with base64 images, mysql databse...

Also in issues table, description I have changed to longtext, earlier...

Maybe this should be separate issue...

#8 Updated by Go MAEDA 4 months ago

  • Related to Feature #20391: Add support for data URI in mails received added

Also available in: Atom PDF