-
Notifications
You must be signed in to change notification settings - Fork 39
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
mediatypes: detect utf-8 encoded JSON manifest #113
base: master
Are you sure you want to change the base?
mediatypes: detect utf-8 encoded JSON manifest #113
Conversation
This is a bug in Satellite, as While I don't have problems landing this PR as a temporary fix, I would really like to first have a ticket to track on Satellite side to fix it (and some timebox to remove this hack). |
I filed a BZ ticket for this: https://bugzilla.redhat.com/show_bug.cgi?id=1749317 |
This is returned by the Satellite registry.
fbe80da
to
9d33035
Compare
I think I misunderstood your comment. Do I understand correctly now that the content-type is actually contradicting in itself? |
Yes. That said, I'm fine with either landing this band-aid or do #83 and relax the parser, as long Satellite gets fixed at some point. |
If getting a 404 response when calling 'has_manifest' then if the content-type returned for the json error body is 'application/json; charset=utf-8' then the call to 'evaluate_media_type' will fail because it does not expect charset=utf-8 to be valid here. see discussion in: camallo#113 This change follows the approach taken in other methods above which is to match on 'status' before continuing.
If getting a 404 response when calling 'has_manifest' then if the content-type returned for the json error body is 'application/json; charset=utf-8' then the call to 'evaluate_media_type' will fail because it does not expect charset=utf-8 to be valid here. see discussion in: camallo#113 This change follows the approach taken in other methods above which is to match on 'status' before continuing.
This is returned by the Satellite registry.