-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/master Date: 2023-01-09T21:30:27+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.app.caching@da84b9d Revert changes to tests to work with the Zope security fix. We must have an empty byte, not text, otherwise it is an indication that we get a possibly wrong Content-Type in a 304 status. See zopefoundation/Zope#1089. This reverts commit e6941fdfe6c8a3c98af98f4986e6932739adfca6. Files changed: A news/1089.bugfix M plone/app/caching/tests/test_profile_with_caching_proxy.py M plone/app/caching/tests/test_profile_without_caching_proxy.py Repository: plone.app.caching Branch: refs/heads/master Date: 2023-01-09T22:45:00+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.app.caching@c3ee243 Merge pull request #109 from plone/maurits-fix-tests-again Revert changes to tests to work with the Zope security fix. [master] Files changed: A news/1089.bugfix M plone/app/caching/tests/test_profile_with_caching_proxy.py M plone/app/caching/tests/test_profile_without_caching_proxy.py
- Loading branch information
1 parent
861477e
commit 9b2f0d7
Showing
1 changed file
with
22 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,41 @@ | ||
Repository: plone.app.portlets | ||
Repository: plone.app.caching | ||
|
||
|
||
Branch: refs/heads/master | ||
Date: 2023-01-09T12:47:56+01:00 | ||
Author: Janina (wkbkhard) <hard@werkbank.de> | ||
Commit: https://github.com/plone/plone.app.portlets/commit/5c3c3782ede2cc73d2e74a9205824b15e9333002 | ||
Date: 2023-01-09T21:30:27+01:00 | ||
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> | ||
Commit: https://github.com/plone/plone.app.caching/commit/da84b9db535e9917c08aaaf8c339cb0981de8f91 | ||
|
||
Change button name | ||
Revert changes to tests to work with the Zope security fix. | ||
|
||
Files changed: | ||
M plone/app/portlets/portlets/login.pt | ||
|
||
b'diff --git a/plone/app/portlets/portlets/login.pt b/plone/app/portlets/portlets/login.pt\nindex 4fa808a4..bcdb8093 100644\n--- a/plone/app/portlets/portlets/login.pt\n+++ b/plone/app/portlets/portlets/login.pt\n@@ -75,7 +75,7 @@\n <div class="formControls">\n <input class="btn btn-primary"\n type="submit"\n- name="submit"\n+ name="buttons.login"\n value="Log in"\n title="Log in"\n i18n:attributes="value label_log_in; title label_log_in;"/>\n' | ||
|
||
Repository: plone.app.portlets | ||
|
||
|
||
Branch: refs/heads/master | ||
Date: 2023-01-09T12:50:36+01:00 | ||
Author: Janina (wkbkhard) <hard@werkbank.de> | ||
Commit: https://github.com/plone/plone.app.portlets/commit/1e313457f7b77528bfd5dcd81ed7a1042ff022c4 | ||
We must have an empty byte, not text, otherwise it is an indication that we get a possibly wrong Content-Type in a 304 status. | ||
See https://github.com/zopefoundation/Zope/issues/1089. | ||
|
||
Add Info to Changes.rst | ||
This reverts commit e6941fdfe6c8a3c98af98f4986e6932739adfca6. | ||
|
||
Files changed: | ||
M CHANGES.rst | ||
A news/1089.bugfix | ||
M plone/app/caching/tests/test_profile_with_caching_proxy.py | ||
M plone/app/caching/tests/test_profile_without_caching_proxy.py | ||
|
||
b'diff --git a/CHANGES.rst b/CHANGES.rst\nindex 6b980ac9..0c8f0e8a 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -8,6 +8,15 @@ Changelog\n \n .. towncrier release notes start\n \n+5.0.1 (2023-01-09)\n+------------------\n+\n+Bug fixes:\n+\n+\n+- Fix login button name [wkbkhard] (#132)\n+\n+\n 5.0.0 (2022-11-30)\n ------------------\n \n' | ||
b'diff --git a/news/1089.bugfix b/news/1089.bugfix\nnew file mode 100644\nindex 0000000..250e4b4\n--- /dev/null\n+++ b/news/1089.bugfix\n@@ -0,0 +1,4 @@\n+Revert changes to tests to work with the Zope security fix.\n+We must have an empty byte, not text, otherwise it is an indication that we get a possibly wrong Content-Type in a 304 status.\n+See `Zope issue 1089 <https://github.com/zopefoundation/Zope/issues/1089>`_.\n+[maurits]\ndiff --git a/plone/app/caching/tests/test_profile_with_caching_proxy.py b/plone/app/caching/tests/test_profile_with_caching_proxy.py\nindex c58947f..4eeef45 100644\n--- a/plone/app/caching/tests/test_profile_with_caching_proxy.py\n+++ b/plone/app/caching/tests/test_profile_with_caching_proxy.py\n@@ -199,7 +199,11 @@ def test_composite_viewsxx(self):\n browser.open(self.portal["f1"]["d1"].absolute_url())\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ # We MUST have an empty byte, not text, otherwise it is an indication that we\n+ # get a possibly wrong Content-Type in a 304 status.\n+ # See https://github.com/zopefoundation/Zope/issues/1089.\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the anonymous folder\n now = stable_now()\n@@ -274,7 +278,8 @@ def test_composite_viewsxx(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Edit the page to update the etag\n testText2 = "Testing... body two"\n@@ -369,7 +374,8 @@ def test_content_feeds(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the authenticated rss feed\n now = stable_now()\n@@ -504,7 +510,8 @@ def test_content_files(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request an image scale\n now = stable_now()\n@@ -560,7 +567,8 @@ def test_resources(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request a large datafile (over 64K) to test files that use\n # the "response.write()" function to initiate a streamed response.\ndiff --git a/plone/app/caching/tests/test_profile_without_caching_proxy.py b/plone/app/caching/tests/test_profile_without_caching_proxy.py\nindex 1960738..256b7ab 100644\n--- a/plone/app/caching/tests/test_profile_without_caching_proxy.py\n+++ b/plone/app/caching/tests/test_profile_without_caching_proxy.py\n@@ -177,7 +177,11 @@ def test_composite_views(self):\n browser.open(self.portal["f1"]["d1"].absolute_url())\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ # We MUST have an empty byte, not text, otherwise it is an indication that we\n+ # get a possibly wrong Content-Type in a 304 status.\n+ # See https://github.com/zopefoundation/Zope/issues/1089.\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the anonymous folder\n now = stable_now()\n@@ -245,7 +249,8 @@ def test_composite_views(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Edit the page to update the etag\n testText2 = "Testing... body two"\n@@ -334,7 +339,8 @@ def test_content_feeds(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the authenticated rss feed\n now = stable_now()\n@@ -421,7 +427,8 @@ def test_content_files(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request an image scale\n now = stable_now()\n@@ -471,7 +478,8 @@ def test_resources(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request a large datafile (over 64K) to test files that use\n # the "response.write()" function to initiate a streamed response.\n' | ||
|
||
Repository: plone.app.portlets | ||
Repository: plone.app.caching | ||
|
||
|
||
Branch: refs/heads/master | ||
Date: 2023-01-09T16:01:14+01:00 | ||
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at> | ||
Commit: https://github.com/plone/plone.app.portlets/commit/484ea3604b8bd727d424cde3bf4795f34424b09d | ||
Date: 2023-01-09T22:45:00+01:00 | ||
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> | ||
Commit: https://github.com/plone/plone.app.caching/commit/c3ee243e2c14b4e04be8e043f25ed0fc7b8357db | ||
|
||
Merge pull request #170 from plone/loginportlet | ||
Merge pull request #109 from plone/maurits-fix-tests-again | ||
|
||
Update login portlet button | ||
Revert changes to tests to work with the Zope security fix. [master] | ||
|
||
Files changed: | ||
M CHANGES.rst | ||
M plone/app/portlets/portlets/login.pt | ||
A news/1089.bugfix | ||
M plone/app/caching/tests/test_profile_with_caching_proxy.py | ||
M plone/app/caching/tests/test_profile_without_caching_proxy.py | ||
|
||
b'diff --git a/CHANGES.rst b/CHANGES.rst\nindex 6b980ac9..0c8f0e8a 100644\n--- a/CHANGES.rst\n+++ b/CHANGES.rst\n@@ -8,6 +8,15 @@ Changelog\n \n .. towncrier release notes start\n \n+5.0.1 (2023-01-09)\n+------------------\n+\n+Bug fixes:\n+\n+\n+- Fix login button name [wkbkhard] (#132)\n+\n+\n 5.0.0 (2022-11-30)\n ------------------\n \ndiff --git a/plone/app/portlets/portlets/login.pt b/plone/app/portlets/portlets/login.pt\nindex 4fa808a4..bcdb8093 100644\n--- a/plone/app/portlets/portlets/login.pt\n+++ b/plone/app/portlets/portlets/login.pt\n@@ -75,7 +75,7 @@\n <div class="formControls">\n <input class="btn btn-primary"\n type="submit"\n- name="submit"\n+ name="buttons.login"\n value="Log in"\n title="Log in"\n i18n:attributes="value label_log_in; title label_log_in;"/>\n' | ||
b'diff --git a/news/1089.bugfix b/news/1089.bugfix\nnew file mode 100644\nindex 0000000..250e4b4\n--- /dev/null\n+++ b/news/1089.bugfix\n@@ -0,0 +1,4 @@\n+Revert changes to tests to work with the Zope security fix.\n+We must have an empty byte, not text, otherwise it is an indication that we get a possibly wrong Content-Type in a 304 status.\n+See `Zope issue 1089 <https://github.com/zopefoundation/Zope/issues/1089>`_.\n+[maurits]\ndiff --git a/plone/app/caching/tests/test_profile_with_caching_proxy.py b/plone/app/caching/tests/test_profile_with_caching_proxy.py\nindex c58947f..4eeef45 100644\n--- a/plone/app/caching/tests/test_profile_with_caching_proxy.py\n+++ b/plone/app/caching/tests/test_profile_with_caching_proxy.py\n@@ -199,7 +199,11 @@ def test_composite_viewsxx(self):\n browser.open(self.portal["f1"]["d1"].absolute_url())\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ # We MUST have an empty byte, not text, otherwise it is an indication that we\n+ # get a possibly wrong Content-Type in a 304 status.\n+ # See https://github.com/zopefoundation/Zope/issues/1089.\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the anonymous folder\n now = stable_now()\n@@ -274,7 +278,8 @@ def test_composite_viewsxx(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Edit the page to update the etag\n testText2 = "Testing... body two"\n@@ -369,7 +374,8 @@ def test_content_feeds(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the authenticated rss feed\n now = stable_now()\n@@ -504,7 +510,8 @@ def test_content_files(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request an image scale\n now = stable_now()\n@@ -560,7 +567,8 @@ def test_resources(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request a large datafile (over 64K) to test files that use\n # the "response.write()" function to initiate a streamed response.\ndiff --git a/plone/app/caching/tests/test_profile_without_caching_proxy.py b/plone/app/caching/tests/test_profile_without_caching_proxy.py\nindex 1960738..256b7ab 100644\n--- a/plone/app/caching/tests/test_profile_without_caching_proxy.py\n+++ b/plone/app/caching/tests/test_profile_without_caching_proxy.py\n@@ -177,7 +177,11 @@ def test_composite_views(self):\n browser.open(self.portal["f1"]["d1"].absolute_url())\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ # We MUST have an empty byte, not text, otherwise it is an indication that we\n+ # get a possibly wrong Content-Type in a 304 status.\n+ # See https://github.com/zopefoundation/Zope/issues/1089.\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the anonymous folder\n now = stable_now()\n@@ -245,7 +249,8 @@ def test_composite_views(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Edit the page to update the etag\n testText2 = "Testing... body two"\n@@ -334,7 +339,8 @@ def test_content_feeds(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request the authenticated rss feed\n now = stable_now()\n@@ -421,7 +427,8 @@ def test_content_files(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request an image scale\n now = stable_now()\n@@ -471,7 +478,8 @@ def test_resources(self):\n )\n # This should be a 304 response\n self.assertEqual("304 Not Modified", browser.headers["Status"])\n- self.assertEqual("", browser.contents)\n+ self.assertEqual(b"", browser.contents)\n+ self.assertFalse(browser.headers["Content-Type"])\n \n # Request a large datafile (over 64K) to test files that use\n # the "response.write()" function to initiate a streamed response.\n' | ||
|