Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatars (photos) of event participants are not displayed (using "display name" instead of "username" in src URL) #4237

Closed
Jerome-Herbinet opened this issue May 23, 2022 · 1 comment
Labels
0. to triage Pending approval or rejection bug

Comments

@Jerome-Herbinet
Copy link
Member

Jerome-Herbinet commented May 23, 2022

Steps to reproduce

  1. Make sure your user (and the users you are going to invite) have an avatar.
  2. Create an event
  3. Go to the participants tab
  4. Notice already that your avatar is not displayed
  5. Invite one or more users with an avatar (you will notice that in the participant search drop-down list, avatars are displayed)
  6. Notice that the avatars of the selected invitees do not appear

Expected behavior

Users' avatar should appear (Organiser and guest(s)).

Actual behaviour

Users' avatar don't appear (Organiser and guest(s)).

Calendar app version

3.3.1

CalDAV-clients used

Thunderbird + Tbsync (That said, no relation to Thunderbird ; avatars are only for the browser view)

Browser

Firefox 100.0.2

Client operating system

GNU/Linux Ubuntu 20.04 LTS

Server operating system

CentOS 7

Web server

Nginx

Database engine version

MySQL

PHP engine version

PHP 7.4

Nextcloud version

23.0.5

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Enabled:
 - accessibility: 1.9.0
 - activity: 2.15.0
 - admin_audit: 1.13.0
 - afterlogic: 2.0.4
 - announcementcenter: 6.3.0
 - appointments: 1.12.4
 - apporder: 0.15.0
 - approval: 1.0.9
 - bbb: 2.2.0
 - calendar: 3.3.1
 - cfg_share_links: 2.0.0
 - circles: 23.1.1
 - cloud_federation_api: 1.6.0
 - collectives: 1.1.0
 - comments: 1.13.0
 - contacts: 4.1.1
 - contactsinteraction: 1.4.0
 - dashboard: 7.3.0
 - dav: 1.21.0
 - deck: 1.6.1
 - drawio: 1.0.2
 - external: 3.10.2
 - extract: 1.3.5
 - federatedfilesharing: 1.13.0
 - federation: 1.13.0
 - files: 1.18.0
 - files_accesscontrol: 1.13.0
 - files_automatedtagging: 1.13.0
 - files_clipboard: 0.7.1
 - files_downloadactivity: 1.13.0
 - files_external: 1.15.0
 - files_fulltextsearch: 23.0.1
 - files_linkeditor: 1.1.10
 - files_lock: 20.1.0
 - files_mindmap: 0.0.26
 - files_pdfviewer: 2.4.0
 - files_rightclick: 1.2.0
 - files_sharing: 1.15.0
 - files_trackdownloads: 1.11.0
 - files_trashbin: 1.13.0
 - files_versions: 1.16.0
 - files_videoplayer: 1.12.0
 - files_zip: 1.1.1
 - firstrunwizard: 2.12.0
 - forms: 2.5.0
 - fulltextsearch: 23.0.0
 - fulltextsearch_elasticsearch: 23.0.0
 - groupfolders: 11.1.4
 - guests: 2.2.0
 - impersonate: 1.10.0
 - integration_github: 1.0.2
 - integration_google: 1.0.6
 - integration_openproject: 1.0.6
 - integration_twitter: 1.0.2
 - jitsi: 0.15.0
 - login_notes: 1.0.4
 - logreader: 2.8.0
 - lookup_server_connector: 1.11.0
 - mail: 1.12.0
 - nextcloud_announcements: 1.12.0
 - notes: 4.3.1
 - notifications: 2.11.1
 - oauth2: 1.11.0
 - password_policy: 1.13.0
 - photos: 1.5.0
 - polls: 3.6.1
 - privacy: 1.7.0
 - provisioning_api: 1.13.0
 - quota_warning: 1.14.0
 - rainloop: 7.2.5
 - recommendations: 1.2.0
 - richdocuments: 5.0.5
 - serverinfo: 1.13.0
 - settings: 1.5.0
 - sharebymail: 1.13.0
 - spreed: 13.0.5
 - support: 1.6.0
 - systemtags: 1.13.0
 - tasks: 0.14.4
 - terms_of_service: 1.9.3
 - text: 3.4.1
 - theming: 1.14.0
 - twofactor_backupcodes: 1.12.0
 - updatenotification: 1.13.0
 - user_ldap: 1.13.1
 - user_status: 1.3.1
 - viewer: 1.7.0
 - weather_status: 1.3.0
 - welcome: 1.0.1
 - workflowengine: 2.5.0
 - workspace: 1.0.0
