The Wayback Machine - https://web.archive.org/web/20200714065700/https://github.com/vector-im/riot-web/issues/12950
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riot/Nightly spontaneously cancelled cross-user verification from Riot 1.5.14 #12950

Closed
ara4n opened this issue Mar 31, 2020 · 3 comments
Closed

Riot/Nightly spontaneously cancelled cross-user verification from Riot 1.5.14 #12950

ara4n opened this issue Mar 31, 2020 · 3 comments

Comments

@ara4n
Copy link
Member

@ara4n ara4n commented Mar 31, 2020

@matthew:arasphere.net on Riot 1.5.14 tried to verify @matthew:matrix.org on Nightly, and got cancelled. The verif never appeared as a toast on Nightly.

Screenshot 2020-03-31 at 14 03 08

The first event was:

{
  "content": {
    "body": "@matthew:arasphere.net is requesting to verify your key, but your client does not support in-chat key verification.  You will need to use legacy key verification to verify keys.",
    "from_device": "DKAZBAEEPK",
    "methods": [
      "m.sas.v1",
      "m.qr_code.show.v1",
      "m.reciprocate.v1"
    ],
    "msgtype": "m.key.verification.request",
    "to": "@matthew:matrix.org"
  },
  "event_id": "$15856596317WcHyY:arasphere.net",
  "origin_server_ts": 1585659631882,
  "sender": "@matthew:arasphere.net",
  "type": "m.room.message",
  "unsigned": {
    "age": 9138
  },
  "room_id": "!PcWroKvERfdTcjBJCK:matrix.org"
}
@ara4n ara4n added the bug label Mar 31, 2020
@ara4n ara4n changed the title Verification got spontaneously cancelled. Riot/Nightly spontaneously cancelled cross-user verification from Riot 1.5.14 Mar 31, 2020
@bwindels
Copy link
Member

@bwindels bwindels commented Mar 31, 2020 •

The client for @matthew:matrix.org (the receiver) seems to get confused about the .request event after changing the phase:

2020-03-31T13:00:41.164Z I Verification request $15856596317WcHyY:arasphere.net: m.key.verification.request event with id:$15856596317WcHyY:arasphere.net, content:{"body":"@matthew:arasphere.net is requesting to verify your key, but your client does not support in-chat key verification.  You will need to use legacy key verification to verify keys.","from_device":"DKAZBAEEPK","methods":["m.sas.v1","m.qr_code.show.v1","m.reciprocate.v1"],"msgtype":"m.key.verification.request","to":"@matthew:matrix.org"} deviceId:undefined, sender:@matthew:arasphere.net, isSentByUs:false, isLiveEvent:true, isRemoteEcho:false, phase:1=>2, observeOnly:false=>false
2020-03-31T13:00:41.165Z I Got sound default for !PcWroKvERfdTcjBJCK:matrix.org
2020-03-31T13:00:41.180Z W Cancelling, unexpected m.key.verification.request verification event from @matthew:arasphere.net
2020-03-31T13:00:41.181Z I sendEvent of type m.key.verification.cancel in !PcWroKvERfdTcjBJCK:matrix.org with txnId m1585659641181.220
@bwindels
Copy link
Member

@bwindels bwindels commented Mar 31, 2020

It looks like we're processing the same .request event twice for some reason ... perhaps a race with decrypting the event?

@bwindels
Copy link
Member

@bwindels bwindels commented Mar 31, 2020

Will have a further look after finishing the QR stuff.

@bwindels bwindels self-assigned this Mar 31, 2020
@bwindels bwindels added this to In Progress in Workflow Apr 1, 2020
@bwindels bwindels moved this from In Progress to In Review in Workflow Apr 1, 2020
Workflow automation moved this from In Review to In Test Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Workflow
In Test
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can��t perform that action at this time.