Bug 173115 - Absence of some nodes in Context Container xml definition causes application failure
Summary: Absence of some nodes in Context Container xml definition causes application ...
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Corona (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Glenn Everitt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 12:21 EST by Pawel Kaczmarek CLA
Modified: 2010-04-08 11:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Kaczmarek CLA 2007-02-06 12:21:31 EST
If some nodes are absent in CC xml file, application fails (e.g. each RepositoryConfiguration node must have one RepositoryConnectionParameters child). The xsd definition of CC does not specify that some nodes are required, however application is not designed to handle such cases. In general, if a node does not exist, null is returned by the getter method. However, it is not checked later whether the returned value is null.
It seems that either xsd definition or container handling needs to be changed. Incorrect CC data can occur now as the functionality of CC modification is added to UI.
Comment 1 Pawel Kaczmarek CLA 2007-02-08 07:38:44 EST
A workaround was implemented. It prevents from defining incorrect CC from UI.
Additional xsd were created that are used only for validation purposes. If CC/PCC is modified in UI, the validation xsds are used to check if all required fields are present. The difference between the original and the validation xsds is that the later contain different minValues for some elements. If validation fails, modifications are not applied. No changes to generated code nor original xsds are required. The application will still fail if, for some reason (e.g. manual file modifications on server side), CC xml data is incorrect.
Comment 2 Dennis O'Flynn CLA 2008-02-08 09:24:51 EST
Closing all outstanding RESOLVED and VERIFIED items.
Comment 3 Eclipse Webmaster CLA 2009-08-30 02:48:39 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Comment 4 Eclipse Webmaster CLA 2010-04-08 11:13:09 EDT
Project is archived.