support a standard api for parsing media types#376
Merged
Conversation
a3a878c to
d150f9f
Compare
digitalresistor
approved these changes
Sep 24, 2018
206b6c5 to
8e1cccb
Compare
Member
Author
|
This is ready for review. I can remove the specificity stuff from |
see the multitude of reasons in Pylons/pyramid#3326 the short answer is that they are fundamentally broken in that media ranges cannot properly match against any accept header with q=0 content
Member
Author
digitalresistor
added a commit
that referenced
this pull request
Oct 15, 2018
support a standard api for parsing media types
This was referenced Aug 14, 2024
This was referenced Jan 31, 2025
mz2
pushed a commit
to canonical/certification-errbot
that referenced
this pull request
Feb 7, 2025
Bumps [webob](https://github.com/Pylons/webob) from 1.8.7 to 1.8.8. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Pylons/webob/blob/main/CHANGES.txt">webob's changelog</a>.</em></p> <blockquote> <h2>Unreleased</h2> <p>Security Fix</p> <pre><code> - The use of WebOb's Response object to redirect a request to a new location can lead to an open redirect if the Location header is not a full URI. <p>See <a href="https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3">https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3</a><br /> and CVE-2024-42353</p> <p>Thanks to Sara Gao for the report</p> <p>(This fix was released in WebOb 1.8.8)</p> <p>Feature</p> <pre><code> - Rename &quot;master&quot; git branch to &quot;main&quot; - Add support for Python 3.12. - Add Request.remote_host, exposing REMOTE_HOST environment variable. - Added ``acceptparse.Accept.parse_offer`` to codify what types of offers are compatible with ``acceptparse.AcceptValidHeader.acceptable_offers``, ``acceptparse.AcceptMissingHeader.acceptable_offers``, and ``acceptparse.AcceptInvalidHeader.acceptable_offers``. This API also normalizes the offer with lowercased type/subtype and parameter names. See Pylons/webob#376 and Pylons/webob#379 Compatibility </code></pre> <p>Backwards Incompatibilities</p> <pre><code> - Drop support for Python 2.7, 3.4, 3.5, 3.6, and 3.7. Experimental Features </code></pre> <ul> <li> <p>The SameSite value now includes a new option named "None", this is a new<br /> change that was introduced in<br /> <a href="https://tools.ietf.org/html/draft-west-cookie-incrementalism-00">https://tools.ietf.org/html/draft-west-cookie-incrementalism-00</a></p> <p>Please be aware that older clients are incompatible with this change:<br /> </tr></table><br /> </code></pre></p> </li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Pylons/webob/commit/f2bdd835d6ca1884b5e03e7778f5ede1737f8bc7"><code>f2bdd83</code></a> Merge commit from fork</li> <li><a href="https://github.com/Pylons/webob/commit/913fa2cbbfca0f394716ac30c6f910b461f3e8f6"><code>913fa2c</code></a> Update CHANGES.txt</li> <li><a href="https://github.com/Pylons/webob/commit/f2e92f3c42d889dd74ffd07ab85d5b6a6c32a5d5"><code>f2e92f3</code></a> WebOb version revised to 1.8.8</li> <li><a href="https://github.com/Pylons/webob/commit/a06856a9a3e0a01b469dc66d0ed8474711a4b5d9"><code>a06856a</code></a> Build the latest version from tox</li> <li><a href="https://github.com/Pylons/webob/commit/819f43c911d377ca9ebc15146772b0c918eb7e5a"><code>819f43c</code></a> Add MANIFEST.in to build source tarball</li> <li><a href="https://github.com/Pylons/webob/commit/411df96de2c661d6e9566f2bd2a12ea17d89d97b"><code>411df96</code></a> s/isAlive/is_alive/</li> <li><a href="https://github.com/Pylons/webob/commit/5ae9b5d2f472dfa62536b04e78eaaa2b1e153e7e"><code>5ae9b5d</code></a> Update for newer versions of tox/sphinx</li> <li><a href="https://github.com/Pylons/webob/commit/2a2da92b9fd2268ff3d4d5293b2fcdacad0fc859"><code>2a2da92</code></a> Support for Python 2.7 requires an old version of virtualenv</li> <li><a href="https://github.com/Pylons/webob/commit/f689bcf4f0a1f64f1735b1d5069aef5be6974b5b"><code>f689bcf</code></a> Add fix for open redirect</li> <li>See full diff in <a href="https://github.com/Pylons/webob/compare/1.8.7...1.8.8">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/canonical/hwcert-errbot/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
mz2
pushed a commit
to canonical/certification-errbot
that referenced
this pull request
Feb 7, 2025
Bumps [webob](https://github.com/Pylons/webob) from 1.8.7 to 1.8.8. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Pylons/webob/blob/main/CHANGES.txt">webob's changelog</a>.</em></p> <blockquote> <h2>Unreleased</h2> <p>Security Fix</p> <pre><code> - The use of WebOb's Response object to redirect a request to a new location can lead to an open redirect if the Location header is not a full URI. <p>See <a href="https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3">https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3</a><br /> and CVE-2024-42353</p> <p>Thanks to Sara Gao for the report</p> <p>(This fix was released in WebOb 1.8.8)</p> <p>Feature</p> <pre><code> - Rename &quot;master&quot; git branch to &quot;main&quot; - Add support for Python 3.12. - Add Request.remote_host, exposing REMOTE_HOST environment variable. - Added ``acceptparse.Accept.parse_offer`` to codify what types of offers are compatible with ``acceptparse.AcceptValidHeader.acceptable_offers``, ``acceptparse.AcceptMissingHeader.acceptable_offers``, and ``acceptparse.AcceptInvalidHeader.acceptable_offers``. This API also normalizes the offer with lowercased type/subtype and parameter names. See Pylons/webob#376 and Pylons/webob#379 Compatibility </code></pre> <p>Backwards Incompatibilities</p> <pre><code> - Drop support for Python 2.7, 3.4, 3.5, 3.6, and 3.7. Experimental Features </code></pre> <ul> <li> <p>The SameSite value now includes a new option named "None", this is a new<br /> change that was introduced in<br /> <a href="https://tools.ietf.org/html/draft-west-cookie-incrementalism-00">https://tools.ietf.org/html/draft-west-cookie-incrementalism-00</a></p> <p>Please be aware that older clients are incompatible with this change:<br /> </tr></table><br /> </code></pre></p> </li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Pylons/webob/commit/f2bdd835d6ca1884b5e03e7778f5ede1737f8bc7"><code>f2bdd83</code></a> Merge commit from fork</li> <li><a href="https://github.com/Pylons/webob/commit/913fa2cbbfca0f394716ac30c6f910b461f3e8f6"><code>913fa2c</code></a> Update CHANGES.txt</li> <li><a href="https://github.com/Pylons/webob/commit/f2e92f3c42d889dd74ffd07ab85d5b6a6c32a5d5"><code>f2e92f3</code></a> WebOb version revised to 1.8.8</li> <li><a href="https://github.com/Pylons/webob/commit/a06856a9a3e0a01b469dc66d0ed8474711a4b5d9"><code>a06856a</code></a> Build the latest version from tox</li> <li><a href="https://github.com/Pylons/webob/commit/819f43c911d377ca9ebc15146772b0c918eb7e5a"><code>819f43c</code></a> Add MANIFEST.in to build source tarball</li> <li><a href="https://github.com/Pylons/webob/commit/411df96de2c661d6e9566f2bd2a12ea17d89d97b"><code>411df96</code></a> s/isAlive/is_alive/</li> <li><a href="https://github.com/Pylons/webob/commit/5ae9b5d2f472dfa62536b04e78eaaa2b1e153e7e"><code>5ae9b5d</code></a> Update for newer versions of tox/sphinx</li> <li><a href="https://github.com/Pylons/webob/commit/2a2da92b9fd2268ff3d4d5293b2fcdacad0fc859"><code>2a2da92</code></a> Support for Python 2.7 requires an old version of virtualenv</li> <li><a href="https://github.com/Pylons/webob/commit/f689bcf4f0a1f64f1735b1d5069aef5be6974b5b"><code>f689bcf</code></a> Add fix for open redirect</li> <li>See full diff in <a href="https://github.com/Pylons/webob/compare/1.8.7...1.8.8">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/canonical/hwcert-errbot/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Feb 17, 2025
This was referenced Apr 7, 2025
This was referenced Jun 13, 2025
This was referenced Dec 2, 2025
This was referenced Apr 24, 2026
This was referenced May 17, 2026
TorreZuk
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Jun 8, 2026
Bumps [webob](https://github.com/Pylons/webob) from 1.8.9 to 1.8.10. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Pylons/webob/blob/main/CHANGES.txt">webob's changelog</a>.</em></p> <blockquote> <h2>Unreleased</h2> <p>Security Fix</p> <pre><code> - The use of WebOb's Response object to redirect a request to a new location can lead to an open redirect if the Location header is not a full URI. <p>See <a href="https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3">https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3</a><br /> and CVE-2024-42353</p> <p>Thanks to Sara Gao for the report</p> <p>(This fix was released in WebOb 1.8.8)</p> <ul> <li> <p>The fix for CVE-2024-42353 was incomplete: a Location value containing<br /> ASCII tab, carriage return, or line feed characters between consecutive<br /> slashes could still be interpreted as a protocol-relative URL by<br /> <code>urllib.parse.urljoin</code> on Python 3.10+, allowing an open redirect.</p> <p>See <a href="https://github.com/Pylons/webob/security/advisories/GHSA-fh3h-vg37-cc95">https://github.com/Pylons/webob/security/advisories/GHSA-fh3h-vg37-cc95</a></p> <p>Thanks to Caleb Brown of Google for the report.</p> <p>(Thix fix was released in WebOb 1.8.10)</p> </li> </ul> <p>Feature</p> <pre><code> - Rename &quot;master&quot; git branch to &quot;main&quot; - Add support for Python 3.12. - Add support for Python 3.13. - Add support for Python 3.14. - Add Request.remote_host, exposing REMOTE_HOST environment variable. - Added ``acceptparse.Accept.parse_offer`` to codify what types of offers are compatible with ``acceptparse.AcceptValidHeader.acceptable_offers``, ``acceptparse.AcceptMissingHeader.acceptable_offers``, and ``acceptparse.AcceptInvalidHeader.acceptable_offers``. This API also normalizes the offer with lowercased type/subtype and parameter names. See Pylons/webob#376 and Pylons/webob#379 Compatibility </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="Pylons/webob@b240857958df492ef71bb00fb4b5365ecd92480a"><code>b240857</code></a> Merge commit from fork</li> <li><a href="Pylons/webob@57d78a3950a78a2d45cebefb477ad672165a15d9"><code>57d78a3</code></a> Release 1.8.10</li> <li><a href="Pylons/webob@228fb77a8be61c006d6c20d9df9fd7c840b1cc9a"><code>228fb77</code></a> Backport of 7121e8c from main to fix test suite on Python &gt;=3.10 which got a ...</li> <li><a href="Pylons/webob@21c1c582bff83dc6f95fdb055e31a36db6d26e89"><code>21c1c58</code></a> Fix open redirect issue due to changes made in cPython &gt;=3.10</li> <li><a href="Pylons/webob@5e52ea46a171fbebcb04a70b2a6a0803fdcca0eb"><code>5e52ea4</code></a> Allow docs to build again</li> <li>See full diff in <a href="Pylons/webob@1.8.9...1.8.10">compare view</a></li> </ul> </details> <br /></code></pre> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ROCm/rocm-libraries/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
assistant-librarian Bot
pushed a commit
to ROCm/Tensile
that referenced
this pull request
Jun 8, 2026
Bump webob from 1.8.9 to 1.8.10 in /shared/tensile/docs/sphinx (#8069) Bumps [webob](https://github.com/Pylons/webob) from 1.8.9 to 1.8.10. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Pylons/webob/blob/main/CHANGES.txt">webob's changelog</a>.</em></p> <blockquote> <h2>Unreleased</h2> <p>Security Fix</p> <pre><code> - The use of WebOb's Response object to redirect a request to a new location can lead to an open redirect if the Location header is not a full URI. <p>See <a href="https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3">https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3</a><br /> and CVE-2024-42353</p> <p>Thanks to Sara Gao for the report</p> <p>(This fix was released in WebOb 1.8.8)</p> <ul> <li> <p>The fix for CVE-2024-42353 was incomplete: a Location value containing<br /> ASCII tab, carriage return, or line feed characters between consecutive<br /> slashes could still be interpreted as a protocol-relative URL by<br /> <code>urllib.parse.urljoin</code> on Python 3.10+, allowing an open redirect.</p> <p>See <a href="https://github.com/Pylons/webob/security/advisories/GHSA-fh3h-vg37-cc95">https://github.com/Pylons/webob/security/advisories/GHSA-fh3h-vg37-cc95</a></p> <p>Thanks to Caleb Brown of Google for the report.</p> <p>(Thix fix was released in WebOb 1.8.10)</p> </li> </ul> <p>Feature</p> <pre><code> - Rename &quot;master&quot; git branch to &quot;main&quot; - Add support for Python 3.12. - Add support for Python 3.13. - Add support for Python 3.14. - Add Request.remote_host, exposing REMOTE_HOST environment variable. - Added ``acceptparse.Accept.parse_offer`` to codify what types of offers are compatible with ``acceptparse.AcceptValidHeader.acceptable_offers``, ``acceptparse.AcceptMissingHeader.acceptable_offers``, and ``acceptparse.AcceptInvalidHeader.acceptable_offers``. This API also normalizes the offer with lowercased type/subtype and parameter names. See Pylons/webob#376 and Pylons/webob#379 Compatibility </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="Pylons/webob@b240857958df492ef71bb00fb4b5365ecd92480a"><code>b240857</code></a> Merge commit from fork</li> <li><a href="Pylons/webob@57d78a3950a78a2d45cebefb477ad672165a15d9"><code>57d78a3</code></a> Release 1.8.10</li> <li><a href="Pylons/webob@228fb77a8be61c006d6c20d9df9fd7c840b1cc9a"><code>228fb77</code></a> Backport of 7121e8c from main to fix test suite on Python &gt;=3.10 which got a ...</li> <li><a href="Pylons/webob@21c1c582bff83dc6f95fdb055e31a36db6d26e89"><code>21c1c58</code></a> Fix open redirect issue due to changes made in cPython &gt;=3.10</li> <li><a href="Pylons/webob@5e52ea46a171fbebcb04a70b2a6a0803fdcca0eb"><code>5e52ea4</code></a> Allow docs to build again</li> <li>See full diff in <a href="Pylons/webob@1.8.9...1.8.10">compare view</a></li> </ul> </details> <br /></code></pre> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.