Disabled:
 - encryption
 - libresign
 - pdfdraw
 - survey_client: 1.11.0

Nextcloud configuration

{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "nc23.test.mydomain.fr"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "23.0.5.1",
    "overwrite.cli.url": "https:\/\/nc23.test.mydomain.fr",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "log_type": "file",
    "logfile": "\/var\/log\/nextcloud\/nc23.test.mydomain.fr\/nextcloud.log",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "password": "***REMOVED SENSITIVE VALUE***",
        "port": 6379,
        "dbindex": 0,
        "timeout": 0
    },
    "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
    "skeletondirectory": "",
    "logtimezone": "Europe\/Paris",
    "updater.release.channel": "stable",
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "PLAIN",
    "default_language": "fr",
    "default_phone_region": "FR",
    "defaultapp": "files",
    "trashbin_retention_obligation": "20,40",
    "versions_retention_obligation": "auto,40",
    "check_for_working_wellknown_setup": false,
    "quota_include_external_storage": false,
    "cron_log": true,
    "has_internet_connection": true,
    "updatechecker": true,
    "appstoreenabled": true,
    "filelocking.enabled": true,
    "session_keepalive": true,
    "knowledgebaseenabled": true,
    "allow_user_to_change_display_name": true,
    "enable_previews": true,
    "enable_avatars": true,
    "auth.bruteforce.protection.enabled": true,
    "loglevel": 0,
    "log_rotate_size": 104857600,
    "mail_smtpauth": 1,
    "mail_smtpport": 465,
    "session_lifetime": 86400,
    "remember_login_cookie_lifetime": 1296000,
    "preview_max_filesize_image": 50,
    "activity_expire_days": 120,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "app_install_overwrite": [
        "quota_warning",
        "files_downloadactivity",
        "files_trackdownloads",
        "files_clipboard",
        "pdfdraw",
        "groupquota",
        "jitsi",
        "bbb",
        "group_everyone"
    ],
    "maintenance": false
}

Web server error log

Maybe not necessary; I could provide this information if really necessary.

Log file

Maybe not necessary; I could provide this information if really necessary.

Browser log

Maybe not necessary; I could provide this information if really necessary.

Additional info

Analysis with the code inspector of my browser :

Looking at the HTML source code, here is a fairly easy to understand observation, which might suggest that the problem could (perhaps) be simple and quick to solve:
First look at the URL of the called avatar when it is displayed correctly (in the top right of the interface, or in the list of users of the instance): We see "/avatar/{username}/32?v=1".

  • "{username}" is what we use for example to connect to Nextcloud, on the login screen
  • 32?v=1" has no impact on whether or not the avatar is displayed correctly
    Then simply look at the URL of the avatars in the list of participants in an event:
    We see "/avatar/{display name}/32?v=1" ... including accents, spaces, etc ...

    Conclusion of this little analysis :
  • We know what is the expected URL (good) and what it corresponds to (username)
  • We know what the actual URL is (bad) and what it corresponds to (display name)

2022-05-23_15-54_1

@Jerome-Herbinet Jerome-Herbinet added 0. to triage Pending approval or rejection bug labels May 23, 2022
@Jerome-Herbinet Jerome-Herbinet changed the title Avatars of event participants are not displayed (wrong URL) Avatars (photos) of event participants are not displayed (using display name instead of username in URL) May 23, 2022
@Jerome-Herbinet Jerome-Herbinet changed the title Avatars (photos) of event participants are not displayed (using display name instead of username in URL) Avatars (photos) of event participants are not displayed (using "display name" instead of "username" in URL) May 23, 2022
@Jerome-Herbinet Jerome-Herbinet changed the title Avatars (photos) of event participants are not displayed (using "display name" instead of "username" in URL) Avatars (photos) of event participants are not displayed (using "display name" instead of "username" in src URL) May 23, 2022
@ChristophWurst
Copy link
Member

Dup of #3099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage Pending approval or rejection bug
Projects
None yet
Development

No branches or pull requests

2 participants