Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(routes): get blob upload session should include 'bytes=' in Range… #1341

Conversation

eusebiu-constantin-petu-dbk
Copy link
Collaborator

… header

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk force-pushed the conformance_fix branch 2 times, most recently from a8e3f0e to 07e48d6 Compare April 10, 2023 15:32
@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Merging #1341 (69a195c) into main (0586c62) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1341   +/-   ##
=======================================
  Coverage   90.52%   90.52%           
=======================================
  Files          98       98           
  Lines       21480    21480           
=======================================
  Hits        19445    19445           
  Misses       1521     1521           
  Partials      514      514           
Impacted Files Coverage Δ
pkg/api/routes.go 94.48% <100.00%> (ø)
pkg/compliance/v1_0_0/check.go 99.11% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@rchincha
Copy link
Contributor

rchincha commented Apr 12, 2023

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
doesn't look optional. So would just make this PR official.

  1. Can we also look at all Range responses and fix them pls.
  2. Also that we reject anything NOT byte ranges
  3. Can we add a docker push/pull test in our ci/cd pipeline
  4. Also a crictl pull

jdolitsky
jdolitsky previously approved these changes Apr 12, 2023
@andaaron
Copy link
Contributor

The range responses were modified as part of https://github.com/project-zot/zot/pull/596/files
And there was a previous discussion on the dist spec in opencontainers/distribution-spec#203

@jdolitsky
Copy link
Contributor

i think this can be closed, we just merged opencontainers/distribution-spec#401 with missing bytes prefix

@rchincha rchincha closed this Apr 24, 2023
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