Issues with Personal Access Token generation in recent releases

Hello everyone,

While testing DHIS2 42.5, I discovered what appears to be a critical issue related to Personal Access Token generation.

Generating a new token from the User Profile → Personal Access Tokens page causes the DHIS2 instance to become non-functional after a 500 error. The issue persists even after restarting the application. I was also able to reproduce the same behavior on the official 42.5 play server:

I have created a JIRA ticket with reproduction steps and details at JIRA; however, I want to know if anyone has encountered a similar issue in versions other than 42.5?

Hi @malekpour

Thank you for reporting this! Yes, this appears to be a bug issue and I’m triaging it to the team. Good news, it appears the API is still accessible (as for the apps they seem to break because they can’t get the ‘user ID’). The fix might have to be at the DB level… let’s wait for the response. :grin:

Thanks!