Bug 173223 Pages are lost when preview as PDF in web viewer[0002]
Pages are lost when preview as PDF in web viewer[0002] Build number: 2.2.0.v20070207-0941 Steps to reproduce: 1.open attached report design 2.preview in web viewer ,there are three pages,then click Print as PDF,there'll be only one page in PDF,but when you directly preview in PDF,there'll be three pages Expected result: 3 pages are displayed Actual result: only one page is displayed Error log: N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
public static String processWorkingFolder( ServletContext context,
			String path )
	{
		path = DataUtil.trimString( path );
		String realPath = null;
		
		if ( isRelativePath( path ) )
		{
			realPath = getRealPath( path, context );
			makeDir( realPath );
			return trimSep( path );
		}
		else
		{
			
			realPath = path;
		}
		
		makeDir( realPath );
		return trimSep( realPath );
	}
	/**
	 * Process folder settings with absolute path. If path is a relative path,
	 * first relative to context. If set canWrite to true, then check the folder
	 * if writable.If not, relative to ${java.io.tmpdir} folder.
	 * 
	 * @param context
	 * @param path
	 * @param defaultPath
	 * @param canWrite