Bug 139343 [regression]Can not use __document to preview report document when deploy birt.
Summary: [regression]Can not use __document to preview report document when deploy birt. Steps to reproduce: 1. Deploy birt 2. Render a report document 3. Preview the report document by using __document Result: The design file C:\apps\jakarta-tomcat-5.5.7\webapps\birt060428\ has error and can not be run.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
*            the input options
	 * @return the report design name if the request contains a valid name,
	 *         otherwise null
	 */
	private String getReportDesignName( InputOptions options )
	{
		String reportDesignName = null;
		if ( options != null )
		{
			HttpServletRequest request = (HttpServletRequest) options
					.getOption( InputOptions.OPT_REQUEST );
			if ( request != null )
			{
				ViewerAttributeBean attrBean = (ViewerAttributeBean) request
						.getAttribute( "attributeBean" ); 
				assert attrBean != null;
				reportDesignName = attrBean.getReportDesignName( );
				if ( reportDesignName != null )
				{
					
					
					if ( reportDesignName.endsWith( "\\" ) || reportDesignName.endsWith( "/" ) )
						reportDesignName = null;
				}
			}
		}
		return reportDesignName;
	}
}