nextcloud / nextcloud/server

[Bug]: The generated Apple configuration profile (.mobileconfig) contains the internal account UID as the CalDAV/CardDAV username instead of the username

Open
#62,487 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 34-feedback bug feature: authentication feature: caldav feature: carddav feature: settings
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

The generated Apple configuration profile (.mobileconfig) contains the internal account UID as the CalDAV/CardDAV username instead of the username displayed by Nextcloud during App Password creation.

As a result, the generated profile cannot be installed on macOS without manual modification.

Steps to reproduce
  1. Install Nextcloud Server 34.0.1.
  2. Use the default local user backend (no LDAP, OpenID Connect or SAML).
  3. Create a local user with:
    • an internal account name (UID)
    • an email address
  4. Enable login via email address.
  5. Log in using the email address.
  6. Create an App Password under Settings → Security → Devices & sessions.
  7. Download the Apple configuration profile from the Personal settings page.
  8. Install the profile on macOS.
Expected behavior

The generated Apple configuration profile should use the same username that Nextcloud tells the user to use together with the generated App Password.

The profile should install without requiring manual edits.

Nextcloud Server version

34

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
webhosted version, no shell
List of activated Apps
webhosted version, no shell
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No relevant server-side errors are generated during profile download or installation.
Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Personal settings entry point that generates the Apple configuration profile and trace how the CalDAV/CardDAV username is selected for a local user who logs in by email. Reproduce the described account and App Password flow, then verify that the downloaded profile uses the username shown for App Password use and installs without manual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.