Bug 176786 Issue when use ${env.working.folder} as context path.[0601]
Description: Issue when use ${env.working.folder} as context path Build number:2.2.0.v20070308 Steps to reproduce: 1. Add environment variable as below: env.working.folder(D:\temp\working_folder) env.document.folder (D:\temp\document_folder) env.image.folder(D:\temp\image_folder) 2. Deploy WebViewerExample folder in Tomcat5.5.7 2. Set context parameter as attached with form like ${env.working.folder}. 3. Start Server Expected result: Content inside WebViewerExample folder is untouched. Actual result: After server is started, refresh and check the WebViewerExample folder. Only webcontent and WEB-INF folders are left, other folders and two sample reports disappear. Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.axis.AxisFault;
import org.eclipse.birt.report.IBirtConstants;
import org.eclipse.birt.report.context.BaseAttributeBean;
import org.eclipse.birt.report.resource.BirtResources;
import org.eclipse.birt.report.resource.ResourceConstants;
/**
 * Utilites class for all types of URl related operatnios.
 * <p>
 */
public class ParameterAccessor
{
	
	/**
	 * URL parameter name that specifies the viewer id.
	 */
	public static final String PARAM_ID = "__id"; 
	/**
	 * URL parameter name that specifies the report title.
	 */
	public static final String PARAM_TITLE = "__title"; 
	/**
	 * URL parameter name that specifies whether show the report title.
	 */
	public static final String PARAM_SHOW_TITLE = "__showtitle"; 
	/**