[Bug 30296] Add Conn.I.Addressing support to Gabble
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Nov 18 15:28:03 CET 2011
https://bugs.freedesktop.org/show_bug.cgi?id=30296
--- Comment #22 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2011-11-18 06:28:03 PST ---
(In reply to comment #21)
> > I can't help feeling that gabble_parse_xmpp_uri() should validate the node,
> > domain and resource individually
> Indeed. Let's open a bug for this. Want some comments in the code?
Yes please, with the bug number.
> + normalized_uri = proto.Addressing.NormalizeURI(
> + "xmpp:EITAN?@example.COM/resourc?e")
> +
> + assertEquals("xmpp:eitan%3F at example.com", normalized_uri)
I'm not really sure whether this should normalize to this, or to
"xmpp:eitan%3F at example.com/resourc%3Fe". Ignoring the resource is certainly
good enough for now, but the resource is sometimes significant (for chatroom
members, mainly).
It comes down to what we want "NormalizeURI" to mean, I think. Possibilities:
1) here is a contact, please discard unnecessary cruft and reduce it to the
minimal information necessary to identify this contact
(this should discard the resource, a query-string if any, etc.)
2) normalize this URI without changing its meaning
(this should not discard the resource or query-string)
I wonder whether the method should have been called NormalizeContactURI if what
we want is (1)?
Oh, another bug to be filed for later: normalizing verb-like URIs
(xmpp:smcv at example.com?message;body=Hello%20World) doesn't currently do
anything sensible. At a minimum, we should truncate at "?" (assuming
interpretation 1).
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the telepathy-bugs
mailing list