LoadProfile appears to unlock profiles for which it has no password for? #522

Closed
opened 2023-07-21 12:44:51 +00:00 by decentral1se · 1 comment
  • ListProfiles returns no onion addresses
  • Call CreateProfile("foo", "bar") & CreateProfile("bar", "baz")
  • Call LoadProfiles("bar")
  • ListProfiles returns onion address for both foo & bar

Haven't got as far as making use of those returned profiles for peering in my code but wanted to raise this one as it seems strange to me. Here's the LoadProfiles source for reference: 3f1e2d7a14/app/app.go (L309)

- `ListProfiles` returns no onion addresses - Call `CreateProfile("foo", "bar")` & `CreateProfile("bar", "baz")` - Call `LoadProfiles("bar")` - `ListProfiles` returns onion address for both `foo` & `bar` Haven't got as far as making use of those returned profiles for peering in my code but wanted to raise this one as it seems strange to me. Here's the `LoadProfiles` source for reference: https://git.openprivacy.ca/cwtch.im/cwtch/src/commit/3f1e2d7a145088b4d38f93c57475b933cba867f7/app/app.go#L309
Owner

CreateProfile also loads the profile when invoked (via 3f1e2d7a14/app/app.go (L207)) - CreateAndLoadProfile might be a better name...

On every subsequent run of Cwtch, LoadProfiles("bar") will only return foo.

`CreateProfile` also loads the profile when invoked (via https://git.openprivacy.ca/cwtch.im/cwtch/src/commit/3f1e2d7a145088b4d38f93c57475b933cba867f7/app/app.go#L207) - `CreateAndLoadProfile` might be a better name... On every subsequent run of Cwtch, `LoadProfiles("bar")` will only return `foo`.
sarah closed this issue 2024-02-12 20:21:25 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch#522
No description provided.