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
paramValue = paramValueObj.toString( );
		return paramValue;
	}
	/**
	 * get parsed parameters as string.
	 * 
	 * @param parameterList
	 *            Collection
	 * @param request
	 *            HttpServletRequest
	 * @param options
	 *            InputOptions
	 * 
	 * @return Map
	 */
	protected Map getParsedParametersAsString( Collection parameterList,
			HttpServletRequest request, InputOptions options )
			throws ReportServiceException
	{
		Map params = new HashMap( );
		if ( parameterList == null )
			return params;
		for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); )
		{
			ScalarParameterHandle parameter = null;
			Object parameterObj = iter.next( );
			if ( parameterObj instanceof ScalarParameterHandle )
			{
				parameter = (ScalarParameterHandle) parameterObj;
			}