Identity published twice... and chaos. :)

Hi,
we currently have a problem with Kevin who has published his identity twice.

We can see both identities on this node for instance: https://duniter.g1.1000i100.fr/wot/lookup/DprKM54nhPuUJsoShdN7sfU3iyobZuZii4rZQfZ5dxfP
Whereas on my node, the first one (timestamp 101924) is not present: http://me.jytou.fr:9007/wot/lookup/DprKM54nhPuUJsoShdN7sfU3iyobZuZii4rZQfZ5dxfP

Because of this, cesium has a lot of trouble when it is connected to a node with both identities.
I believe we just need to post a revocation document for the first identity (timestamp 101924) which has no certifications, but we’ll have to check the generated document to make sure it is targeting the correct identity.

For posterity here are the output of both sites:
1000i100:

{
  "partial": false,
  "results": [
    {
      "pubkey": "DprKM54nhPuUJsoShdN7sfU3iyobZuZii4rZQfZ5dxfP",
      "uids": [
        {
          "uid": "kevlarcade",
          "meta": {
            "timestamp": "101924-00000608B005DAE7693FF2B2E0E5F49FE2DB4FFFEDD017E4A0BEDFF47186AB1D"
          },
          "revoked": false,
          "revoked_on": null,
          "revocation_sig": null,
          "self": "smM0f1pb4tKP6I9TKNT6wd2Y6dM0Gf7zKQPBt0h3msZ+fYzlIZLDRCGPcF4ztztJk1zfYhr9f9Kzio/IHWnDBA==",
          "others": []
        },
        {
          "uid": "kevlarcade",
          "meta": {
            "timestamp": "101925-000005368B3A756F992FB68743D47D45D8081412322ADA2CD4CD9B8CB85442EA"
          },
          "revoked": false,
          "revoked_on": null,
          "revocation_sig": null,
          "self": "0h7MX/2mXvWFVIQ3sENo15xOQiC0nwlv3m2sOUoGAJ3UQFvNe7dfGzxHBdylIQ3Tjq9FhUb6qkLQqF1+O+ooDQ==",
          "others": [
            {
              "pubkey": "FEkbc4BfJukSWnCU6Hed6dgwwTuPFTVdgz5LpL4iHr9J",
              "meta": {
                "block_number": 104699,
                "block_hash": "000001708AEC4D94C6D91A8130547A413AB53397563D77A5E8C6109D575F8A48"
              },
              "uids": [
                "jytou"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "1nk9NsrClUl16oNsfivPc+YiTc1WKep0y4TLmtyAJAO2idEbsu4s9WDfQQfRAmh9ond9h7F07F/9f22zCc9JCw=="
            },
            {
              "pubkey": "AgAtLzpkYk4rUbtgA72Shv6q4ubvkMt7XPBLdeW9NWgj",
              "meta": {
                "block_number": 104703,
                "block_hash": "000000B8FC95D75E624663BC60C9629BCABC9E2C3328130EB679848A1BEBF8E6"
              },
              "uids": [
                "Editalib"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "H9iPLPMCozENaRM5LsRi475nZjaWtUKgqaPpRbRKuwmx6xg0fFb/soUhCnHSAXaMcV/0hEDNHnsa2CSFBcDmAA=="
            },
            {
              "pubkey": "4bD7J3uA5pH2N9Xqimspf2XxWN4ESM2Az2XBqtSeHvUZ",
              "meta": {
                "block_number": 105520,
                "block_hash": "000000F811C1866398E37BA4FBAD6774DB8F0F3A10297123F0077D72CAE75709"
              },
              "uids": [
                "fbuland"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "OkwDgBF/j4Fppw66Wip0BbCEbkTUL62czh8IfbYDCfq9GTZqSET3mGe1NKmApZPpQrbT0C47IHCJnJnzJ+1xAg=="
            },
            {
              "pubkey": "9Dh295g1rGdp44QK95JKgHBrtkQZJzgL21HS9HWw6QHA",
              "meta": {
                "block_number": 107950,
                "block_hash": "000000AAA1C1B274A125A7C6955B8359AB15C11C495C1C42D3DB94DBF5E03E59"
              },
              "uids": [
                "nomoretear"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "/RNscediv6xcbXn70gbBoCNgXWmXKgEaPnFj3MWwdJEp9HhReML53J4m8j3ewUEeu/ZKoUHmr+75FODqhdA8CQ=="
            }
          ]
        }
      ],
      "signed": []
    }
  ]
}

jytou:

{
  "partial": false,
  "results": [
    {
      "pubkey": "DprKM54nhPuUJsoShdN7sfU3iyobZuZii4rZQfZ5dxfP",
      "uids": [
        {
          "uid": "kevlarcade",
          "meta": {
            "timestamp": "101925-000005368B3A756F992FB68743D47D45D8081412322ADA2CD4CD9B8CB85442EA"
          },
          "revoked": false,
          "revoked_on": null,
          "revocation_sig": null,
          "self": "0h7MX/2mXvWFVIQ3sENo15xOQiC0nwlv3m2sOUoGAJ3UQFvNe7dfGzxHBdylIQ3Tjq9FhUb6qkLQqF1+O+ooDQ==",
          "others": [
            {
              "pubkey": "FEkbc4BfJukSWnCU6Hed6dgwwTuPFTVdgz5LpL4iHr9J",
              "meta": {
                "block_number": 104699,
                "block_hash": "000001708AEC4D94C6D91A8130547A413AB53397563D77A5E8C6109D575F8A48"
              },
              "uids": [
                "jytou"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "1nk9NsrClUl16oNsfivPc+YiTc1WKep0y4TLmtyAJAO2idEbsu4s9WDfQQfRAmh9ond9h7F07F/9f22zCc9JCw=="
            },
            {
              "pubkey": "AgAtLzpkYk4rUbtgA72Shv6q4ubvkMt7XPBLdeW9NWgj",
              "meta": {
                "block_number": 104703,
                "block_hash": "000000B8FC95D75E624663BC60C9629BCABC9E2C3328130EB679848A1BEBF8E6"
              },
              "uids": [
                "Editalib"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "H9iPLPMCozENaRM5LsRi475nZjaWtUKgqaPpRbRKuwmx6xg0fFb/soUhCnHSAXaMcV/0hEDNHnsa2CSFBcDmAA=="
            },
            {
              "pubkey": "4bD7J3uA5pH2N9Xqimspf2XxWN4ESM2Az2XBqtSeHvUZ",
              "meta": {
                "block_number": 105520,
                "block_hash": "000000F811C1866398E37BA4FBAD6774DB8F0F3A10297123F0077D72CAE75709"
              },
              "uids": [
                "fbuland"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "OkwDgBF/j4Fppw66Wip0BbCEbkTUL62czh8IfbYDCfq9GTZqSET3mGe1NKmApZPpQrbT0C47IHCJnJnzJ+1xAg=="
            },
            {
              "pubkey": "9Dh295g1rGdp44QK95JKgHBrtkQZJzgL21HS9HWw6QHA",
              "meta": {
                "block_number": 107950,
                "block_hash": "000000AAA1C1B274A125A7C6955B8359AB15C11C495C1C42D3DB94DBF5E03E59"
              },
              "uids": [
                "nomoretear"
              ],
              "isMember": true,
              "wasMember": true,
              "signature": "/RNscediv6xcbXn70gbBoCNgXWmXKgEaPnFj3MWwdJEp9HhReML53J4m8j3ewUEeu/ZKoUHmr+75FODqhdA8CQ=="
            }
          ]
        }
      ],
      "signed": []
    }
  ]
}

And here is a screenshot of cesium when connected to 1000i100’s node (which has both identities):

The same page when connected to my node (which has only the second identities with certifications):


It is not clear to me why cesium thinks here that there was no membership request, though…

And sakia does see both identities:

Any thoughts on how we could make the user experience better? Cesium could at least warn that there are multiple identities published with the same id/key so that the user can become aware that there is a problem (and how to solve it).

1 J'aime

Je relance… des idées @cgeek @kimamila ?

Je laisse kimamila répondre, ce problème concerne spécifiquement Cesium il me semble.

1 J'aime

Je ne vois pas “kevlarcade” sur mon noeud non plus. Je ne regarde pas dans Cesium, mais directement dans la base de données locale. Je ne suis pas sûr que Cesium soit concerné.

Je vois ici, le log suivant (dans la console Javascript) :

[wot] Found 2 identities. Will selected the best one

Si je mets un point d’arrêt sur la ligne JS correspondante, je m’aperçois que plusieurs documents d’identitiés ont en effet été trouvé, et que Cesium prend le « meilleur » :

Le debuggeur nous permet de comprendre pourquoi :

  • l’une des identitiés à une demande d’adhésion (mais n’a pas de certification)
  • l’autre n’en a pas (mais à 5 certifications).

Pour modifier cela, il suffit :

  • Que la personne se connecte, puis dans « Mon compte » sélectionne la bonne identité : image
  • Elle pourra ensuite simplement envoyer le demande d’adhésion qui lui manque, comme le lui indique le messages suivant :

En revanche, si on consulte cette identité depuis l’annuaire, je suis d’accord qu’il manque une indication pour basculer vers l’autre identité. Tu nous fais un issue @jytou ?

3 J'aimes

Merci @kimamila,
Désolé du retard, mais l’issue est créée. Je vais voir avec Kevin pour le débloquer.