Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 107854 - UDCTs: leaving required field blank causes an error
UDCTs: leaving required field blank causes an error
Product: Red Hat Enterprise CMS
Classification: Retired
Component: content types (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: ccm-bugs-list
Jon Orris
Depends On:
  Show dependency treegraph
Reported: 2003-10-23 16:00 EDT by Nuno Santos
Modified: 2013-09-12 18:08 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-05 13:41:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nuno Santos 2003-10-23 16:00:29 EDT
Description of problem:
When attempting to create a new item of an UDCT (for instance, based on
Article), leaving a required field blank will cause the following error on 6.0:

com.arsdigita.persistence.FlushException:  (root cause:
com.redhat.persistence.FlushException: Unable to send all events to database for
object [com.arsdigita.cms.contenttypes.NewType:{id=3066}] because these required
properties are null:
	at com.arsdigita.persistence.DataObjectImpl.save(DataObjectImpl.java:397)

On 5.2, the error is slightly different:

com.arsdigita.persistence.PersistenceException: Error executing SQL: 
insert into cms_contenttypes_newtype(NewType_id,
values (?,
Occurred while:
    Inserting information for [com.arsdigita.cms.contenttypes.NewType:{id=6025}]
(root cause: java.sql.SQLException: ORA-01400: cannot insert NULL into
	at com.arsdigita.persistence.DataStore.fireOperation(DataStore.java:342)
	at com.arsdigita.persistence.DataStore.fireEvent(DataStore.java(Compiled Code))
	at com.arsdigita.persistence.DataStore.fireEvent(DataStore.java:100)
	at com.arsdigita.persistence.DataStore.doInsert(DataStore.java:701)
	at com.arsdigita.persistence.GenericDataObject.doInsert(GenericDataObject.java:801)
	at com.arsdigita.persistence.GenericDataObject.save(GenericDataObject.java:332)
	at com.arsdigita.domain.DomainObject.save(DomainObject.java:314)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. create an UDCT based on Article, with a Text field that's required
(multiplicity: 1)
2. create an item of the UDCT created in step 1, leaving the required field blank

Actual Results:  Error (as described above)

Expected Results:  A message saying that the field is required
Comment 1 Jon Orris 2006-09-05 13:41:11 EDT
Closing old tickets

Note You need to log in before you can comment on or make changes to this bug.