Skip to content

Use address book display names in VCF exports - #1690

Open
whoalin1 wants to merge 1 commit into
sabre-io:masterfrom
whoalin1:devin/1795962000-vcf-export-displayname
Open

whoalin1 wants to merge 1 commit into
sabre-io:masterfrom
whoalin1:devin/1795962000-vcf-export-displayname

Conversation

@whoalin1

Copy link
Copy Markdown

Summary

Use the CardDAV address book display name for the exported VCF filename when the node exposes one, falling back to the immutable URI otherwise.

This addresses the behavior reported downstream in nextcloud/contacts#5719: CardDAV address book URIs do not change when users rename an address book, so exports currently keep the original name even though the UI shows the renamed display name.

Validation

  • vendor/bin/phpunit --configuration tests/phpunit.xml tests/Sabre/CardDAV/VCFExportTest.php — OK, 6 tests / 13 assertions
  • PHP syntax checks passed for both changed files

Not run: the full test suite and php-cs-fixer. The local composer install resolved a Symfony Console version using PHP syntax unsupported by the available PHP 8.3 runtime, so the fixer executable could not start; this does not affect the focused PHPUnit regression test run in a PHP container with the required extensions.

CardDAV address book URIs are immutable identifiers, so a renamed address book keeps its original URI. Using the display name when available makes the exported file match the name users currently see instead of the stale URI.

Assisted-by: Devin:unknown
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant