Skip to content

Conversation

@shiroleeee
Copy link
Contributor

@shiroleeee shiroleeee commented Dec 7, 2025

…he object does not exist

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact:

Additional Notes


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

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 a critical logic error in the put_object method's If-None-Match error handling. The bug caused incorrect behavior when attempting to put an object that doesn't exist, as the boolean logic was inverted.

Key Changes:

  • Fixed boolean logic in error condition from OR (||) to AND (&&) operator at line 2822
  • This ensures errors are only returned when they are neither "object not found" nor "version not found" errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@loverustfs loverustfs merged commit 552e95e into rustfs:main Dec 8, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants