•  
      request #12608 Impossible to choose an avatar for a new user
    Infos
    #12608
    Societé Sibio (sibio)
    2018-12-11 09:43
    2018-12-08 15:15
    13312
    Details
    Impossible to choose an avatar for a new user
    Whatever the file format one gets this error in nginx.log:

    2018/12/08 15:07:08 [error] 6250#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: imagepng(/var/lib/tuleap/user/avatar//0/2/102/avatar): failed to open stream: Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/vendor/gumlet/php-image-resize/lib/ImageResize.php on line 315
    PHP message: PHP Warning: chmod(): Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/vendor/gumlet/php-image-resize/lib/ImageResize.php on line 320" while reading response header from upstream, client: 10.91.12.6, server: dev.sibio.fr, request: "POST /account/avatar HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "dev.sibio.fr", referrer: "https://dev.sibio.fr/account/"
    2018/12/08 15:07:08 [error] 6250#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: hash_file(/var/lib/tuleap/user/avatar//0/2/102/avatar): failed to open stream: Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/common/User/User.class.php on line 1377" while reading upstream, client: 10.91.12.6, server: dev.sibio.fr, request: "GET /account/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "dev.sibio.fr", referrer: "https://dev.sibio.fr/account/"
    2018/12/08 15:07:08 [error] 6250#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: hash_file(/var/lib/tuleap/user/avatar//0/2/102/avatar): failed to open stream: Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/common/User/User.class.php on line 1377
    PHP message: PHP Warning: hash_file(/var/lib/tuleap/user/avatar//0/2/102/avatar): failed to open stream: Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/common/User/User.class.php on line 1377" while reading upstream, client: 10.91.12.6, server: dev.sibio.fr, request: "GET /account/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "dev.sibio.fr", referrer: "https://dev.sibio.fr/account/"
    2018/12/08 15:07:08 [error] 6250#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: hash_file(/var/lib/tuleap/user/avatar//0/2/102/avatar): failed to open stream: Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/common/User/User.class.php on line 1377" while reading response header from upstream, client: 10.91.12.6, server: dev.sibio.fr, request: "GET /users/lahondes/avatar-.png HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "dev.sibio.fr", referrer: "https://dev.sibio.fr/account/"
    2018/12/08 15:07:08 [error] 6250#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: hash_file(/var/lib/tuleap/user/avatar//0/2/102/avatar): failed to open stream: Aucun fichier ou dossier de ce type in /usr/share/tuleap/src/common/User/User.class.php on line 1377" while reading response header from upstream, client: 10.91.12.6, server: dev.sibio.fr, request: "GET /users/lahondes/avatar-.png HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "dev.sibio.fr", referrer: "https://dev.sibio.fr/account/"

    I've tried to create /var/lib/tuleap/user/avatar/ with good owner to help but it did not improve things.
    Other
    10.8
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2018-12-11
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    Integrated in Tuleap 10.8.99.35, please upgrade to get the fix.

    Thanks for the report !


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2018-12-11
    User avatar
    Thomas Gerbet (tgerbet)2018-12-10 08:43
    Hi,

    Thanks for reporting it, I have been able to reproduce the issue. I'm working on a fix.

    • Summary
      -Change Avatar fails on default install with ldap plugin 
      +Impossible to choose an avatar for a new user 
    • Category changed from UX/UI to Other
    • Status changed from New to Under implementation
    • Assigned to changed from None to Thomas Gerbet (tgerbet)