Bug 28505

Summary: Use GLib for nameprep
Product: Wocky Reporter: Will Thompson <will>
Component: GeneralAssignee: Telepathy bugs list <telepathy-bugs>
Status: NEW --- QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/wjt/wocky.git;a=shortlog;h=refs/heads/domain-validation-glib
Whiteboard: WIP, requires fixing GLib?
i915 platform: i915 features:

Description Will Thompson 2010-06-11 08:50:40 UTC
Currently we reject JIDs with valid Unicode-y domains.

http://git.collabora.co.uk/?p=user/wjt/wocky.git;a=shortlog;h=refs/heads/domain-validation improves matters slightly, and adds a test.
Comment 1 Will Thompson 2010-06-11 08:51:06 UTC
(I'll backport the fix to Gabble 0.8, which has the same code.)
Comment 2 Will Thompson 2010-06-14 05:27:46 UTC
I merged the Wocky branch: http://git.collabora.co.uk/?p=wocky.git;a=commit;h=49a9539dc42da2ceb3266bee9e2a13bba51a6ae3

I tried replacing the incomplete validation and normalization with Glib's g_hostname_to_{unicode,ascii}, which claim to do nameprep, but they turned out to not reject blatantly invalid domains: http://git.collabora.co.uk/?p=user/wjt/wocky.git;a=commitdiff;h=domain-validation-glib
Comment 3 Simon McVittie 2010-06-15 06:48:07 UTC
Repurposing this bug for what's left.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.