Bug 140976 assert condition off by one in ReportEngineService
The following assertion appears around line 516 in org.eclipse.birt.report.viewer\birt\WEB-INF\classes\org\eclipse\birt\report\services\ReportEngineService.java assert pageNumber > 0 && pageNumber < reportDocument.getPageCount( ); However, since page numbers start at 1 instead of 0, pageNumber could equal reportDocument.getPageCount(). So the assertion should be assert pageNumber > 0 && pageNumber <= reportDocument.getPageCount( );
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
level = Level.FINE;
		}
		else if ( "FINER".equalsIgnoreCase( logLevel ) ) 
		{
			level = Level.FINER;
		}
		else if ( "FINEST".equalsIgnoreCase( logLevel ) ) 
		{
			level = Level.FINEST;
		}
		else if ( "OFF".equalsIgnoreCase( logLevel ) ) 
		{
			level = Level.OFF;
		}
		config.setLogConfig( logDirectory, level );
		
		String scriptLibDir = servletConfig.getServletContext( )
				.getInitParameter( ParameterAccessor.INIT_PARAM_SCRIPTLIB_DIR );
		if ( scriptLibDir == null || scriptLibDir.trim( ).length( ) <= 0
				|| ParameterAccessor.isRelativePath( scriptLibDir ) )
		{
			scriptLibDir = servletConfig.getServletContext( ).getRealPath(
					"/scriptlib" ); 
		}
		ArrayList jarFileList = new ArrayList( );
		if ( scriptLibDir != null )
		{
			File dir = new File( scriptLibDir );
			getAllJarFiles( dir, jarFileList );
		}