Bug 162841 [regression]Drill-through link to document containing parameters failed in html and pdf
Description: Drill-through link to document containing parameters failed in html and pdf Steps to reproduce: 1. New a report with a report parameter, don't set default value for it. 2. Preview in Web Viewer, input parameter value and save the report document to c:\ 3. New another report, insert a label, set a drill through link on the label, link to the report document. 4. Preview in web viewer, html and pdf, click the link. Expected result: Link to target report. Actual result: In html, a dialog popped up and said "a runtime error has occurred" In pdf, a dialog popped up and said that report parameter has null value. In frameset servlet, both formats are ok. I found that if I set default value for the report parameter in target report, the issue will disappear.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
this.isDesigner = ParameterAccessor.isDesigner( request );
		this.bookmark = ParameterAccessor.getBookmark( request );
		this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) );
		this.reportDocumentName = ParameterAccessor.getReportDocument( request );
		this.reportDesignName = ParameterAccessor.getReport( request );
		this.format = ParameterAccessor.getFormat( request );
		this.maxRows = ParameterAccessor.getMaxRows( request );
		BirtResources.setLocale( ParameterAccessor.getLocale( request ) );
		
		ReportEngineService.getInstance( ).setMaxRows( this.maxRows );
		
		processReport( request );
		
		String title = BirtResources
				.getMessage( ResourceConstants.BIRT_VIEWER_TITLE );
		this.reportTitle = ParameterAccessor.htmlEncode( title );
		this.__initParameters( request );
	}
	/*
	 * Prepare the report parameters
	 */
	protected void __initParameters( HttpServletRequest request )
			throws Exception
	{
		this.reportDesignHandle = getDesignHandle( request );
		if ( this.reportDesignHandle == null )
			return;
		InputOptions options = new InputOptions( );
		options.setOption( InputOptions.OPT_REQUEST, request );
		options.setOption( InputOptions.OPT_LOCALE, locale );