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
protected Map getDisplayTexts( Map displayTexts, HttpServletRequest request )
	{
		if ( displayTexts == null )
			displayTexts = new HashMap( );
		Enumeration params = request.getParameterNames( );
		while ( params != null && params.hasMoreElements( ) )
		{
			String param = DataUtil.getString( params.nextElement( ) );
			String paramName = ParameterAccessor.isDisplayText( param );
			if ( paramName != null )
			{
				displayTexts.put( paramName, ParameterAccessor.getParameter(
						request, param ) );
			}
		}
		return displayTexts;
	}
	/**
	 * Gets the module option map from the request.
	 * 
	 * @param request
	 *            the request
	 * @return the module options
	 */
	protected Map getModuleOptions( HttpServletRequest request )
	{
		Map options = new HashMap( );
		options.put( IModuleOption.RESOURCE_FOLDER_KEY, ParameterAccessor
				.getResourceFolder( request ) );
		return options;