Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#49 empty message body in the validation error

None
pending-fixed
Gary McGath
None
5
2013-02-11
2013-02-06
Carol
No

While processing this PDF with JHOVE, http://www.fcla.edu/daitss-test/files/Zheng_Liping_200512_PHD.pdf. An error occurs with a status of "Well-Formed, but not valid"

<size>3649429</size>
<format>PDF</format>
<version>1.5</version>
<status>Well-Formed, but not valid</status>
<sigMatch>
<module>PDF-hul</module>
</sigMatch>
<messages>
<message offset="2098097" severity="error"></message>
<message offset="2098153" severity="error"></message>
</messages>

Shouldn't there be a message body indicating what is validation error?

Discussion

  • Gary McGath
    Gary McGath
    2013-02-06

    • status: open --> accepted
    • assigned_to: Gary McGath
    • milestone: -->
     
  • Gary McGath
    Gary McGath
    2013-02-06

    Carol,

    I can replicate that bug. I'll take a look at what's going on. -- Gary

     
  • Gary McGath
    Gary McGath
    2013-02-06

    I've checked in a new version of PdfModule.java that fixes the problem. addDestination was failing to check whether it could safely get a page object number, and throwing a NullPointerException when it couldn't. The handler was assuming there would be a message string in the exception. I've fixed it on both of these points. For now it can be built with the updated source code; it should be fixed in JHOVE 1.10, whenever that happens.

     
  • Gary McGath
    Gary McGath
    2013-02-06

    • status: accepted --> pending-fixed
     
  • Carol
    Carol
    2013-02-11

    Thanks Gary. I will work on the merge as soon as I have a chance.