Bug 145716 [deploy]WORKING_FOLDER_ACCESS_ONLY doesn't work for reports inside WebViewerExample folder
Description: WORKING_FOLDER_ACCESS_ONLY doesn't restrict report inside WebViewerExample folder Steps to reproduce: 1. Deploy birt 2. Set BIRT_VIEWER_WORKING_FOLDER to local folder using absolute path 3. Set WORKING_FOLDER_ACCESS_ONLY to true 4. Preview report inside WebViewerExample folder using relative path Expected result: Preview fails because the report isn't under working folder Actual result: Preview is ok
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
protected void __init( HttpServletRequest request ) throws Exception
	{
		if ( ParameterAccessor.isGetImageOperator( request ) )
		{
			return;
		}
		this.category = "BIRT"; 
		this.masterPageContent = ParameterAccessor
				.isMasterPageContent( request );
		this.isDesigner = ParameterAccessor.isDesigner( request );
		this.bookmark = ParameterAccessor.getBookmark( request );
		this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) );
		this.reportDocumentName = ParameterAccessor.getReportDocument( request );
		this.reportDesignName = ParameterAccessor.getReport( request );
		this.format = ParameterAccessor.getFormat( request );
		this.maxRows = ParameterAccessor.getMaxRows( request );
		
		ReportEngineService.getInstance( ).setMaxRows( this.maxRows );
		
		processReport( request );
		
		String title = null;
		if ( title == null || title.trim( ).length( ) <= 0 )
		{
			title = BirtResources
					.getString( ResourceConstants.BIRT_VIEWER_TITLE );
		}
		this.reportTitle = ParameterAccessor.htmlEncode( title );
		this.__initParameters( request );
	}