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

            Bug ID: 60021
           Summary: poi POM should include runtime dependency on poi-ooxml
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: [email protected]
          Reporter: [email protected]

In POI's EncryptionInfo, there is this reflection-based provider loading going
on:

    protected static EncryptionInfoBuilder getBuilder(EncryptionMode
encryptionMode) throws ClassNotFoundException, IllegalAccessException,
InstantiationException {
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        EncryptionInfoBuilder eib =
(EncryptionInfoBuilder)cl.loadClass(encryptionMode.builder).newInstance();
        return eib;
    }

This ends up trying to load a class called
org.apache.poi.poifs.crypt.agile.AgileEncryptionInfoBuilder and getting a
ClassNotFoundException.

This class is in the poi-ooxml jar, but this jar is *not* listed as a
dependency of poi, even as a runtime dependency, despite the fact that
EncryptionInfo cannot work without it. We're not using POI to support OOXML,
only for OLE2-based formats, so we should not have to depend on OOXML directly
ourselves either.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to