[sip-comm-dev] Receiving xml tags in Yahoo Messenger chat


#1

Hi,
I don't know if you noticed that, but it is impossible to receive xml
snippet in a yahoo messenger chat :

For example if you receive this

<aaa font="uu"> you'll see nothing.

The reason is of course that our Chatroom uses html to format text so
formatting tags and xml tags are mixed.
I wanted to fix that by escaping the < char.
But I think it cannot be replaced by &lt; otherwise we would loose all
format, colors ...
I think that the fix should be done in the yahoo messenger api, in
MessageDecoder class.
I did that fix locally and it seems to work fine, but how to add the
fix to sip-communicator since it is an external lib ?
In fact when I see the sourceforge project for ymsg9 it seems that
there is no more activity, how to fix that ?

Matthieu

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi,

for the yahoo messenger lib we use the old lib jYMSG (jymsg9 as you
stated) but with some modifications provided by us, like file
transfers, contact pictures, implementing yahoo new auth v16. And yes
its project on sourceforge seems dead.
In the meantime some of the features were transferred to openymsg
(https://sourceforge.net/apps/trac/openymsg), and some time ago Daniel
Henninger was so kind to host that forked lib in a branch in openymsg
(http://openymsg.svn.sourceforge.net/viewvc/openymsg/branches/jymsg/).

svn co https://openymsg.svn.sourceforge.net/svnroot/openymsg/branches/jymsg

Cheers
damencho

···

On Fri, Oct 1, 2010 at 4:59 PM, Matthieu Casanova <chocolat.mou@gmail.com> wrote:

Hi,
I don't know if you noticed that, but it is impossible to receive xml
snippet in a yahoo messenger chat :

For example if you receive this

<aaa font="uu"> you'll see nothing.

The reason is of course that our Chatroom uses html to format text so
formatting tags and xml tags are mixed.
I wanted to fix that by escaping the < char.
But I think it cannot be replaced by &lt; otherwise we would loose all
format, colors ...
I think that the fix should be done in the yahoo messenger api, in
MessageDecoder class.
I did that fix locally and it seems to work fine, but how to add the
fix to sip-communicator since it is an external lib ?
In fact when I see the sourceforge project for ymsg9 it seems that
there is no more activity, how to fix that ?

Matthieu

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi,
thank you for your answer.
I did a few changes in the Yahoo classes of sip communicator, but the
main change is in the yahoo library itself :
In MessageDecoder, I think that for all unhandled tags the "<" should
be replaced by a "&lt;"
that prevents the Swing component to try to interpret them as html components

I did a small patch (attached) but I don't know who can apply or review this one

Matthieu

html.patch (522 Bytes)

···

On Fri, Oct 1, 2010 at 4:19 PM, Damian Minkov <damencho@sip-communicator.org> wrote:

Hi,

for the yahoo messenger lib we use the old lib jYMSG (jymsg9 as you
stated) but with some modifications provided by us, like file
transfers, contact pictures, implementing yahoo new auth v16. And yes
its project on sourceforge seems dead.
In the meantime some of the features were transferred to openymsg
(https://sourceforge.net/apps/trac/openymsg), and some time ago Daniel
Henninger was so kind to host that forked lib in a branch in openymsg
(http://openymsg.svn.sourceforge.net/viewvc/openymsg/branches/jymsg/).

svn co https://openymsg.svn.sourceforge.net/svnroot/openymsg/branches/jymsg

Cheers
damencho

On Fri, Oct 1, 2010 at 4:59 PM, Matthieu Casanova > <chocolat.mou@gmail.com> wrote:

Hi,
I don't know if you noticed that, but it is impossible to receive xml
snippet in a yahoo messenger chat :

For example if you receive this

<aaa font="uu"> you'll see nothing.

The reason is of course that our Chatroom uses html to format text so
formatting tags and xml tags are mixed.
I wanted to fix that by escaping the < char.
But I think it cannot be replaced by &lt; otherwise we would loose all
format, colors ...
I think that the fix should be done in the yahoo messenger api, in
MessageDecoder class.
I did that fix locally and it seems to work fine, but how to add the
fix to sip-communicator since it is an external lib ?
In fact when I see the sourceforge project for ymsg9 it seems that
there is no more activity, how to fix that ?

Matthieu

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,

I took care of it, its committed in our repo(r7787) and in jymsg branch (r180).

Thanks
damencho

···

On Tue, Oct 5, 2010 at 4:14 PM, Matthieu Casanova <chocolat.mou@gmail.com> wrote:

Hi,
thank you for your answer.
I did a few changes in the Yahoo classes of sip communicator, but the
main change is in the yahoo library itself :
In MessageDecoder, I think that for all unhandled tags the "<" should
be replaced by a "&lt;"
that prevents the Swing component to try to interpret them as html components

I did a small patch (attached) but I don't know who can apply or review this one

Matthieu

On Fri, Oct 1, 2010 at 4:19 PM, Damian Minkov > <damencho@sip-communicator.org> wrote:

Hi,

for the yahoo messenger lib we use the old lib jYMSG (jymsg9 as you
stated) but with some modifications provided by us, like file
transfers, contact pictures, implementing yahoo new auth v16. And yes
its project on sourceforge seems dead.
In the meantime some of the features were transferred to openymsg
(https://sourceforge.net/apps/trac/openymsg), and some time ago Daniel
Henninger was so kind to host that forked lib in a branch in openymsg
(http://openymsg.svn.sourceforge.net/viewvc/openymsg/branches/jymsg/).

svn co https://openymsg.svn.sourceforge.net/svnroot/openymsg/branches/jymsg

Cheers
damencho

On Fri, Oct 1, 2010 at 4:59 PM, Matthieu Casanova >> <chocolat.mou@gmail.com> wrote:

Hi,
I don't know if you noticed that, but it is impossible to receive xml
snippet in a yahoo messenger chat :

For example if you receive this

<aaa font="uu"> you'll see nothing.

The reason is of course that our Chatroom uses html to format text so
formatting tags and xml tags are mixed.
I wanted to fix that by escaping the < char.
But I think it cannot be replaced by &lt; otherwise we would loose all
format, colors ...
I think that the fix should be done in the yahoo messenger api, in
MessageDecoder class.
I did that fix locally and it seems to work fine, but how to add the
fix to sip-communicator since it is an external lib ?
In fact when I see the sourceforge project for ymsg9 it seems that
there is no more activity, how to fix that ?

Matthieu

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net