Details
-
Bug
-
Status: To Do
-
Low
-
Resolution: Unresolved
-
6.23.0, 6.32.0
-
None
-
None
-
1.5
Description
Summary
When user adding a new component in the Create/Edit issue screen, they are getting the following error message when database picker on the screen:
A component with the name xxx already exists in this project.
The new component is added but issue not created or edited successfully.
Steps to Reproduce
Provide a detailed step-by-step process to reproduce the problem.
- Create a new Database Picker by following the docs here
- Associate the DB picker to the project Create/Edit issue screen.
- Create a new issue.
- Adding a new component in the Create issue screen and hit "Create" button.
- First, we don't see any error and hit "Create" button again.
- You will get the "A component with the name xxx already exists in this project." error message on the screen and logs showing this:
2021-08-16 15:55:58,374+0800 http-nio-8080-exec-16 ERROR [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=3e197333-920a-4760-b8d2-96097205eadd, interpretedMsg=, cause=java.lang.IllegalArgumentException: Component name = 'DD' is not unique, stacktrace=java.lang.IllegalArgumentException: Component name = 'DD' is not unique at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.createIllegalArgumentExceptionForName(CachingProjectComponentStore.java:355) [classes/:?] at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.insert(CachingProjectComponentStore.java:296) [classes/:?] at com.atlassian.jira.bc.project.component.CachingProjectComponentStore.store(CachingProjectComponentStore.java:212) [classes/:?] at com.atlassian.jira.bc.project.component.DefaultProjectComponentManager.create(DefaultProjectComponentManager.java:107) [classes/:?] at com.atlassian.jira.issue.fields.ComponentsSystemField.updateIssue(ComponentsSystemField.java:516) [classes/:?] at com.atlassian.jira.web.action.issue.IssueCreationHelperBeanImpl.updateIssueFromFieldValuesHolder(IssueCreationHelperBeanImpl.java:145) [classes/:?]
- If you check the project component, the new component is added.
Expected Behaviour
- No error message showing up after adding a new component and able to create or edit issue.
- The database picker should not be the issue causing the error message when adding a new component. If it does, the error message should be more meaningful of why its happened.
Actual Behaviour
- There is an error message showing up after adding a new component via Create/Edit screen.
- The problem is due to the database picker is associate to the project create or edit issue screen.
Workaround
- Unmapped any database picker field from the create or edit issue screen.
- Retry again due to the component has been added after the first error message.
Additional Note
- A recording - Screen Recording 2021-08-16 at 3.45.49 PM.mov
- Tested in JIRA 8.16.1 and SR 6.23.0 / 6.32.0
Attachments
Issue Links
- mentioned in
-
Page Loading...