Bug 157592 Inheritance of Datasource broken
If I create a Report using a datasource of a library first everything seems to be ok. <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="classic" id="4" extends="dSourceAppName.classic"/> After I created a dataset it looks like <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="classic" id="4" extends="dSourceAppName.classic"> <property name="odaDriverClass">com.mysql.jdbc.Driver</property> <property name="odaURL">jdbc:mysql://localhost/classicmodels</property> <property name="odaUser">birt</property> <encrypted-property name="odaPassword">YmlydDAyODYy</encrypted-property> </oda-data-source> It also happens to a library! When I change the library (publish to resource folder) the new datasource isn't used.
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/ModelOdaAdapter.java
if ( sourceDesign != null )
		{
			String dataSourceName = sourceDesign.getName( );
			setHandle.getElement( )
					.setProperty(
							OdaDataSetHandle.DATA_SOURCE_PROP,
							PropertyValueValidationUtil.validateProperty(
									setHandle,
									OdaDataSetHandle.DATA_SOURCE_PROP,
									dataSourceName ) );
		}
		else
			setHandle.getElement( ).clearProperty(
					OdaDataSetHandle.DATA_SOURCE_PROP );
		
		setHandle.getElement( )
				.clearProperty( OdaDataSetHandle.PARAMETERS_PROP );
		List dataSetParams = new DataSetParameterAdapter( ).newROMSetParams(
				setDesign, setHandle, null, null );
		PropertyValueValidationUtil.validateProperty( setHandle,
				OdaDataSetHandle.PARAMETERS_PROP, dataSetParams );
		setHandle.getElement( ).setProperty( OdaDataSetHandle.PARAMETERS_PROP,
				dataSetParams );
		
		List resultRetColumns = new ResultSetsAdapter( ).newROMResultSets(
				setDesign, setHandle, null );
		List columns = new ArrayList( );
		List hints = new ArrayList( );
		ResultSetColumnInfo.updateResultSetColumnList( resultRetColumns,
				columns, hints );