[
https://issues.apache.org/jira/browse/VYSPER-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500867#comment-13500867
]
wan jian ming commented on VYSPER-333:
--------------------------------------
As I know, xmpp allowed one loginID login to the system from different devices.
then, let me describe problem more clearly. assume A is me, B is a friend of
mine. now I need my client to show the status of B correctly. let me talk in
two scenarios; (tested with vysper 0.7 and smack client)
1. no B is login, A logins first, then one B logins, its status shows correctly
on A, then another B login from another device. then B logout out one by one.
the client of A can show B offline.
from the package , i see two presence packages get after each other;
<presence xmlns="jabber:client"
from="[email protected]/3b8b646c999d4c88bfc0eb63aaae58d2"
to="[email protected]"><priority>10</priority></presence>
<presence xmlns="jabber:client"
from="[email protected]/58d68c4a768a44e9800f2dba4d1e238c"
to="[email protected]"><priority>10</priority></presence>
2. two logins of B are on line before A is on line. now A comes on line. on
the client of A, it shows the status of B correctly, but as B logout one by
one, the status on A can't be show correctly.
the presence package get in this scenario is :
<presence xmlns="jabber:client" from="[email protected]"
to="[email protected]/58d68c4a768a44e9800f2dba4d1e238c"></presence>
<presence xmlns="jabber:client" from="[email protected]"
to="[email protected]/58d68c4a768a44e9800f2dba4d1e238c"></presence>
As there is no resource in the JID, so the client can't distinction the two. so
can't show its status correctly, when B logout;
if you still think this is correct in vysper, then could you give some advice
on how to let the client show the status correctly.
> presence message should bring the resource information of one user;
> -------------------------------------------------------------------
>
> Key: VYSPER-333
> URL: https://issues.apache.org/jira/browse/VYSPER-333
> Project: VYSPER
> Issue Type: Bug
> Components: stanza routing
> Affects Versions: 0.7
> Environment: normal environment;
> Reporter: wan jian ming
>
> when one on logins, he/she will get the presence information from all of its
> rosters. but in the presence message there are no resource jid, so the client
> don't know exactly how many logins there.
> for example A has a friend B. but before A is login. there are two logins of
> B already. so when A got prenence message of B, it only get two B@*** ,
> without resource in the JID; so when B logout, the client of A can't show the
> status correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira