[RTFACT-14812] adminToken is not re-generated during config descriptor bootsrap Created: 17/Aug/17  Updated: 02/Feb/18  Resolved: 22/Aug/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Access Server, Config Manager
Affects Version/s: 5.4.6, 5.8.3
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Avi Zaig (Inactive) Assignee: Unassigned
Resolution: Deferred Votes: 0
Labels: None


 Description   

There are some situations where you require to regenerate the adminToken stored in Artifactory for the Access server.
In order for the re-creation to take place, need to remove the tag <adminToken>
if you have this

 <accessClientSettings>
<adminToken>avixxxxxxxxx
</adminToken>
<userTokenMaxExpiresInMinutes>60</userTokenMaxExpiresInMinutes>
</accessClientSettings>

in the config descriptor
the following editing

 <accessClientSettings>
<adminToken>
</adminToken>
<userTokenMaxExpiresInMinutes>60</userTokenMaxExpiresInMinutes>
</accessClientSettings>

will not work to regenerate the token
On the other hand, this will work

<accessClientSettings>
<userTokenMaxExpiresInMinutes>60</userTokenMaxExpiresInMinutes>
</accessClientSettings>

and the token will be re-generated



 Comments   
Comment by Dror Bereznitsky [ 22/Aug/17 ]

This is the expected behavior of the config descriptor. It will not accept an empty tag,

Generated at Wed Aug 12 01:51:32 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.