Skip to content

/rsIdentity/{getOwnSignedIds, getIdDetails, deleteIdentity} inconsistent behaviour #1

@G10h4ck

Description

@G10h4ck

After creating a signed identity with /rsIdentity/createIdentity I decided to delete it with the following command

curl -u $API_TOKEN --data '{"id":"2fc932cf51e31d1ba6d9170313e7176c"}' $API_BASE_URL/rsIdentity/deleteIdentity | jq

Unexpectedly the command returned false and Error! GXS operation failed. was printed on the retroshare log.
If that wasn't enough, the identity continues to appear as own signed identity even after restarting retroshare-service!

$ curl -u $API_TOKEN $API_BASE_URL/rsIdentity/getOwnSignedIds | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    85  100    85    0     0    788      0 --:--:-- --:--:-- --:--:--   794
{
  "ids": [
    "2fc932cf51e31d1ba6d9170313e7176c"
  ],
  "retval": true
}

But requesting the identity details it miserably fails!

$ curl -u $API_TOKEN --data '{"id":"2fc932cf51e31d1ba6d9170313e7176c"}' $API_BASE_URL/rsIdentity/getIdDetails | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   780  100   739  100    41   7257    402 --:--:-- --:--:-- --:--:--  7722
{
  "details": {
    "mId": "00000000000000000000000000000000",
    "mNickname": "",
    "mFlags": 0,
    "mPgpId": "0000000000000000",
    "mReputation": {
      "mOwnOpinion": 1,
      "mFriendsPositiveVotes": 0,
      "mFriendsNegativeVotes": 0,
      "mFriendAverageScore": 1.0,
      "mOverallReputationLevel": 2
    },
    "mAvatar": {
      "mData": {
        "base64": ""
      }
    },
    "mPublishTS": {
      "xint64": 659726506357329664,
      "xstr64": "659726506357329664"
    },
    "mLastUsageTS": {
      "xint64": 0,
      "xstr64": "0"
    },
    "mUseCases": []
  },
  "retval": false
}

For now I will delete the GXS db, but that is not good solution I'll investigate deeper if i encounter this again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions