haiwen / seahub

The web end of seafile server.

Home Page:seafile.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contained image in MD not loaded while sharing library

de-es opened this issue · comments

11.0.9 CE

Steps to reproduce:

  • Go to a library
  • Place an image in the library
  • Create and edit a new markdown document
  • Insert library image into the document and save
  • Share the document directly via Share Link

Everything works as expected (= image will be loaded and shown) except the image alt attribute shows Image_loading_failed:

<img class="sf-image" alt=" Image_loading_failed" src="https://mypersonalcloud.com/view-image-via-share-link/?token=43a2a881da9a43b689aa&amp;path=/testimage.jpg">

Now share the whole library containing the image and the document. Open the shared link and then open the document. The image is not loaded even though the corresponding HTML code is exactly the same as before.

But the server responds differently now. Instead of returning the image, it returns a HTML page (200) containing the error message Invalid file type. The request is also the same as before and there are no errors in the log files.