You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tom Field (Created) (JIRA)" <ji...@apache.org> on 2012/01/23 01:18:40 UTC

[jira] [Created] (PDFBOX-1212) NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
-----------------------------------------------------------------------------------------------

                 Key: PDFBOX-1212
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1212
             Project: PDFBox
          Issue Type: Bug
          Components: Parsing
    Affects Versions: 1.6.0
            Reporter: Tom Field
            Priority: Minor


NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

The attached pdf causes a null pointer in my environment possible security encryption issue?

java.io.IOException:
at org.apache.tika.parser.ParsingReader.read(ParsingReader.java:260)
...
Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@335ac93d
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
at org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:221)
... 1 more
Caused by: java.lang.NullPointerException
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)


Note I incorrectly logged this in TIKA as https://issues.apache.org/jira/browse/TIKA-848 so could that one be resolved when this one is? thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1212) NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

Posted by "Tom Field (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Field updated PDFBOX-1212:
------------------------------

    Attachment: customer_dispute_form.pdf
    
> NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> -----------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1212
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1212
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.6.0
>            Reporter: Tom Field
>            Priority: Minor
>         Attachments: customer_dispute_form.pdf
>
>
> NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> The attached pdf causes a null pointer in my environment possible security encryption issue?
> java.io.IOException:
> at org.apache.tika.parser.ParsingReader.read(ParsingReader.java:260)
> ...
> Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@335ac93d
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
> at org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:221)
> ... 1 more
> Caused by: java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> Note I incorrectly logged this in TIKA as https://issues.apache.org/jira/browse/TIKA-848 so could that one be resolved when this one is? thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (PDFBOX-1212) NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

Posted by "Timo Boehme (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Boehme closed PDFBOX-1212.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0

fixed in rev. 1234846; o.a.p.pdmodel.encryption.SecurityHandler scans for dictionaries which might be signature dictionaries because the strings of 'Content' field should not be changed; the problem arises if the dictionary traversal points to objects in object streams because these are not available at this point, thus we have to check for null values and stop traversal here;

Since (byte range) signature dictionaries with string valued Content field won't be in object streams, adding the traversal stop does not produce another problem.
                
> NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> -----------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1212
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1212
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.6.0
>            Reporter: Tom Field
>            Assignee: Timo Boehme
>            Priority: Minor
>             Fix For: 1.7.0
>
>         Attachments: customer_dispute_form.pdf
>
>
> NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> The attached pdf causes a null pointer in my environment possible security encryption issue?
> java.io.IOException:
> at org.apache.tika.parser.ParsingReader.read(ParsingReader.java:260)
> ...
> Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@335ac93d
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
> at org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:221)
> ... 1 more
> Caused by: java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> Note I incorrectly logged this in TIKA as https://issues.apache.org/jira/browse/TIKA-848 so could that one be resolved when this one is? thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PDFBOX-1212) NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)

Posted by "Timo Boehme (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Boehme reassigned PDFBOX-1212:
-----------------------------------

    Assignee: Timo Boehme
    
> NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> -----------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1212
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1212
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.6.0
>            Reporter: Tom Field
>            Assignee: Timo Boehme
>            Priority: Minor
>         Attachments: customer_dispute_form.pdf
>
>
> NullPointerException in SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> The attached pdf causes a null pointer in my environment possible security encryption issue?
> java.io.IOException:
> at org.apache.tika.parser.ParsingReader.read(ParsingReader.java:260)
> ...
> Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@335ac93d
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
> at org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:221)
> ... 1 more
> Caused by: java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.addDictionaryAndSubDictionary(SecurityHandler.java:185)
> Note I incorrectly logged this in TIKA as https://issues.apache.org/jira/browse/TIKA-848 so could that one be resolved when this one is? thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira