Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-45605

When adding image in Syllabus, server logs show issues with the span tags

    XMLWordPrintable

Details

    • Verified
    • Verified
    • Please Merge
    • Hide

      With the server logs open:

      1. Add some images to Resources
      2. Click on Syllabus > Add
      3. Using the image icon in the CKEditor, browse the server
      4. Select an image to insert
      5. Click Add and Publish

      Currently, the pop-up displays stating the HTML contains formatting tags or attributes not permitted. In the server logs you will see the Formatted text error.

      Repeat the above test with Announcements and these issues are not present.

      Show
      With the server logs open: Add some images to Resources Click on Syllabus > Add Using the image icon in the CKEditor, browse the server Select an image to insert Click Add and Publish Currently, the pop-up displays stating the HTML contains formatting tags or attributes not permitted. In the server logs you will see the Formatted text error. Repeat the above test with Announcements and these issues are not present.

    Description

      I created an announcement using just an image and did not see these issues. Using Syllabus, and doing exactly the same test, I receive the pop-up stating the HTML contains formatting tags or attributes not permitted (this does not show up for Announcements).

      Looking in the server logs, for the Syllabus, I see the following:

      05-Jun-2021 10:15:16.797 INFO [http-nio-20013-exec-12] org.sakaiproject.util.impl.FormattedTextImpl.processFormattedText FormattedText Error: user=jdoe : The div tag contained an attribute that we could not process. The tabindex attribute has been filtered out, but the tag is still in place. The value of the attribute was "&#45;1".<br/>The div tag contained an attribute that we could not process. The contenteditable attribute has been filtered out, but the tag is still in place. The value of the attribute was "false".<br/>The span tag had a style attribute, "background", that could not be allowed for security reasons.<br/>The div tag had a style attribute, "position", that could not be allowed for security reasons.<br/>  -- processing input:<div tabindex="-1" contenteditable="false" data-cke-widget-wrapper="1" data-cke-filter="off" class="cke_widget_wrapper cke_widget_block cke_widget_image cke_image_nocaption cke_widget_focused cke_widget_selected" data-cke-display-name="image" data-cke-widget-id="1" role="region" aria-label=" image widget"><p data-cke-widget-keep-attr="0" data-widget="image" class="cke_widget_element" data-cke-widget-data="%7B%22hasCaption%22%3Afalse%2C%22src%22%3A%22https%3A%2F%2Ftrunk-mysql.nightly.sakaiproject.org%2Faccess%2Fcontent%2Fgroup%2Fb21e063b-d5ba-4fb8-b0ed-9c363ab0fcde%2FCHSDM-F5A32E04B80D2-000001.jpg%22%2C%22alt%22%3A%22%22%2C%22width%22%3A%224646%22%2C%22height%22%3A%226929%22%2C%22lock%22%3Atrue%2C%22align%22%3A%22center%22%2C%22classes%22%3Anull%7D" style="text-align: center;"><span class="cke_image_resizer_wrapper"><img alt="" src="https://trunk-mysql.nightly.sakaiproject.org/access/content/group/b21e063b-d5ba-4fb8-b0ed-9c363ab0fcde/CHSDM-F5A32E04B80D2-000001.jpg" data-cke-saved-src="https://trunk-mysql.nightly.sakaiproject.org/access/content/group/b21e063b-d5ba-4fb8-b0ed-9c363ab0fcde/CHSDM-F5A32E04B80D2-000001.jpg" width="4646" height="6929"><span class="cke_image_resizer" title="Click and drag to resize">​</span></span></p><span class="cke_reset cke_widget_drag_handler_container" style="background: url(&quot;https://trunk-mysql.nightly.sakaiproject.org/library/webjars/ckeditor/4.14.0/full/plugins/widget/images/handle.png&quot;) rgba(220, 220, 220, 0.5); top: -15px; left: 0px;"><img class="cke_reset cke_widget_drag_handler" data-cke-widget-drag-handler="1" src="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==" width="15" title="Click and drag to move" height="15" role="presentation"></span></div><p><br></p><div data-cke-hidden-sel="1" data-cke-temp="1" style="position:fixed;top:0;left:-1000px;width:0;height:0;overflow:hidden;"> image widget</div>  -- resulting output:<div data-cke-widget-wrapper="1" data-cke-filter="off" class="cke_widget_wrapper cke_widget_block cke_widget_image cke_image_nocaption cke_widget_focused cke_widget_selected" data-cke-display-name="image" data-cke-widget-id="1" role="region" aria-label=" image widget"><p data-cke-widget-keep-attr="0" data-widget="image" class="cke_widget_element" data-cke-widget-data="%7B%22hasCaption%22%3Afalse%2C%22src%22%3A%22https%3A%2F%2Ftrunk-mysql.nightly.sakaiproject.org%2Faccess%2Fcontent%2Fgroup%2Fb21e063b-d5ba-4fb8-b0ed-9c363ab0fcde%2FCHSDM-F5A32E04B80D2-000001.jpg%22%2C%22alt%22%3A%22%22%2C%22width%22%3A%224646%22%2C%22height%22%3A%226929%22%2C%22lock%22%3Atrue%2C%22align%22%3A%22center%22%2C%22classes%22%3Anull%7D" style="text-align: center;"><span class="cke_image_resizer_wrapper"><img alt="" src="https://trunk-mysql.nightly.sakaiproject.org/access/content/group/b21e063b-d5ba-4fb8-b0ed-9c363ab0fcde/CHSDM-F5A32E04B80D2-000001.jpg" data-cke-saved-src="https://trunk-mysql.nightly.sakaiproject.org/access/content/group/b21e063b-d5ba-4fb8-b0ed-9c363ab0fcde/CHSDM-F5A32E04B80D2-000001.jpg" width="4646" height="6929" /><span class="cke_image_resizer" title="Click and drag to resize">​</span></span></p><span class="cke_reset cke_widget_drag_handler_container" style="top: -15.0px;left: 0.0px;"><img class="cke_reset cke_widget_drag_handler" data-cke-widget-drag-handler="1" src="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==" width="15" title="Click and drag to move" height="15" role="presentation" /></span></div><p><br /></p><div data-cke-hidden-sel="1" data-cke-temp="1" style="top: 0;left: -1000.0px;width: 0;height: 0;overflow: hidden;"> image widget</div>
      

      Gliffy Diagrams

        Zeplin

          Attachments

            Activity

              People

                chmaurer@iupui.edu Chris Maurer
                agschmidt Andrea Schmidt
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Git Integration