Bug 28505 - Use GLib for nameprep
Summary: Use GLib for nameprep
Status: NEW
Alias: None
Product: Wocky
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/wj...
Whiteboard: WIP, requires fixing GLib?
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 08:50 UTC by Will Thompson
Modified: 2010-06-15 06:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.