Bug 146526 table of contents and bookmarks in target document cannot be selected if report and target document are stored at different disk
steps to reproduce: - create a document at disk D, and move it to disk C - create a report at disk D, and edit a drill through hyperlink - select table of contents and bookmarks in the document expected behavior: - table of contents and bookmarks can be selected actual behavior: - it simply didn't
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
File file = new File( filePath );
		
		
		file = file.getAbsoluteFile( );
		
		file = file.getParentFile( );
		if ( file == null )
			return null;
		try
		{
			return file.getCanonicalFile( ).toURL( );
		}
		catch ( MalformedURLException e )
		{
			assert false;
		}
		catch ( IOException e )
		{
		}
		return null;
	}
	/**
	 * Return the relative path for the given <code>resource</code> according
	 * to <code>base</code>. Only handle file system. Network protocols such
	 * as http, ftp, etc. are not supported. If such cases happens,
	 * <code>resource</code> is returned.
	 * <p>
	 * The <code>base</code> value should be directory ONLY and does NOT
	 * contain file name and the format can be:
	 * <ul>