#94 Adding dependencies to newly created artifact fails

version 1.50
open
nobody
Data entry (15)
5
2008-02-27
2008-02-27
No

Steps to reproduce:
1) create a new artifact (e.g. a requirement)
2) fill in data in "Requirement" tab
do *not* press "Apply" (this would close the dialog)
3) go to the "Dependencies" tab; right-click "New"
artifact selection dialog comes up
4) select some artifact; click "Ok"

Result: Error notification saying "No relationships to the top level allowed".

Exception:

java.lang.IllegalArgumentException: No relationships to the top level allowed
at com.osrmt.ejb.reqmanager.RequirementManagerBean.UpdateRequirementTree(RequirementManagerBean.java:411)
at com.osrmt.appclient.services.RequirementServices.UpdateRelationship(RequirementServices.java:290)
at com.osrmt.appclient.reqmanager.RelationshipList$2$1.actionExecuted(RelationshipList.java:140)
at com.osframework.appclient.ui.listeners.UIActionListener.actionPerformed(UIActionListener.java:30)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Possible workaround:
- After having filled in all data except dependencies, click "Apply" - this closes the artifact editing dialog.
- Re-open the dialog e.g. by double-clicking the newly created artifact in the list or tree.
- Now adding dependencies in the dependencies tab works.

This is inconvenient because it requires additional navigation and other GUI interaction.

Discussion

  • Logged In: YES
    user_id=2021186
    Originator: YES

    Note: Usability would be served if pressing "Apply" in Step 2 above would not close the artifact creation dialog. (OTOH, then an additional click would be required in case one would not want to add dependencies ...)