Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.0, 6.1
-
6
-
Description
Steps to reproduce:
- create a project (Project1) and make User1 its project lead
- rename User1 to User2
- try to rename project key of Project1
Outcome:
The dialog reloads but nothing happens.
Expected outcome:
The project key should have been renamed.
Cause:
In DefaultProjectService.validateUpdateProject() we retrieve they key for the project lead:
final ErrorCollection validationErrors = validateUpdateProjectData(directoryUser, name, oldProjectResult.getProject(),
ApplicationUsers.getKeyFor(lead), url, assigneeType, avatarId);
However in DefaultProjectService.validateUpdateProjectData() we expect the lead name:
private ErrorCollection validateUpdateProjectData(User user, String name, Project oldProject, String leadName, String url, Long assigneeType, Long avatarId) { final ErrorCollection errorCollection = new SimpleErrorCollection(); final I18nHelper i18nHelper = getI18nBean(user); validateProjectNameForUpdate(name, oldProject.getKey(), errorCollection, i18nHelper); validateProjectLead(leadName, errorCollection, i18nHelper); validateProjectUrl(url, errorCollection, i18nHelper); validateProjectAssigneeType(assigneeType, errorCollection, i18nHelper); validateAvatarId(avatarId, oldProject, errorCollection, i18nHelper); return errorCollection; }
Workaround:
- Temporarily change the Project Lead role to an user that was never renamed (you may need to create a new user to perform this action, this user can be delete after editing the project);
- Edit the project key;
- Change the Project Lead role to the original user.
Attachments
Issue Links
- is duplicated by
-
JRASERVER-37282 Regression - Project Edit Is Broken If Project Lead Is A Renamed User
- Closed
-
JRASERVER-38222 Project Key Edit is broken if the Project Lead Is A Renamed User
- Closed
- was cloned as
-
JDEV-27255 Loading...