Implement Registration Token Administrator API #43

Merged
jordan merged 26 commits from pull-37 into master 2023-11-10 14:30:54 +00:00
Owner

This pull request fully implements and documents all of the registration token administrator API endpoints.

NOTE: There is a memory leak when listing all of the registration tokens. Debug this before merging.
 
Closes Supersedes #37.

Closes #26.

This pull request is based off of #37, which addresses #26. This pull makes a number of improvements to the logic, organization, and behavior of the API endpoints.

This pull request fully implements and documents all of the registration token administrator API endpoints. **NOTE:** There is a memory leak when listing all of the registration tokens. Debug this before merging.   ~~Closes~~ Supersedes #37. Closes #26. This pull request is based off of #37, which addresses #26. This pull makes a number of improvements to the logic, organization, and behavior of the API endpoints.
jordan added the
bug
enhancement
labels 2023-11-08 18:49:59 +00:00
jordan added 24 commits 2023-11-08 18:49:59 +00:00
This reverts commit 9b3b62ff30.
It isn't every touched by anything other than UserDecodePrivileges() and UserEncodePrivileges().
This makes it accept keys with the same names as what is returned back to the caller,
allowing for a more consistent experience.
jordan reviewed 2023-11-08 18:57:38 +00:00
@ -0,0 +109,4 @@
RegTokenFree(info);
/* TODO: The JsonValue returned here gets leaked. */
ArrayAdd(tokensarray, JsonValueObject(jsoninfo));
Author
Owner

Here is where the leak is occurring. As you can see, I have added a TODO comment.

I have yet to figure out why this is happening, because it looks like it should work. If anyone wants to take a stab at it (@lda, would you?), you're more than welcome to.

Here is where the leak is occurring. As you can see, I have added a TODO comment. I have yet to figure out why this is happening, because it *looks* like it should work. If anyone wants to take a stab at it (@lda, would you?), you're more than welcome to.
jordan marked this conversation as resolved
jordan added this to the Telodendria v1.7.0-alpha4 project 2023-11-08 18:59:17 +00:00
jordan removed this from the Telodendria v1.7.0-alpha4 project 2023-11-08 19:03:06 +00:00
jordan added 1 commit 2023-11-08 19:40:16 +00:00
Author
Owner

Update: I think the leak is actually coming from a bug in j2s generated code.

**Update:** I think the leak is actually coming from a bug in `j2s` generated code.
Author
Owner

The leak is caused by Telodendria/Cytoplasm#17.

The leak is caused by Telodendria/Cytoplasm#17.
jordan added 1 commit 2023-11-10 14:28:57 +00:00
The leak is actually caused by an issue in `j2s`.

See Telodendria/Cytoplasm#17.
jordan changed title from WIP: Implement Registration Token Administrator API to Implement Registration Token Administrator API 2023-11-10 14:29:48 +00:00
jordan merged commit 2d30719be4 into master 2023-11-10 14:30:54 +00:00
jordan deleted branch pull-37 2023-11-10 14:30:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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: Telodendria/Telodendria#43
No description provided.