Bug 115938

Summary: Nearly every use of StringLenghtValidationListener is wrong on Oracle
Product: [Retired] Red Hat Web Application Framework Reporter: Daniel BerrangĂ© <berrange>
Component: uiAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Jon Orris <jorris>
Severity: medium Docs Contact:
Priority: medium    
Version: nightly   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-02 17:33:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2004-02-17 09:56:23 UTC
Description of problem:
The Bebop StringLengthValidationListener checks the length of a string
parameters in characters to ensure it does not exceed a specified
limit. Practically every single form in WAF is then used to create a
DomainObject in the DB. While on PostgreSQL VARCHAR fields are
measured in characters, on Oracle the default setting is to measure in
bytes. Thus if there is a VARCHAR(200) field and the user enters 200
Thai characters, this will likely come out at more like 600 bytes,
thus totally overflowing the data type in oracle.

We should either create a new DBStringLengthValidationListener that
measures using the size units of the current configured DB, or modify
existing StringLengthValidationListener. If the former, we will have
to additionally search & replace neearly every single occurrance of
StringLengthValidationListener.

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


How reproducible:


Steps to Reproduce:
1. Create a new CMS Item
2. Enter 200 characters of Thai
3. Save the form
  
Actual results:
Kaboom

Expected results:
Validation warning

Additional info:

See Vadim's posting:

http://post-office.corp.redhat.com/archives/ccm-engineering-list/2004-February/msg00036.html

Comment 1 Daniel Berrangé 2006-09-02 17:33:47 UTC
Closing old tickets