Avatars cannot be set properly

Checklist
[ x] I have read intro post: About the Installation Issues category
[ x] I have read the tutorials, help and searched for similar issues
[ x] I provide relevant information about my server (component names and versions, etc.)
[ ] I provide a copy of my logs and healthcheck
[ x] I describe the steps I have taken to trouble shoot the problem
[ x] I describe the steps on how to reproduce the issue

Description
Hi,
I’ve searched google and I’ve done all things that I’ve found but non of that options worked for me.

What I’ve used:

  • chmod -R +x
  • chmod -R 0770
  • chmod -R 0774
  • chmod -R 0777
  • create Avatar
  • do not mount inside docker folder to outside folder
  • run image withouth mounting folders

I have installed passbolt using the docker image in version 3.2.1-2-ce and I have a problem with setting Avatar.

If I’m using HTTP avatar is not set and the information says **Success:** The user has been updated successfully

But If I use HTTPS the avatar is set but in folder /usr/share/php/passbolt/webroot/img/public there is only file empty, folder Avatar is missing.

If I create a folder Avatar and add all necessary privileges, no image or information will be store in that folder.

Do I miss something?

Folder image

drwxr-xr-x 9 root     root     4096 Aug 19 21:38 .
drwxr-xr-x 7 root     root     4096 Jul 28 13:31 ..
drwxr-xr-x 2 root     root     4096 Aug 19 21:38 avatar
drwxr-xr-x 2 root     root     4096 Aug 19 21:38 controls
drwxr-xr-x 2 root     root     4096 Aug 19 21:38 illustrations
drwxr-xr-x 2 root     root     4096 Aug 19 21:38 logo
drwxr-xr-x 3 www-data www-data 4096 Aug 19 21:42 public
drwxr-xr-x 2 root     root     4096 Aug 19 21:38 themes
drwxr-xr-x 2 root     root     4096 Aug 19 21:38 third_party

Folder avatar

drwxr-xr-x 3 www-data www-data 4096 Aug 19 21:42 .
drwxr-xr-x 9 root     root     4096 Aug 19 21:38 ..
drwxr-xr-x 2 www-data www-data 4096 Aug 19 21:42 Avatar
-rw-r--r-- 1 www-data www-data    0 Jul 27 14:57 empty

Logs

[20/Aug/2021:11:36:26 +0200] "POST /users/58a8fc1a-d524-4f7f-b19d-35863041bcdd.json?api-version=v2 HTTP/2.0" 200 4994 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"
[20/Aug/2021:11:36:26 +0200] "GET /users/58a8fc1a-d524-4f7f-b19d-35863041bcdd.json?api-version=v2&contain%5Bprofile%5D=1 HTTP/2.0" 200 5012 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"
[20/Aug/2021:11:36:26 +0200] "GET /avatars/view/26d96df3-7bd8-4921-b47c-913d0396839a/medium.jpg HTTP/2.0" 200 9364 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"

Docker volumes that I’ve create using ansible

docker_volume:
    name: passbolt-avatar
    driver_options:
      type: none
      device: /home/user/passbolt/Avatar
      o: bind

When I change passbolt version (upgrade) my avatar disappears.

Environment
Docker: 3.2.1-2-ce
Database: MariaDB hosted on RDS AWS
Browsers: Microsoft Edge and Mozilla Firefox

Reproduce

  1. Install docker passbolt in version 3.2.1-2-ce
  2. Set avatar

Hi @solaire !

Thanks for testing Passbolt and to report this issue to us ! This is a known bug in the web extension who has been fixed. It will be available in the next release, planned on early september.

Regarding the avatars, they are stored in the database since the 3.2 version.

Regards,

@_jc Thanks for the reply.
In that case, I’m waiting for a new release in September. :slight_smile:

Best regards,
solaire

1 Like