otrv4 / pidgin-otrng

Fork of https://bugs.otr.im/plugins/pidgin-otr. This is a mirror of https://bugs.otr.im/otrv4/pidgin-otrng
GNU General Public License v2.0
16 stars 5 forks source link

Unable to start any offline conversation #77

Closed claucece closed 5 years ago

claucece commented 5 years ago

Right now, it is not possible to start an offline conversation. I always says:

Prekey Server: there are no prekey in storage for the requested recipient.

even if there are prekey ensembles. This might be due to the recent refactorings.

claucece commented 5 years ago

cc./ @giovaneliberato @olabini

olabini commented 5 years ago

I'll take a look at this tonight or tomorrow morning.

olabini commented 5 years ago

OK, so this is what I do with the latest code:

So we probably have two different problems here.

olabini commented 5 years ago

I'm tracking another problem in otrv4/libotr-ng#162 The prekey profile problem is that SOMETIMES the instance tag sent is wrong...

claucece commented 5 years ago

For me, it does not fail on publishing; but later it is not found.

olabini commented 5 years ago

Strange

olabini commented 5 years ago

Well, I can't investigate that until I know why the instance tag is sometimes wrong when publishing...

claucece commented 5 years ago

I'll try again with the newest changes. I've tried going to older changes but I can't as the refactorings have been all over the place at different times..

olabini commented 5 years ago

Ah ok, thanks.

claucece commented 5 years ago

Ok, so I managed to start and offline conversation by managing to publish things. Most of the times though, it is impossible to publish as the b proof is wrong.

claucece commented 5 years ago

Ok, so I actually cannot manage to start an offline conversation. The same Prekey Server: there are no prekey in storage for the requested recipient. appears.

olabini commented 5 years ago

So, it seems the instance tags sometimes go wrong in the prekey profile, because there seems to be a confusion between the two instances for alice and bob. Exactly how this happens isn't clear yet.

claucece commented 5 years ago

I'm unsure if this is the reason why the prekey ensembles are not found. Maybe that is the problem but this one seems bigger.

olabini commented 5 years ago

Would you mind trying again with all the latest stuff? I've fixed a few different things.

claucece commented 5 years ago

Still the same message.

olabini commented 5 years ago

OK, I'll see if I get it too

olabini commented 5 years ago

Yep, it happens for me too. I'll look into it.

olabini commented 5 years ago

OK, the reason why this happens is because we never actually receive a client profile to publish - so there are no complete ensembles.

olabini commented 5 years ago

OK, I've fixed this problem now - it was because of the thing around when publication of prekey profiles and client profiles should happen not working. I disabled it so that these will always publish for the moment.

Please try it out.

claucece commented 5 years ago

Working now, thanks @olabini