[Checkins] [zopefoundation/Zope] d643b3: force cookies to be bytes to prevent wrapping byte...

GitHub noreply at github.com
Thu May 17 16:40:59 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Zope
  Commit: d643b3bd93d5abd21bb2a1c0f0b6ce11c2004a01
      https://github.com/zopefoundation/Zope/commit/d643b3bd93d5abd21bb2a1c0f0b6ce11c2004a01
  Author: Philip Bauer <bauer at starzel.de>
  Date:   2018-04-02 (Mon, 02 Apr 2018)

  Changed paths:
    M src/ZPublisher/HTTPResponse.py

  Log Message:
  -----------
  force cookies to be bytes to prevent wrapping bytes as text in py3 (e.g. "b'somevalue'")


  Commit: 47e5ae04760572881f414f2ad9d943dd873b9a86
      https://github.com/zopefoundation/Zope/commit/47e5ae04760572881f414f2ad9d943dd873b9a86
  Author: Philip Bauer <bauer at starzel.de>
  Date:   2018-04-03 (Tue, 03 Apr 2018)

  Changed paths:
    M src/ZPublisher/HTTPResponse.py

  Log Message:
  -----------
  do not turn cookie key to bytes in py3


  Commit: 941feb070dc80467eb0e509654fce34ff792e38a
      https://github.com/zopefoundation/Zope/commit/941feb070dc80467eb0e509654fce34ff792e38a
  Author: Steffen Allner <sa at gocept.com>
  Date:   2018-05-16 (Wed, 16 May 2018)

  Changed paths:
    A .coveragerc
    M .gitignore
    M .travis.yml
    M CHANGES.rst
    M README.rst
    R README.txt
    M buildout.cfg
    M docs/INSTALL-buildout.rst
    M docs/INSTALL-virtualenv.rst
    M docs/WHATSNEW.rst
    M docs/maintenance.rst
    M docs/operation.rst
    M requirements-full.txt
    M setup.py
    M src/OFS/Application.py
    M src/OFS/Cache.py
    M src/OFS/CopySupport.py
    M src/OFS/ObjectManager.py
    M src/OFS/tests/testCopySupport.py
    M src/OFS/tests/testObjectManager.py
    M src/OFS/tests/testProperties.py
    M src/Testing/ZopeTestCase/functional.py
    M src/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt
    M src/Testing/ZopeTestCase/zopedoctest/functional.py
    M src/ZPublisher/Converters.py
    M src/ZPublisher/HTTPRequest.py
    M src/ZPublisher/WSGIPublisher.py
    M src/ZPublisher/tests/testHTTPRequest.py
    M src/ZPublisher/tests/test_Converters.py
    M tox.ini
    M versions-prod.cfg
    M versions.cfg

  Log Message:
  -----------
  Merge branch 'master' into fix_cookie_setting


  Commit: f7aff2f499fe474bbacd376c054b2abe079c9162
      https://github.com/zopefoundation/Zope/commit/f7aff2f499fe474bbacd376c054b2abe079c9162
  Author: Steffen Allner <sa at gocept.com>
  Date:   2018-05-16 (Wed, 16 May 2018)

  Changed paths:
    M CHANGES.rst
    M src/ZPublisher/HTTPResponse.py

  Log Message:
  -----------
  Accept bytes and text as cookie values.

A cookie value is finally quoted before sending, which needs to be `str` in Python 2 and can be bytes or text in Python 3. In Python 3, a conversion would result in a string representation of bytes.


  Commit: 6c508b9cec2b08753a8f04bcf1d3936fd99303dd
      https://github.com/zopefoundation/Zope/commit/6c508b9cec2b08753a8f04bcf1d3936fd99303dd
  Author: Steffen Allner <sa at gocept.com>
  Date:   2018-05-16 (Wed, 16 May 2018)

  Changed paths:
    M src/ZPublisher/tests/testHTTPResponse.py

  Log Message:
  -----------
  Add tests for byte and text handling.


  Commit: 76314d05407a4f447de8d9d03243b157fdcdaa15
      https://github.com/zopefoundation/Zope/commit/76314d05407a4f447de8d9d03243b157fdcdaa15
  Author: Steffen Allner <sa at gocept.com>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M CHANGES.rst
    M src/ZPublisher/HTTPResponse.py
    M src/ZPublisher/tests/testHTTPResponse.py

  Log Message:
  -----------
  Merge pull request #263 from zopefoundation/fix_cookie_setting

Allows bytes and text as cookie values.


Compare: https://github.com/zopefoundation/Zope/compare/25f7985a678c...76314d05407a
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the checkins mailing list