On 05/13/2014 11:59 PM, Tilman Hausherr wrote:
> Am 08.05.2014 05:17, schrieb Orion Poplawski:
>> On 05/02/2014 10:26 AM, Andreas Lehmkuehler wrote:
>>> The Apache PDFBox community is pleased to announce the release of
>>> Apache PDFBox version 1.8.5. The release is available for download at:
>>>
>>>     http://pdfbox.apache.org/downloads.html
>> This release presents something of a challenge for the Fedora package.
>> First off I will need to disable access to
>> com.levigo.jbig2:levigo-jbig2-imageio and possibly
>> net.java.dev.jai-imageio:jai-imageio-core-standalone in pdfbox.
> 
> Sorry for the late answer, apache lost a few disks.
> https://blogs.apache.org/infra/entry/mail_outage
> 
> Why do you need to "disable access" ? These two jars are need for the
> tests. They are loaded remotely in the build because we can't distribute
> them.

Fedora builders cannot access anything remotely (security and
reproducibility concerns).

> 
>>   But then I get test failures:
>>
>> Tests run: 139, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.121
>> sec <<< FAILURE! - in org.apache.pdfbox.TestAll
>> testRenderImage(org.apache.pdfbox.util.TestImageIOUtils)  Time elapsed:
>> 1.238 sec  <<< FAILURE!
>> junit.framework.AssertionFailedError: X resolution doesn't match in
>> image file target/test-output/raw_image_demo.pdf-1.bmp expected:<120>
>> but was:<0>
>>          at junit.framework.Assert.fail(Assert.java:57)
>>          at junit.framework.Assert.failNotEquals(Assert.java:329)
>>          at junit.framework.Assert.assertEquals(Assert.java:78)
>>          at junit.framework.Assert.assertEquals(Assert.java:234)
>>          at junit.framework.TestCase.assertEquals(TestCase.java:401)
>>          at
>> org.apache.pdfbox.util.TestImageIOUtils.checkBmpResolution(TestImageIOUtils.java:352)
>>
>>          at
>> org.apache.pdfbox.util.TestImageIOUtils.checkResolution(TestImageIOUtils.java:300)
>>
>>          at
>> org.apache.pdfbox.util.TestImageIOUtils.doTestFile(TestImageIOUtils.java:135)
>>
>>          at
>> org.apache.pdfbox.util.TestImageIOUtils.testRenderImage(TestImageIOUtils.java:278)
>>
>>
>>
>> Results :
>>
>> Failed tests:
>>
>> TestImageIOUtils.testRenderImage:278->doTestFile:135->checkResolution:300->checkBmpResolution:352
>>
>> X resolution doesn't match in image file
>> target/test-output/raw_image_demo.pdf-1.bmp expected:<120> but was:<0>
> 
> This test is done in TestImageIOUtils.java, it writes a .BMP file and
> rereads it and checks if the resolution is there. It needs
> jai_imageio.jar to succeed because the default imageio doesn't work
> properly.
> 
> There are these 4 lines:
> 
>             // testing BMP
>             imageType = "bmp";
>             writeImage(document, imageType, outDir + file.getName() +
> "-", ImageType.RGB, dpi);
>             checkResolution(outDir + file.getName() + "-1." + imageType,
> (int) dpi);
> 
> remove the last one.
> 
> However if you disable access to the two jars, more tests in
> TestImageIOUtils will fail.
> 
> Tilman (who did these changes)
> 
> 
>>
>> I'd like to not have to disable all tests in the build.  Could there be
>> some way to completely disable this functionality?
>>
>> Thanks.
>>
>> - Orion
>>


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  [email protected]
Boulder, CO 80301              http://www.cora.nwra.com

Reply via email to