Project: Birt
Bug 113210 New report design has syntax error
Reported: 2005-10-20 06:03:15 | Status: closed fixed

Steps to reproduce: 1.Creat a new report 2.Add a sample database and dataset with table "ORDERS" 3.Drag the table into report 4.Close the report and reopen it Expected result: The report can be reopen Actual result: The report can't be reopened and the following errors shows up Error.DesignFileException.SYNTAX_ERROR - 15 errors found! Plug-in Provider:Eclipse.org Plug-in Name:BIRT Model Plug-in ID:org.eclipse.birt.report.model Version:1.0.1 Error Code:Error.DesignFileException.SYNTAX_ERROR Error Message:Error.DesignFileException.SYNTAX_ERROR - 15 errors found! 1.) ( line = 2186, tag = table) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Table is duplicate with that of report.Body[4].Columns[0]. ) 2.) ( line = 2199, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of report.Body[4].Header[0]. ) 3.) ( line = 2204, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of report.Body[4].Header[0].Cells[1]. ) 4.) ( line = 2209, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of report.Body[4].Detail[0]. ) 5.) ( line = 2214, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of report.Body[4].Detail[0].Cells[1]. ) 6.) ( line = 2219, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of report.Body[4].Footer[0]. ) 7.) ( line = 2224, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of report.Body[4].Footer[0].Cells[1]. ) 8.) ( line = 2229, tag = label) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Label is duplicate with that of Table.Columns[0]. ) 9.) ( line = 2238, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Columns[3]. ) 10.) ( line = 2243, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Columns[5]. ) 11.) ( line = 2248, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Header[0]. ) 12.) ( line = 2253, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Header[0].Cells[1]. ) 13.) ( line = 2258, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Header[0].Cells[3]. ) 14.) ( line = 2263, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Header[0].Cells[5]. ) 15.) ( line = 2268, tag = data) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.DUPLICATE_ELEMENT_ID, message : ID of the Data is duplicate with that of Table.Detail[0]. )

Files changed in fix:
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignElementHandle.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/StringUtil.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentRecord.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignSession.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/Module.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CellState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/GroupState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/LibraryState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ModuleParserHandler.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ReportElementState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/TableColumnState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/TableRowState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java