History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: BPM-196
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Wouter Zoons
Reporter: Leif Johansson
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
Bpm4Struts Cartridge

It is possible to create entities which violate multiplicity constraints using CRUD

Created: 12/May/05 11:58 PM   Updated: 13/May/05 01:39 PM
Component/s: CRUD
Affects Version/s: 3.0 Final
Fix Version/s: 3.0.1

File Attachments: None
Image Attachments:

1. 1.png
(53 kb)

2. 2.png
(53 kb)

3. 3.png
(61 kb)

4. 4.png
(61 kb)

5. 5.png
(67 kb)


 Description   
The way to reproduce: Create an entity which has at least one mandatory enumeration field or association and
at least one mandatory (i.e multiplicity > 0) regular field. Using an empty DB fill in the
select-box in the CRUD-form and leave all other fields blank. This should
cause a constraints-related exception to be thrown but the *first* time you try the
entity is created anyway! Furthermore it is impossible to remove the entity by using
'Copy' to 'load' the entity and then using 'Delete'. The next time you try this with
the same entity but with a different value in the select-box an exception is thrown but
not the one you'd expect.

I will attach screen-shots tomorrow.

 All   Comments   Change History      Sort Order:
Comment by Leif Johansson [13/May/05 09:15 AM]
Initial state - no entities of type Layer2Domain created yet.

Comment by Leif Johansson [13/May/05 09:16 AM]
Select a value for a select-box

Comment by Leif Johansson [13/May/05 09:17 AM]
After we hit 'Create'. Behold the aberrant entity.

Comment by Leif Johansson [13/May/05 09:18 AM]
And now we try this again (with a different value in the select-field). This time it doesn't work but the exception is not what I'd expect.