Skip to content

fix: normalize guest addresses like the server stores them - #4403

Merged
kulmann merged 1 commit into
mainfrom
fix/guest-address-normalize
Nov 10, 2026
Merged

kulmann merged 1 commit into
mainfrom
fix/guest-address-normalize

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Duplicates: a guest address typed in different case is no longer offered again when it's already shared or selected, so the share doesn't fail with a 409 anymore.
  • Non-ASCII domains: addresses like x@müller.de or x@пример.рф are offered as guests now; they're shown as typed and sent in the punycode form the server stores (converted with the browser's URL API, no new dependency).

After sharing, the collaborator list shows the punycode address because the server uses it as display name: opencloud-eu/opencloud#3929.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: canonical id (lower-case, punycode domain incl. IDN TLDs) and readable display name; invalid domains not offered; case and punycode variants of existing or selected guests not offered; the invite sends the canonical address
  • test case 2: browser: case variant of a shared guest not offered, two spellings of a new address can't both be selected, x@müller.de offered/shown readable/sent as punycode and the invitation mail arrives, IDN TLD offered, invalid inputs not offered (desktop, Pixel 7)
  • test case 3: browser: user, e-mail and group invites, existing guest shares and space member search unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Nov 9, 2026
@AlexAndBear
AlexAndBear requested a review from kulmann November 9, 2026 22:14
@kulmann
kulmann merged commit 12c6c5a into main Nov 10, 2026
29 checks passed
@kulmann
kulmann deleted the fix/guest-address-normalize branch November 10, 2026 11:24
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Guests] Guest addresses aren't normalized like the server stores them

3 participants