Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

fix boundary value bug when objTime ends in whole seconds (without sub-second) - #21419

#21419
Merged
harshavardhana merged 2 commits into
minio:masterminio/minio:masterfrom
supermp:masterCopy head branch name to clipboard
Jul 23, 2025
Merged

fix boundary value bug when objTime ends in whole seconds (without sub-second)#21419
harshavardhana merged 2 commits into
minio:masterminio/minio:masterfrom
supermp:masterCopy head branch name to clipboard

Conversation

@supermp

@supermp supermp commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.

Description

When objTime ends in whole seconds (without sub-second) and it is just 1 second after givenTime, ifModifiedSince() returns false instead of true

Motivation and Context

Fix a boundary value bug I encounter

How to test this PR?

Given these values:

  • Last-Modified :Wed, 25 Jun 2025 02:57:10 GMT
  • If-Modified-Since: Wed, 25 Jun 2025 02:57:09 GMT

Request should return 200, not 304

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

@supermp supermp closed this Jul 9, 2025
@supermp supermp changed the title fix boundary value bug when objTime ends in whole seconds (without su… fix boundary value bug when objTime ends in whole seconds (without sub-second) Jul 9, 2025
@supermp supermp reopened this Jul 9, 2025

@klauspost klauspost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@harshavardhana
harshavardhana merged commit 50fcf9b into minio:master Jul 23, 2025
21 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.