Issue Details (XML | Word | Printable)

Key: BCMS-46
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Savvas Triantafyllou
Reporter: Gregory Chomatas
Votes: 0
Watchers: 0
Operations

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

DO NOT SAVE content object properties (i.e do not create JRC properties in the store) when the value of a string content object property is the EMPTY STRING or CONTAINS ONLY SPACES

Created: 08/May/09 08:39 PM   Updated: 08/May/09 10:04 PM
Component/s: betacms-repository
Affects Version/s: 2.1.0.CR1
Fix Version/s: 2.1.0.CR1

Time Tracking:
Not Specified


 Description  « Hide
Currently if a string property contains spaces or is empty but not null, a jcr property is also created in the JCR repository. All the forms that are used to fill in data for content object instances return empty strings for all the fields that are not filled by the user. Especially in forms with no mandatory data many fields are empty and currently the store contains thousants of empty string properties.

We proposed NOT TO SAVE BLANK string (content object) properties. This means that if a string property value is either NULL (does not exist) or exists but has no character or it has only space characters then no property will be created in the JCR Reopsitory.

There is a concern about how this may affect the possibility of JOINS when JCR 2 make this possible. However this concern holds true for any other field type since integer or date fields with no value are not created in the jcr repository.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 08/May/09 10:04 PM
Committed revision 2689.

StringProperty is not store to JCR repository if its value is a blank string.

This is true for multi value StringProperty, i.e. if ALL values are blank strings then no JCR property is created to the repository