plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
427 stars 575 forks source link

Portrait/Avatar broken under Toolbar > PersonalTools panel #2927

Closed pigeonflight closed 2 weeks ago

pigeonflight commented 2 years ago

The user portrait returns as a broken link under the toolbar > personaltools.

To Reproduce Steps to reproduce the behavior:

  1. Click on your avatar
  2. Click on 'Profile'
  3. Upload a portrait image

After it successfully uploads, the portrait will fail to load For the admin user the output In the console looks like this: admin:1 GET http://localhost:3000/portal_memberdata/portraits/admin 404 (Not Found)

Expected behavior I expect the the portrait to load successfully and display in panel

Software (please complete the following information): Volto 13.15.1 Plone 6.0.0a1 CMF 2.5.4 Zope 5.3 Python 3.9.8 (main, Nov 10 2021, 03:21:27) [GCC 8.3.0] PIL 8.3.1 (Pillow)

pigeonflight commented 2 years ago

I think it relates to the Plone restapi as the api returns the broken URL when you query the @users endpoint. see the associated acton that makes the call to the api: https://github.com/plone/volto/blob/2b062ea2b69b4ab7bad1b2fa3c3da11a5d27c9ee/src/actions/users/users.js

giuliaghisini commented 1 year ago

reproduced too