Bug 154803 [regression]Cannot render document to user defined path through __document parameter
Description: Cannot render document to user defined path through __document parameter Steps to reproduce: 1. Preview a report in viewer 2. Modify url to add "__document=c:/tmp.rptdocument", this will generate report document to c disk with name "tmp.rptdocument" 3. Press enter. Expected result: Report displays correctly and the document is created. Actaul result: The document file : c:/tmp.rptdocument does not exist or contains errors.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
{
			init( request );
		}
		catch ( Exception e )
		{
			this.exception = e;
		}
	}
	/**
	 * Init the bean.
	 * 
	 * @param request
	 * @throws Exception
	 */
	protected void __init( HttpServletRequest request ) throws Exception
	{
		if ( ParameterAccessor.isGetImageOperator( request ) )
		{
			return;
		}
		this.category = "BIRT"; 
		this.masterPageContent = ParameterAccessor
				.isMasterPageContent( request );
		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 );