Recommended update for apache-commons-cli

Announcement ID: SUSE-RU-2025:0745-1
Release Date: 2025-02-28T14:55:01Z
Rating: moderate
References:
Affected Products:
  • Development Tools Module 15-SP6
  • openSUSE Leap 15.6
  • SUSE Linux Enterprise Desktop 15 SP6
  • SUSE Linux Enterprise Real Time 15 SP6
  • SUSE Linux Enterprise Server 15 SP6
  • SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • SUSE Manager Server 4.3
  • SUSE Manager Server 4.3 Module

An update that can now be installed.

Description:

This update for apache-commons-cli fixes the following issues:

  • Update to 1.9.0:
  • New features:
    • Add OptionGroup.isSelected().
    • You can now extend HelpFormatter.Builder.
    • Add 'since' attribute to Option to track when an Option was introduced
  • Fixed bugs:
    • Fix Javadoc pathing
    • Updated properties documentation #285.
    • Deprecation not always reported #284.
    • Replace internal StringBuffer with StringBuilder.
  • Updates:
    • Bump org.apache.commons:commons-parent from 70 to 72
  • Update to 1.8.0:
  • Fix Javadoc pathing
  • Updated apache-commons-cli-build.xml to new version.
  • Update to 1.7:
  • New features:
    • Add and use a Converter interface and implementations without using BeanUtils
    • Add Maven property project.build.outputTimestamp for build reproducibility.
    • Add '-' as an option char and implemented extensive tests
    • Make adding OptionGroups and Options to existing Options easier
    • Added Supplier; defaults for getParsedOptionValue
    • Make Option.getKey() public
    • Add builder factory CommandLine#builder().
  • Fixes:
    • Inconsistent behavior in key/value pairs (Java property style). Util.stripLeadingAndTrailingQuotes(String).
    • Awkward behavior of Option.builder() for multiple optional args.
    • Properties from multiple arguments with value separator.
    • Fix for expected textual date values.
    • Option.Builder.option("") should throw IllegalArgumentException instead of ArrayIndexOutOfBoundsException.
    • Avoid NullPointerException in CommandLine.getOptionValues(Option|String).
  • Updates:
    • Bump commons-parent from 64 to 69
    • Update the tests to JUnit 5
    • Bump tests commons-io:commons-io from 2.16.0 to 2.16.1
  • Includes changes from version 1.6:
  • Fixes:
    • [StepSecurity] ci: Harden GitHub Actions
    • Inconsistent date format in changes report.
    • Fix NPE in CommandLine.resolveOption(String).
    • CommandLine.addOption(Option) should not allow a null Option.
    • CommandLine.addArgs(String) should not allow a null String.
    • Site docs: "Usage Scenarios" refers to deprecated methods.
    • NullPointerException thrown by CommandLineParser.parse().
    • StringIndexOutOfBoundsException thrown by CommandLineParser.parse().
  • Updates:
    • Fix SpotBugs Error: Medium: Method intentionally throws RuntimeException. [org.apache.commons.cli.Option] At Option.java:[lines 417-423] THROWS_METHOD_THROWS_RUNTIMEEXCEPTION
    • Fix SpotBugs Error: Medium: Method intentionally throws RuntimeException. [org.apache.commons.cli.Option] At Option.java:[lines 446-450] THROWS_METHOD_THROWS_RUNTIMEEXCEPTION
    • Fix SpotBugs Error: Medium: Method intentionally throws RuntimeException. [org.apache.commons.cli.Option] At Option.java:[lines 474-478] THROWS_METHOD_THROWS_RUNTIMEEXCEPTION
    • Use EMPTY_STRING_ARRAY constant.
    • Fix site links that are broken
    • Add github/codeql-action.
  • Use %patch -P N instead of deprecated %patchN.
  • Build with java source/target levels 8

Patch Instructions:

To install this SUSE update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:

  • openSUSE Leap 15.6
    zypper in -t patch openSUSE-SLE-15.6-2025-745=1
  • Development Tools Module 15-SP6
    zypper in -t patch SUSE-SLE-Module-Development-Tools-15-SP6-2025-745=1
  • SUSE Manager Server 4.3 Module
    zypper in -t patch SUSE-SLE-Module-SUSE-Manager-Server-4.3-2025-745=1

Package List:

  • openSUSE Leap 15.6 (noarch)
    • apache-commons-cli-1.9.0-150200.3.9.1
    • apache-commons-cli-javadoc-1.9.0-150200.3.9.1
  • Development Tools Module 15-SP6 (noarch)
    • apache-commons-cli-1.9.0-150200.3.9.1
  • SUSE Manager Server 4.3 Module (noarch)
    • apache-commons-cli-1.9.0-150200.3.9.1