Bug 14063

Summary: apparent mangling of outgoing messages
Product: Telepathy Reporter: Robert McQueen <robert>
Component: hazeAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Robert McQueen 2008-01-13 17:53:39 UTC
01:45 < Robot101> resiak: uh
01:46 < Robot101> resiak: haze is mangling my outgoing messages, or at least, 
                  mangling how they appear to me
01:46 < Robot101> method call sender=:1.32 -> dest=:1.26 
path=/org/freedesktop/Telepathy/Connection/haze/msn/robot101_40passport_2ecom/ImChannel9; interface=org.freedesktop.Telepathy.Channel.Type.Text; member=Send 
                  uint32 0 string "www.foo.com ftp.bar.com"
01:46 < Robot101> signal sender=:1.26 -> dest=(null destination) 
path=/org/freedesktop/Telepathy/Connection/haze/msn/robot101_40passport_2ecom/ImChannel9; interface=org.freedesktop.Telepathy.Channel.Type.Text; member=Sent 
                  uint32 1200275114 uint32 0 string "www.foo.com ftp.bar.com 
                  (ftp://ftp.bar.com)"
01:46 < Robot101> the brackety thing's a bit weird isn't it?
01:46 < resiak> nnnrnghghnh libpurple
01:47 < resiak> this is a combination libpurple's "html"-to-plaintext function 
                and its htmlification of the message in the first place
01:47 < Robot101> it turns ftp.foo.com to <a 
                  href="ftp://ftp.foo.com">ftp.foo.com</a> to send
01:48 < Robot101> then when it turns that to text, ftp.foo.com != 
                  ftp://ftp.foo.com so it puts the link in brackets
01:48 < resiak> yep
01:48 < Robot101> because if I'd received <a href="badgers">snake</a>, showing 
                  me snake (badgers) is reasonable in plain text
01:48 < Robot101> shame its not idempotent
01:49 < resiak> the irritating thing is, MSN doesn't even support links with 
                text different to their URL
01:49 < resiak> so actually what's happening is:
01:49 < resiak>  * you ask for "foo.com ftp.bar.com" to be sent
01:49 < resiak>  * it is sent
01:49 < resiak>  * the prpl tells the core it's sent it
01:49 < resiak>  * the core HTMLifies it
01:49 < resiak>  * the core raises the sent signal
01:49 < resiak> * haze only has the HTMLified version, so has to call 
                purple_html_to_text (or whatever it's called)
01:50 < Robot101> haha
01:50 < Robot101> go team haze
01:50 < Robot101> er
01:50 < resiak> file a bug against me so i don't forget
01:50 < Robot101> purple
01:50 < Robot101> sent-actually?
01:50 < resiak> i have to do the sleeping thing
01:51 < resiak> yeah, or just fix up messages to be passed around libpurple as 
                (Either PlainText HTML) or some isomorphic datatype :)
Comment 1 GitLab Migration User 2019-12-03 20:04:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-haze/issues/7.

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.