#7373·mumble

1.5 → 1.6 upgrade silently rejects previously-valid non-ASCII usernames/channel names (QRegExp → QRegularExpression semantics change)

Author: Jerry-FaGeCreated Sep 24, 2026Updated Sep 24, 2026
Labelsserverbug

Description

After upgrading Murmur from 1.5.735 to 1.6.870 with no configuration changes, connections using non-ASCII (e.g. CJK) usernames that were accepted for years are now rejected with Invalid username.

Root cause: the default username/channelname pattern [ -=\w\[\]\{\}\(\)\@\|\.]+ is unchanged, but the regex engine changed with the Qt6 switch (#6516):

  • 1.5: QRegExp::exactMatch interprets \w as QChar::isLetterOrNumber() | QChar::isMark() | '_' (Unicode-aware, Qt5 QRegExp documentation).
  • 1.6: QRegularExpression compiles the same pattern with PCRE2, where \w is ASCII-only unless QRegularExpression::UseUnicodePropertiesOption (→ PCRE2_UCP) is passed — which Murmur does not pass (convertToPcreOptions() only sets PCRE2_UCP when that pattern option is present).

I understand from #6368 that rejecting Unicode names by default on a fresh install is intentional (anti-homograph, cf. #2462). This report is specifically about the undocumented behavior change on upgrade: a 1.5 server that accepted these names silently locks those users out after upgrading, and this is not covered by the 1.6.870 release notes' migration section (which does cover the DB migration and the CLI argument changes).

Steps to reproduce

  1. Run Murmur 1.5.735 with default config
  2. Connect with username 鲁智深 → succeeds
  3. Upgrade server + database to 1.6.870, change nothing
  4. Connect with 鲁智深 → Rejected connection ...: Invalid username

Mumble version

1.6.870 (server); regression relative to 1.5.735

Mumble component

Server

OS

Linux

Reproducible?

Yes

Additional information

  • Also affects the registration and name-change paths (all validateUserName() call sites), so affected users cannot self-register or rename; only a server-side config change helps them.
  • channelname has the same default pattern and the same problem (creating non-ASCII channel names after upgrade).
  • Workaround that fixed it for us: set Unicode-explicit patterns, e.g. username=[ -=\p{L}\p{N}_\[\]\{\}\(\)\@\|\.]+ (applied via ICE setConf + persisted in murmur.ini). Suggest documenting this — or the guidance from #6368 — in the upgrade notes; the Murmur.ini wiki page does not mention Unicode behavior of these two options.
  • Possible fix directions:
    • (a) document the behavior change + the workaround in the migration notes,
    • (b) construct these two regexes with UseUnicodePropertiesOption to preserve 1.5 semantics, or
    • (c) warn admins when the effective validation behavior changes across an upgrade.
  • Related inconsistency (can be filed separately): the runtime setConf("username", ...) path does not wrap the pattern with QRegularExpression::anchoredPattern(), unlike the startup load path, so validation is full-match for startup-loaded config but substring-match for runtime-set config until the next restart.

Relevant log output

# 1.5.735, default config — same user accepted (session record, 2026-09-22):
鲁智深 | FPS | 上线: 20:13 | 在线: 2h53m | Windows 1.5.735

# 1.6.870 after upgrade, no config change (2026-09-24):
<W>2026-09-24 20:11:38.366 0 => <19:鲁智深(-1)> Rejected connection from <<c0950a426299d07b18393de3d024ec2522c11ee5:46513>>: Invalid username
<W>2026-09-24 20:11:40.374 0 => <20:鲁智深(-1)> Rejected connection from <<c0950a426299d07b18393de3d024ec2522c11ee5:46516>>: Invalid username

# version boundary:
<W>2026-09-23 01:03:12.505 Murmur 1.6.870 running on Linux: Ubuntu 24.04.4 LTS [x64]

Related to #6368 (fresh-install feature request); this report is about the upgrade path and documentation.