Skip to content

Conversation

@Akanksha-kedia
Copy link
Contributor

@Akanksha-kedia Akanksha-kedia commented Jun 25, 2025

Description

  • Mina-core (org.apache.mina:mina-core):2.2.3

    • Not directly referenced in the code
    • transitive dependency through org.apache.directory.api:api-all
    • No direct evidence of usage

Screenshot 2025-06-25 at 9 17 37 PM
even on excluding from org.apache.directory.api:api-all and adding explicit

    <dependency>
        <groupId>org.apache.mina</groupId>
        <artifactId>mina-core</artifactId>
        <version>2.2.4</version>
    </dependency> 
    [ERROR] Unused declared dependencies found:

[ERROR] org.apache.mina:mina-core:jar:2.2.4:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:31 min
[INFO] Finished at: 2025-06-25T16:58:59+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.8.1:analyze-only (default) on project gateway-ha: Dependency problems found -> [Help 1]
[ERROR] and also checked all the classes no import or this dependency is being used.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required, with the following suggested text:

* Fix some things.

@cla-bot cla-bot bot added the cla-signed label Jun 25, 2025
@Akanksha-kedia
Copy link
Contributor Author

@mosabua please review

@Akanksha-kedia
Copy link
Contributor Author

@mosabua
Copy link
Member

mosabua commented Jun 25, 2025

Please separate the changes into different commits.

@mosabua mosabua changed the title Vulnerability for postgresql, mina-core, test-containers Update dependencies Jun 25, 2025
@Akanksha-kedia
Copy link
Contributor Author

Screenshot 2025-06-25 at 4 32 32 PM

@mosabua
Copy link
Member

mosabua commented Jun 25, 2025

How do you know this transitive dependency is not required ? Also please reword and update the rest of this PR.

@Akanksha-kedia
Copy link
Contributor Author

yes i had added the dependency and --- dependency:3.8.1:analyze-only (default) @ gateway-ha ---
[ERROR] Unused declared dependencies found:
[ERROR] org.apache.mina:mina-core:jar:2.2.4:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:31 min
[INFO] Finished at: 2025-06-25T16:58:59+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.8.1:analyze-only (default) on project gateway-ha: Dependency problems found -> [Help 1]
[ERROR] and also checked all the classes no import or this dependency is being used.

@Akanksha-kedia Akanksha-kedia changed the title Update dependencies Update dependencies for mina-core Jun 25, 2025
@Akanksha-kedia
Copy link
Contributor Author

How do you know this transitive dependency is not required ? Also please reword and update the rest of this PR.

@mosabuai have done rewording and also explained why i suspect its not being used or else we would have got classnotfounderror or something around that.

@ebyhr
Copy link
Member

ebyhr commented Jun 25, 2025

Vulnerability for postgresql, mina-core, test-containers

Please change the commit title. It should be "Exclude mina-core from Apache Directory LDAP API library" or something.

@Akanksha-kedia Akanksha-kedia changed the title Update dependencies for mina-core Exclude mina-core from Apache Directory LDAP API library Jun 26, 2025
@Akanksha-kedia
Copy link
Contributor Author

@ebyhr please review

@Akanksha-kedia
Copy link
Contributor Author

@mosabua @ebyhr please review

@ebyhr
Copy link
Member

ebyhr commented Jul 2, 2025

https://github.com/apache/directory-ldap-api/blob/cf6a8fde3dea3034fa3f6a3c4a30e6031367ebb4/pom.xml#L81

This exclusion will be unnecessary once the new directory-ldap-api is released.

@mosabua
Copy link
Member

mosabua commented Jul 18, 2025

Given that the dependency is unused we can probably still merge this now .. wdyt @ebyhr ?

@Akanksha-kedia
Copy link
Contributor Author

@ebyhr

@Akanksha-kedia
Copy link
Contributor Author

any update on this @mosabua ?

Copy link
Member

@mosabua mosabua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Let go ahead with it.

@mosabua mosabua merged commit bbd0983 into trinodb:main Jul 24, 2025
3 checks passed
@github-actions github-actions bot added this to the 16 milestone Jul 24, 2025
@ebyhr
Copy link
Member

ebyhr commented Jul 25, 2025

Please file a GitHub issue so we can revert this change when upgrading directory-ldap-api to the new version.

@mosabua
Copy link
Member

mosabua commented Jul 25, 2025

Filed #735

@Akanksha-kedia
Copy link
Contributor Author

I ll raise a pr to revert the chnages once the new pr is merged

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

Development

Successfully merging this pull request may close these issues.

3 participants