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

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

Open
G10h4ck opened this issue Jan 13, 2022 · 0 comments
Labels
bug Something isn't working elRepo.io

Comments

@G10h4ck
Copy link
Contributor

G10h4ck commented Jan 13, 2022

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.

@G10h4ck G10h4ck added bug Something isn't working elRepo.io labels Jan 13, 2022
csoler added a commit that referenced this issue Dec 26, 2024
Fixed Windows build with librnp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working elRepo.io
Projects
None yet
Development

No branches or pull requests

1 participant