Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 248214

Summary: The DB refactor code for the Portal doesn't check varchar lengths
Product: Community Reporter: Gabe O'Brien <gabe.obrien>
Component: Project Management & PortalAssignee: Portal Bugzilla Dummy Inbox <portal-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: karl.matthias
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Gabe O'Brien CLA 2008-09-22 18:50:03 EDT
Currently when you refactor a database the values for a length of the varchar field are not checked.  The code seems to verify that the varchar length is a decimal, but make no attempt to compare the length in the database to the length specified in the current schema.  This can lead to some serious data loss with data being truncated.
Comment 1 Karl Matthias CLA 2008-10-24 18:06:02 EDT
This is fixed in the new refactoring engine, but that engine is not yet part of the Portal.
Comment 2 Karl Matthias CLA 2008-10-31 18:30:43 EDT

*** This bug has been marked as a duplicate of bug 217787 ***
Comment 3 Karl Matthias CLA 2008-11-06 14:11:53 EST
Released or closed for STAGING_279.  Please see final comments for actual resolution status.  This message does not imply that any action was taken that was not already described.