stable

Clone or download

Read-only

request #13700 An error 500 is not caught when a field type is not recognized.

This patch alows to ignore unknow type and continue XML import. A feedback is displayed to prevent user about ignored fields. Change-Id: I328f8bffec3bdbd278d6590d0c9213264e105e51

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Semantic/SemanticDoneFactory.php +4 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Semantic/Semantic_InitialEffortFactory.class.php +4 −2 Go to diff View file
M plugins/cardwall/include/Semantic/CardFieldXmlExtractor.php +6 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php +19 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container.class.php +11 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Date.class.php +6 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php +4 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_ReportFactory.class.php +6 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_CriteriaFactory.class.php +11 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_RendererFactory.class.php +11 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/Rule/Tracker_RuleFactory.class.php +6 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/IBuildSemanticFromXML.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeFromXMLBuilder.php +9 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_ContributorFactory.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_DescriptionFactory.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_StatusFactory.class.php +7 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_TitleFactory.class.php +6 −2 Go to diff View file
M plugins/tracker/include/Tracker/Tooltip/Tracker_TooltipFactory.class.php +4 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +1 −1 Go to diff View file
A plugins/tracker/include/Tracker/XML/TrackerXmlImportFeedbackCollector.php +61 −0 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +46 −8 Go to diff View file
M plugins/tracker/include/Workflow/TransitionFactory.class.php +6 −2 Go to diff View file
M plugins/tracker/include/Workflow/WorkflowFactory.class.php +6 −1 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/TrackerFormElementFactoryTest.php +152 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Tracker_FormElement_Container_FieldsetTest.php +59 −3 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +6 −0 Go to diff View file
M plugins/tracker/tests/TrackerXmlImportTest.php +28 −7 Go to diff View file
M plugins/tracker/tests/Tracker_FormElementFactoryTest.php +2 −43 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_DateTest.php +15 −4 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ListTest.php +9 −6 Go to diff View file