You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2020/02/10 18:02:57 UTC

[Bug 64132] New: Regression in handling UnknownEscherRecord when getting pictures in .doc files

https://bz.apache.org/bugzilla/show_bug.cgi?id=64132

            Bug ID: 64132
           Summary: Regression in handling UnknownEscherRecord when
                    getting pictures in .doc files
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
          Assignee: dev@poi.apache.org
          Reporter: tallison@apache.org
  Target Milestone: ---

Created attachment 36999
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36999&action=edit
Triggering file

In our recent regression tests, there were six files that had new exceptions
with the stacktrace below.

Not sure of best way to handle this...?

java.lang.ClassCastException: class org.apache.poi.ddf.UnknownEscherRecord
cannot be cast to class org.apache.poi.ddf.EscherBlipRecord
(org.apache.poi.ddf.UnknownEscherRecord and org.apache.poi.ddf.EscherBlipRecord
are in unnamed module of loader 'app')
        at
org.apache.poi.ddf.EscherBSERecord.fillFields(EscherBSERecord.java:100)
        at
org.apache.poi.hwpf.model.PICFAndOfficeArtData.<init>(PICFAndOfficeArtData.java:78)
        at org.apache.poi.hwpf.usermodel.Picture.<init>(Picture.java:112)
        at
org.apache.poi.hwpf.model.PicturesTable.extractPicture(PicturesTable.java:162)
        at
org.apache.poi.hwpf.model.PicturesTable.getAllPictures(PicturesTable.java:233)
        at
org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:654)
        at
org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:644)
        at
org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:173)
        at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:175)
        at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:131)
        at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
        at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
        at
org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64132] Regression in handling UnknownEscherRecord when getting pictures in .doc files

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64132

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Running "git bisect" identifies change r1873187 being related here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64132] Regression in handling UnknownEscherRecord when getting pictures in .doc files

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64132

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64132] Regression in handling UnknownEscherRecord when getting pictures in .doc files

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64132

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Fixed via r1885092, these documents should be parsed as before again now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64132] Regression in handling UnknownEscherRecord when getting pictures in .doc files

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64132
Bug 64132 depends on bug 64036, which changed state.

Bug 64036 Summary: Replace reflection calls in factories for Java 9+
https://bz.apache.org/bugzilla/show_bug.cgi?id=64036

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64132] Regression in handling UnknownEscherRecord when getting pictures in .doc files

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64132

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |64036


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=64036
[Bug 64036] Replace reflection calls in factories for Java 9+
-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org