Issue Details (XML | Word | Printable)

Key: BCMS-58
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Savvas Triantafyllou
Reporter: Savvas Triantafyllou
Votes: 0
Watchers: 0
Operations

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

ContentObject system name is not allowed to contain digits when saving content object from BetaCMS web interface (betacms-webui)

Created: 27/Jun/09 08:54 AM   Updated: 27/Jun/09 09:07 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.0.CR1

Time Tracking:
Not Specified


 Description  « Hide
When saving a content object whose system name contains digits, BetaCMS web administration throws a validation error, as it permits only latin characters.
This is not consistent with betacms-model-types-1.2.xsd where systemName attribute can be any String.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 27/Jun/09 08:58 AM
Defined a new XS Simple Type 'systemNameType' which describes the pattern that a system name can follow. System name follows the pattern [A-Za-z0-9_\-]+
The reason for not allowing ANY character is that system name is used in URLs (as well as in other cases). This pattern guarantees that system name can be safely be used in URLs.

Savvas Triantafyllou added a comment - 27/Jun/09 08:59 AM
Changed betacms-repository in order to validate ContentObject system name according to the new pattern

Savvas Triantafyllou added a comment - 27/Jun/09 08:59 AM
Update code in betacms-webui to validate content object system name against the new pattern

Savvas Triantafyllou added a comment - 27/Jun/09 09:07 AM
Committed revisions

betacms-repository-api 3068
betacms-repository 3069 - 3070
betacms-reposiory-commons 3071
betacms-webui 3072 - 3073