JIRA 4.4 - Unable to create new users.

Praveen Singh September 12, 2011

Hi,

In our current JIRA version 3.13 we were using JIRA NTLM plug-in for user management. Now we've setup a new JIRA 4.4 instance and modified the plug-in codebase to use class 'JiraSeraphAuthenticator' instead of DefaultAuthenticator. It is working fine for existing users.

However, for new users we are getting an exception:

2011-09-12 07:53:32,897 http-8092-1 ERROR anonymous 473x24x1 1ar9yl2 10.165.224.207 /secure/Dashboard.jspa [user.provider.crowd.EmbeddedCrowdCredentialsProvider] Error creating user : a485125 : com.atlassian.crowd.exception.InvalidCredentialException: You cannot have an empty password
> com.atlassian.crowd.exception.InvalidCredentialException: You cannot have an empty password
> at com.atlassian.crowd.directory.InternalDirectoryUtilsImpl.validateCredential(InternalDirectoryUtilsImpl.java:42)

The way plug-in is suppose to work is that as soon as a new user access the JIRA instance for the first time it should create an account in the database and randomly assign a password to it. Current plug-in setup for JIRA version 3.13 is using class "com.atlassian.core.util.RandomGenerator" which I believe is not available for version 4.4.

I'm also aware that we should be using class "com.atlassian.jira.user.util.UserManager" for User Management and not the old class "com.opensymphony.user.UserManager". However, it appears that the new class is an interface and we would like to know how to create a concrete class out of it.

We basically want to understand how to use dependency-injected Managers and Services

Any help or pointers will be greatly appreciated.

Thanks,

Praveen

1 answer

0 votes
John Chin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2012

Hi Praveen,

By some chance, please have a look on JIRA 4.x version Upgrade Consideration for reference.

Good luck.

John

Suggest an answer

Log in or Sign up to answer