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

GitHub noreply at github.com
Fri May 18 09:04:55 CEST 2018


  Branch: refs/heads/wsgi_show_tb_pr
  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: 016a3f1d66a39d7a847d971ae926681815ccee1d
      https://github.com/zopefoundation/Zope/commit/016a3f1d66a39d7a847d971ae926681815ccee1d
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M src/Zope2/utilities/skel/etc/wsgi.conf.in

  Log Message:
  -----------
  Re-add example section for how to use TemporaryFolder


  Commit: bba6eee800041d54b7ac2fe6414d889f328e0d18
      https://github.com/zopefoundation/Zope/commit/bba6eee800041d54b7ac2fe6414d889f328e0d18
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M src/App/ProductContext.py
    M src/OFS/Application.py

  Log Message:
  -----------
  Hand Application object to Products through ProductContext

Products receive the ProductContext as the first parameter
to their initialize() method when they are loaded. This context used to
contain a reference to the app until it was removed during Zope 4
preparations. The Application was, however, never exposed through an
API.

Access to the API is necessary for certain products that automatically
add objects to the Application when they are loaded, such as the
Products.Sessions and Products.TemporaryFolder. This used to happen in
OFS.Application in Zope 2, but was moved out when the products became
indepentent.


  Commit: b14d6c100f629fa80a11007ffde38ba39b13162c
      https://github.com/zopefoundation/Zope/commit/b14d6c100f629fa80a11007ffde38ba39b13162c
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    A src/OFS/tests/applicationproduct/__init__.py
    M src/OFS/tests/testAppInitializer.py

  Log Message:
  -----------
  Add unit test for application initialization in product


  Commit: c4f8c1ba63b93ba05c3260122bce75091c861409
      https://github.com/zopefoundation/Zope/commit/c4f8c1ba63b93ba05c3260122bce75091c861409
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Add changelog entry


  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.


  Commit: 89ba0e1058789b4667a1db29192ac94cc7ed5f41
      https://github.com/zopefoundation/Zope/commit/89ba0e1058789b4667a1db29192ac94cc7ed5f41
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M src/Zope2/Startup/datatypes.py
    A src/Zope2/Startup/tests/test_datatypes.py

  Log Message:
  -----------
  Use native strings for ZODB mount points in Python 2

ZODB requires paths and identifiers to be native strings (unicode on
Py3, bytes on Py2). Since the ZConfig parser decodes the config file,
keys and valus in the will consistently be unicode. As a result, the
ZopeDatabase object needs to encode the value back to str/bytes on
Python 2.


  Commit: ba9bee707a310e8cf7d053e540df345baa5ac669
      https://github.com/zopefoundation/Zope/commit/ba9bee707a310e8cf7d053e540df345baa5ac669
  Author: ‮zlohhcuB treboR <robert.buchholz at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M CHANGES.rst
    M src/App/ProductContext.py
    M src/OFS/Application.py
    A src/OFS/tests/applicationproduct/__init__.py
    M src/OFS/tests/testAppInitializer.py
    M src/Zope2/utilities/skel/etc/wsgi.conf.in

  Log Message:
  -----------
  Merge pull request #277 from zopefoundation/add_app_to_product_context

Add app to product context


  Commit: e413288411e39182a0a296a17d319b3c7ae2c667
      https://github.com/zopefoundation/Zope/commit/e413288411e39182a0a296a17d319b3c7ae2c667
  Author: ‮zlohhcuB treboR <robert.buchholz at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M src/Zope2/Startup/datatypes.py
    A src/Zope2/Startup/tests/test_datatypes.py

  Log Message:
  -----------
  Merge pull request #281 from zopefoundation/zodb-mount-points-as-native-strings

Use native strings for ZODB mount points in Python 2


  Commit: 48bd88030ac9a219e9f76fcf51778d7b641e3fe7
      https://github.com/zopefoundation/Zope/commit/48bd88030ac9a219e9f76fcf51778d7b641e3fe7
  Author: Michael Howitz <mh at gocept.com>
  Date:   2018-05-18 (Fri, 18 May 2018)

  Changed paths:
    M CHANGES.rst
    M src/App/ProductContext.py
    M src/OFS/Application.py
    A src/OFS/tests/applicationproduct/__init__.py
    M src/OFS/tests/testAppInitializer.py
    M src/ZPublisher/HTTPResponse.py
    M src/ZPublisher/tests/testHTTPResponse.py
    M src/Zope2/Startup/datatypes.py
    A src/Zope2/Startup/tests/test_datatypes.py
    M src/Zope2/utilities/skel/etc/wsgi.conf.in

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


Compare: https://github.com/zopefoundation/Zope/compare/b54dde066a48...48bd88030ac9
      **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