vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
205 stars 129 forks source link

Image uploads #3987

Closed chenejac closed 4 months ago

chenejac commented 4 months ago

Describe the bug Image uploads is broken for non administrators. Reported by @gneissone

Anyone having trouble with image uploads with recent versions of VIVO? I'm getting these errors in the logs: 2024-05-13 19:09:33,509 ERROR [FileInfo] File had no filename: 'https://researchers.mydomain.edu/individual/n23090' 2024-05-13 19:09:33,510 INFO [FileServingServlet] Failed to serve the file at '/file/n50145/thumbnail_totoro.jpg' -- edu.cornell.mannlib.vitro.webapp.filestorage.serving.FileServingServlet$FileServingException: The request path is not valid for the File servlet: '/file/n50145/thumbnail_totoro.jpg' Images work if I'm logged in as an admin and do a hard refresh, otherwise they appear broken.

To Reproduce Steps to reproduce the behavior:

  1. Run VIVO
  2. Log in as a self editor
  3. Upload an image for a profile
  4. Check logs and see error