Fix checking Content-MD5 header #540

Closed
opened 2024-11-01 14:02:40 +00:00 by dkirillov · 0 comments
Member

Expected Behavior

Tests pass:

Current Behavior

Test fail

Possible Solution

  • Fix error code from InvalidDigest to BadDigest
  • Check empty Content-MD5

Steps to Reproduce (for bugs)

  1. Run tests

Context

Regression

Probably yes

Your Environment

  • Version used: v0.31.0-rc.4
<!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> Tests pass: * [test_object_create_bad_md5_bad](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_headers.py#L164) * [test_object_create_bad_md5_empty](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_headers.py#L171) ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> Test fail ## Possible Solution <!--- Not obligatory --> <!--- If no reason/fix/additions for the bug can be suggested, --> <!--- uncomment the following phrase: --> <!--- No fix can be suggested by a QA engineer. Further solutions shall be up to developers. --> * Fix error code from `InvalidDigest` to `BadDigest` * Check empty Content-MD5 ## Steps to Reproduce (for bugs) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. --> 1. Run tests ## Context <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Regression <!-- Is this issue a regression? (Yes / No) --> <!-- If Yes, optionally please include version or commit id or PR# that caused this regression, if you have these details. --> Probably yes ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used: v0.31.0-rc.4
dkirillov added the
bug
label 2024-11-01 14:02:40 +00:00
pogpp self-assigned this 2024-11-06 11:43:39 +00:00
alexvanin added this to the v0.31.0 milestone 2024-11-20 12:16:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#540
No description provided.