History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-4048
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Nguyen Duc Long
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Authoriz/Unauthorize build agent API error

Created: 06/Dec/23 04:56 AM   Updated: 08/Jan/24 11:17 AM
Component/s: None
Affects Version/s: 13.0.44
Fix Version/s: 14.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
http://localhost:8810/rest/tokens/authorize?ip=&lt;ip address of build agent>&port=<port of build agent>
http://localhost:8810/rest/tokens/authorize?ip=&lt;ip address of build agent>&port=<port of build agent>

I use these APIs to Authorize, Unauthorize build agent. But it causes the agent to coexist in many different states.

Please change the above APIs so that the following tasks work together
/rest/tokens/unauthorize
TokenManager.instance.delete(token);
AgentManager.instance.removeBuildAgent(ip, port);

/rest/tokens/authorize
TokenManager.instance.save(token);
AgentManager.instance.removeUnauthorizedAgent(ip, port);

 All   Comments   Work Log   Change History      Sort Order:
Change by Robin Shen [24/Dec/23 12:42 AM]
Field Original Value New Value
Issue Type Improvement [ 4 ] Bug [ 1 ]

Change by Robin Shen [08/Jan/24 11:17 AM]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 14.0.0 [ 12298 ]
Resolution Fixed [ 1 ]