When used TIFF image from remote host (via http or ftp) only part of image readed from inputStream, and error check failed. From local filesystem all works fine. /org/apache/fop/image/TiffImage.java must be modifyed: Code: inputStream = this.m_href.openStream(); inputStream.skip(offset); bytes_read = inputStream.read(readBuf); if (bytes_read != length) { throw new FopImageException("Error while loading image " + this.m_href.toString() + " : " + this.getClass() + " - " + "length mismatch on read"); } this.m_bitmaps = readBuf; must be replaced with: ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { inputStream = this.m_href.openStream(); inputStream.skip(offset); while ( (bytes_read = inputStream.read(readBuf)) != -1) { baos.write(readBuf, 0, bytes_read); } } catch (java.io.IOException ex) { throw new FopImageException("Error while loading image " + this.m_href.toString() + " : " + ex.getClass() + " - " + ex.getMessage()); } this.m_bitmaps = baos.toByteArray(); bytes_read = m_bitmaps.length; if (bytes_read != length) { throw new FopImageException("Error while loading image " + this.m_href.toString() + " : " + this.getClass() + " - " + "length mismatch on read"); }
resetting P2 open bugs to P3 pending further review
source file no longer present in fop
batch transition resolved+wontfix to closed+wontfix
batch transition resolved+wontfix to closed+wontfix; if you believe this remains a bug and can demonstrate it with appropriate input FO file and output PDF file (as applicable), then you may reopen