librelist archives

« back to archive

Rosters to_pending_in contacts

Rosters to_pending_in contacts

From:
Vinoth Rajendran
Date:
2015-07-14 @ 05:15
Hi Jcbrand,

I have to users "user1" and "user2". new1 gives contact request to user2
and user2 request to new 1.

Suddenly, user2 has user1 as friend but user1 has pending contact of user2.

Is this is bug or correct scenario?

After I logged out and login as user2. I got changed user 1 as friend.


Thanks,

Vinoth R

Re: [conversejs] Rosters to_pending_in contacts

From:
Jc Brand
Date:
2015-07-14 @ 08:51
On Tue, Jul 14, 2015 at 10:45:29AM +0530, Vinoth Rajendran wrote:
>    Hi Jcbrand,
> 
>    I have to users "user1" and "user2". new1 gives contact request to user2
>    and user2 request to new 1.
> 
>    Suddenly, user2 has user1 as friend but user1 has pending contact of
>    user2.
> 
>    Is this is bug or correct scenario?
> 
>    After I logged out and login as user2. I got changed user 1 as friend.

Hi Vinoth

Please proofread your emails before sending them off, otherwise they can be
difficult to understand.

For example, you switch from user1 to new1. I assume you meant user1 when 
you wrote new1?

Also, you say user2 has user1 as friend, but then later you say:

>    After I logged out and login as user2. I got changed user 1 as friend.

Which doesn't make sense to me if user user2 already had user1 as friend like
you noted earlier.

In any case, sounds to me like you have two users who had simultaneously 
sent friend
requests to one another, and then one user gets stuck in the pending state.

If that is the case, then it sounds like a subtle bug which should ideally be
replicated through a test and then fixed.

Regards
JC