Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20091

Image not saved when inserted in ckeditor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.5
    • Attachments
    • None
    • Linux SLES 15-SP3, tomcat-9.0.36
    • showhide macro
    • Unknown

    Description

      Hi team!

      Path for my page: https://xwiki:8443/xwiki/bin/view/%D0%91%D0%B0%D0%B7%D1%8B%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85/Oracle/1_%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B8/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C%20%D0%B0%D0%B3%D0%B5%D0%BD%D1%82%D0%B0%20OEM13c%20%D0%BD%D0%B0%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%20Linux%20x64/

      I edit part of page, insert image frio clipboard, CKeditor tells mt that "file successfully uploaded", I check tomcat logs:

      10.254.27.75 - - [25/Aug/2022:10:57:41 +0300] "POST /xwiki/bin/get/%D0%91%D0%B0%D0%B7%D1%8B%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85/Oracle/1_%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B8/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C%20%D0%B0%D0%B3%D0%B5%D0%BD%D1%82%D0%B0%20OEM13c%20%D0%BD%D0%B0%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%20Linux%20x64/?sheet=CKEditor.FileUploader&outputSyntax=plain&syntax=xwiki%2F2.1&language=en&form_token=p5829M9RowZx7XHHal1Yag&initiator=filetools HTTP/1.1" 200 483

       

      10.254.27.75 - - [25/Aug/2022:10:57:42 +0300] "GET /xwiki/bin/download/%D0%91%D0%B0%D0%B7%D1%8B%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85/Oracle/1_%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B8/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C%20%D0%B0%D0%B3%D0%B5%D0%BD%D1%82%D0%B0%20OEM13c%20%D0%BD%D0%B0%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%20Linux%20x64/WebHome/image-20220825105741-1.png HTTP/1.1" 200 40971

      output code 200, with correct filesize 40971

       

      10.254.27.75 - - [25/Aug/2022:10:58:03 +0300] "POST /xwiki/bin/preview/%D0%91%D0%B0%D0%B7%D1%8B%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85/Oracle/1_%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B8/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C%20%D0%B0%D0%B3%D0%B5%D0%BD%D1%82%D0%B0%20OEM13c%20%D0%BD%D0%B0%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%20Linux%20x64/WebHome HTTP/1.1" 200 21

      File saved to xwiki persistent storage ok:

      xwiki:/data/xwiki/data/store/file/xwiki/2/e/debdb64619434b4d0529256024ed99/attachments/9/7/b4d51887542428b1c65e4910537054 # ls -la
      total 92
      drwxr-xr-x 2 tomcat tomcat 57 Aug 25 10:58 .
      drwxr-xr-x 3 tomcat tomcat 44 Aug 25 10:58 ..
      rw-rr- 1 tomcat tomcat 40971 Aug 25 10:58 f.png
      rw-rr- 1 tomcat tomcat 40971 Aug 25 10:58 fv1.1.png
      rw-rr- 1 tomcat tomcat 364 Aug 25 10:58 ~METADATA.xml

      xwiki:/data/xwiki/data/store/file/xwiki/2/e/debdb64619434b4d0529256024ed99/attachments/9/7/b4d51887542428b1c65e4910537054 # cat ~METADATA.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <attachment-list serializer="attachment-list-meta/1.0">
      <attachment serializer="attachment-meta/1.0">
      <filename>image-20220825105741-1.png</filename>
      <filesize>40971</filesize>
      <author>XWiki.kuchinva</author>
      <version>1.1</version>
      <comment></comment>
      <date>1661414282000</date>
      </attachment>
      </attachment-list>

       

      But after I save and reload page - no image shown and no images in attachment section...

      In tomcat logfile:

      10.254.27.75 - - [25/Aug/2022:11:20:01 +0300] "GET /xwiki/bin/download/%D0%91%D0%B0%D0%B7%D1%8B%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85/Oracle/1_%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B8/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C%20%D0%B0%D0%B3%D0%B5%D0%BD%D1%82%D0%B0%20OEM13c%20%D0%BD%D0%B0%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%20Linux%20x64/WebHome/image-20220825105741-1.png HTTP/1.1" 404 8012

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            amadis Vadim Kutchin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: