[Bug 63955] New: HMEFContentsExtractor fails to extract content from winmail.dat

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63955] New: HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

            Bug ID: 63955
           Summary: HMEFContentsExtractor fails to extract content from
                    winmail.dat
           Product: POI
           Version: 4.1.1-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HMEF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

After upgrading poi-scratchpad to 4.1.1 I'm getting this exception trying
HMEFContentsExtractor.main:

Exception in thread "main" java.lang.IllegalArgumentException: Unknown type 72
/ 0x0048 - CLS ID GUID @ 16
        at
org.apache.poi.hmef.attribute.MAPIAttribute.getLength(MAPIAttribute.java:204)
        at
org.apache.poi.hmef.attribute.MAPIAttribute.create(MAPIAttribute.java:170)
        at
org.apache.poi.hmef.attribute.TNEFMAPIAttribute.<init>(TNEFMAPIAttribute.java:41)
        at
org.apache.poi.hmef.attribute.TNEFAttribute.create(TNEFAttribute.java:71)
        at org.apache.poi.hmef.HMEFMessage.processMessage(HMEFMessage.java:99)
        at org.apache.poi.hmef.HMEFMessage.process(HMEFMessage.java:81)
        at org.apache.poi.hmef.HMEFMessage.<init>(HMEFMessage.java:66)
        at
org.apache.poi.hmef.extractor.HMEFContentsExtractor.<init>(HMEFContentsExtractor.java:74)
        at
org.apache.poi.hmef.extractor.HMEFContentsExtractor.main(HMEFContentsExtractor.java:58)


This worked fine with v4.1.0.
OS: Ubuntu Linux 19.10
JAVA: 13.0.1

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #1 from PJ Fanning <[hidden email]> ---
thanks for the issue - could you provide a sample file as it helps us debug the
issue and will help us form a regression corpus?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #2 from Andreas Joseph Krogh <[hidden email]> ---
Created attachment 36894
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36894&action=edit
Unparseable winmail.dat

This doesn't parse using 4.1.1, but works fine using 4.1.0

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #3 from Dominik Stadler <[hidden email]> ---
Are you sure it worked with 4.1.0? I tried it quickly, but it also failed with
4.1.0 and there were no changes in the HMEF area which would cause such a
regression.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

Dominik Stadler <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #4 from Andreas Joseph Krogh <[hidden email]> ---
It is working in my project when downgrading, and it stops working when
upgrading again.

I'll try to make a separate maven-project for reproducing.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #5 from Andreas Joseph Krogh <[hidden email]> ---
It is working in my project when downgrading, and it stops working when
upgrading again.

I'll try to make a separate maven-project for reproducing.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #6 from Andreas Joseph Krogh <[hidden email]> ---
Created attachment 36895
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36895&action=edit
screenshot of Run-configuration in IDEA

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #7 from Andreas Joseph Krogh <[hidden email]> ---
This project: https://github.com/andreak/tnefextractorfail
fails using the run-configuration in the attached screenshot.

Changing the poi-scratchpad version to 4.1.0 with this property

<version.apache-poi-scratchpad>4.1.0</version.apache-poi-scratchpad>

makes it work again.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #8 from Andreas Joseph Krogh <[hidden email]> ---
FWIW; jtnef parses it fine: https://www.freeutils.net/source/jtnef/

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #9 from Andreas Joseph Krogh <[hidden email]> ---
Are you able to reproduce this, ie. make it work with 4.1.0 and not 4.1.1?
Let me know if there's anything more I can do.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

Dominik Stadler <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #10 from Dominik Stadler <[hidden email]> ---
Thanks for the details, "git bisect" identifies the following commit as causing
this regression:

162f69655fc9146c94dfc4b4e101cbaf46255356 is the first bad commit
commit 162f69655fc9146c94dfc4b4e101cbaf46255356
Date:   Wed Apr 17 20:18:29 2019 +0000

    #github-143 - MAPIType.isFixedLength: not true in case of length > 8

See also r1857708

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #11 from Andreas Joseph Krogh <[hidden email]> ---
Glad you found it, looking forward to next release:-)

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

Andreas Beeker <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #12 from Andreas Beeker <[hidden email]> ---
Fixed via r1870692

May I use your example winmail.dat in our corpus or can you provide an
anonymized one? (this would help to keep the extraction valid)

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63955] HMEFContentsExtractor fails to extract content from winmail.dat

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63955

--- Comment #13 from Andreas Joseph Krogh <[hidden email]> ---
Use it, it's fine.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]