Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@afranken
Copy link
Member

Description

Fix order of ListObjectVersions

Related Issue

Fixes #2412

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken self-assigned this May 27, 2025
@afranken afranken added the bug label May 27, 2025
@afranken afranken requested a review from Copilot May 27, 2025 14:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the ordering of versions returned by listVersions, updates related integration tests, and increments the project’s version to 4.4.0-SNAPSHOT across POMs and the changelog.

  • Reverse the iteration order in BucketService.listVersions so that the newest versions appear first.
  • Update ListObjectVersionsIT to assert the new ordering.
  • Bump all module versions to 4.4.0-SNAPSHOT and update the CHANGELOG (introduce 4.5.0 planned, finalize 4.4.0).

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
testsupport/testng/pom.xml Bump parent version to 4.4.0-SNAPSHOT
testsupport/testcontainers/pom.xml Bump parent version to 4.4.0-SNAPSHOT
testsupport/pom.xml Bump parent version to 4.4.0-SNAPSHOT
testsupport/junit5/pom.xml Bump parent version to 4.4.0-SNAPSHOT
testsupport/junit4/pom.xml Bump parent version to 4.4.0-SNAPSHOT
testsupport/common/pom.xml Bump parent version to 4.4.0-SNAPSHOT
server/src/main/java/com/adobe/testing/s3mock/service/BucketService.java Reverse the list of object versions before iterating
server/src/main/java/com/adobe/testing/s3mock/S3MockApplication.java Remove obsolete Spring Security exclusion and update copyright
server/pom.xml Bump parent version to 4.4.0-SNAPSHOT
pom.xml Bump version to 4.4.0-SNAPSHOT; add dependency plugin management
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/ListObjectVersionsIT.kt Update and add assertions for correct version ordering
integration-tests/pom.xml Bump parent version to 4.4.0-SNAPSHOT
docker/pom.xml Remove explicit maven-dependency-plugin version (inherited)
build-config/pom.xml Bump parent version to 4.4.0-SNAPSHOT
CHANGELOG.md Add 4.5.0 planned section and finalize 4.4.0 release notes
Comments suppressed due to low confidence (1)

server/src/main/java/com/adobe/testing/s3mock/service/BucketService.java:60

  • The import java.util.Comparator is no longer used after reversing the versions list; consider removing this unused import.
import java.util.Comparator;

@afranken afranken merged commit 9b6443a into main May 27, 2025
6 checks passed
@afranken afranken deleted the 2412-correct-order-for-listversions branch May 27, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ListObjectVersions returns list in order of creation, should be reversed

2 participants