Skip to content

Broken image display for address book contacts in drop down menu #3078

@arnowelzel

Description

@arnowelzel

Describe the bug

I notized this issue after upgrading from Nextcloud 24 to Nextcloud 25, but maybe this also happens with Nextcloud 24:

When opening the contact menu, images for contacts who don't have an image show as "broken image" and not using the initials as placolder. In the following screenshot the "C" and "D" are users in Nextcloud. All other entries are just address book contacts without image

image

The reason for this is, that the respective image URLs (e.g. https://myserver.example/avatar/a5db8598-935c-4935-8ac7-02d89f1226e6/64&size=64) result in 404 errors.

Steps to reproduce

  1. Make sure that the Contacts app is installed and active
  2. Create some address book entries without image
  3. Click on the "contacts" icon on the top right corner to display the contact drop down menu

Expected behavior

Address book contacts without image show a placholder similar to user entries based on the first and last name.

Actual behavior

A "broken image" is displayed since the image URL responds with a 404 error.

Contact version

5.0.1

Operating system

Ubuntu Linux 20.04.5 LTS

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database

MariaDB

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions