Skip to content

[Bug]: Binary LICENSE is missing entries for bundled jars (transaction-api, oro, ipaddress, ant, ivy) #4479

Open

Description

@pjfanning

What happened?

Several jars bundled in the binary convenience distributions are not listed in the binary LICENSE (LICENSE-binary in the source tree, shipped as LICENSE in the tarballs).

Found while reviewing the 0.9.0-incubating RC14 binaries (tag v0.9.0-rc14, commit 18d12b99d5297dbd0bb4eb72517c4855d75210f6). I checked every jar in lib/ of apache-amoro-0.9.0-incubating-bin-hadoop3.tar.gz against the LICENSE entries, including the wildcard entries such as org.apache.flink:flink-*. All of these jars are also in apache-amoro-0.9.0-incubating-bin-hadoop2.tar.gz, which ships the same LICENSE.

Jar in lib/ Coordinates Licence Notes
transaction-api-1.1.jar javax.transaction:transaction-api:1.1 CDDL-1.0 (see META-INF/LICENSE.txt in the jar) Category B, so it must be listed. LICENSE lists javax.transaction:jta / jta-1.1.jar under CDDL-1.0, but not this artifact. README-LICENSES should probably also give its source location, as it does for the other CDDL components.
oro-2.0.8.jar oro:oro:2.0.8 (Jakarta ORO) Apache Software License 1.1 (see META-INF/LICENSE in the jar) ASF code, but under the 1.1 licence, which has different terms (attribution and name-use clauses) from 2.0, so it needs its own entry and licence text or pointer.
ipaddress-5.5.1.jar com.github.seancfoley:ipaddress:5.5.1 Apache-2.0 Not ASF code; belongs in the Apache License 2.0 list.
ant-1.9.1.jar, ant-launcher-1.9.1.jar org.apache.ant:ant, org.apache.ant:ant-launcher Apache-2.0 Their NOTICE content is already in NOTICE; only the LICENSE entry is missing.
ivy-2.5.1.jar org.apache.ivy:ivy:2.5.1 Apache-2.0 Its NOTICE content is already in NOTICE; only the LICENSE entry is missing.
ant-1.6.5.jar (hadoop2 tarball only) ant:ant:1.6.5 Apache-2.0 As above.

Apart from these, the binary LICENSE and NOTICE look thorough.

Suggested fix

  • Add org.apache.ant:ant*, org.apache.ivy:ivy, com.github.seancfoley:ipaddress and ant:ant (Hadoop 2) to the "Apache License Version 2.0" section of LICENSE-binary.
  • Add javax.transaction:transaction-api to the "Common Development and Distribution License (CDDL) 1.0" section, pointing to META-INF/LICENSE.txt inside lib/transaction-api-1.1.jar and licenses/LICENSE.CDDL-1.0, and add its project/source location to README-LICENSES.
  • Add an "Apache Software License 1.1" section for oro:oro, pointing to META-INF/LICENSE inside lib/oro-2.0.8.jar (or adding the text under licenses-binary/).
  • Consider making the release tooling (tools/releasing/check_release_license_repairs.py / check_javadoc_fat_licenses.py, or a new check) fail when a jar in lib/ has no matching LICENSE entry, so new transitive dependencies are caught.

Other things found in the same review (minor)

  • The Stax2 section says lib/stax2-api-4.2.1.jar retains its licence. That jar is only in the Hadoop 2 tarball; in the Hadoop 3 tarball the org/codehaus/stax2 classes are repackaged inside lib/hadoop-client-runtime-3.4.3.jar. The entry should say "(Hadoop 2)" and mention the Hadoop 3 location.
  • licenses/LICENSE.jzlib, LICENSE.webbit, LICENSE.jsr166y, LICENSE.base64, LICENSE.icu4j and LICENSE.checker-framework-qualifiers ship in the binary, but neither LICENSE nor README-LICENSES mentions them, so it isn't clear which component each one covers.
  • The binary LICENSE lists the Bitnami chart templates (./charts/amoro/templates/common/*.tpl), but the binary tarballs don't contain charts/. That entry belongs in the source LICENSE instead (see [Bug]: Bitnami Helm chart helpers bundled in charts/ are not attributed in LICENSE #4476).

Affects Versions

0.9.0-incubating (RC14)

How to reproduce

tar xzf apache-amoro-0.9.0-incubating-bin-hadoop3.tar.gz && cd amoro-0.9.0-incubating
ls lib | grep -E '^(transaction-api|oro|ipaddress|ant|ant-launcher|ivy)-'
grep -n -E 'transaction-api|oro:oro|ipaddress|org\.apache\.ant|org\.apache\.ivy' LICENSE   # no output
unzip -p lib/transaction-api-1.1.jar META-INF/LICENSE.txt | head -1
unzip -p lib/oro-2.0.8.jar META-INF/LICENSE | head -3

Activity

  1. hutiefang76 commented on Nov 20, 2026

    @hutiefang76
    Contributor

    take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions