Skip to content
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

Update twisted to 22.10.0 #275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates Twisted from 22.4.0 to 22.10.0.

Changelog

22.10.0

============================

This release contains a security fix for CVE-2022-39348.
This is a low-severity security bug.

22.10.0rc1

no changes between the release candidate and the final release.


Features
--------

- The ``systemd:`` endpoint parser now supports "named" file descriptors.  This is a more reliable mechanism for choosing among several inherited descriptors. (8147)



Improved Documentation
----------------------

- The ``systemd`` endpoint parser's ``index`` parameter is now documented as leading to non-deterministic results in which descriptor is selected.  The new ``name`` parameter is now documented as preferred. (8146)
- The implementers of Zope interfaces are once more displayed in the documentations. (11690)


Deprecations and Removals
-------------------------

- twisted.protocols.dict, which was deprecated in 17.9, has been removed. (11725)


Misc
----

- 11573, 11599, 11616, 11628, 11631, 11640, 11645, 11647, 11652, 11664, 11674, 11679, 11686, 11692, 11694, 11696, 11700, 11702, 11713, 11715, 11721


Conch
-----

Bugfixes
~~~~~~~~

- twisted.conch.manhole.ManholeInterpreter now captures tracebacks even if sys.excepthook has been modified. (11638)


Web
---

Features
~~~~~~~~

- The twisted.web.pages.errorPage, notFound, and forbidden each return an IResource that displays an HTML error pages safely rendered using twisted.web.template. (11716)


Bugfixes
~~~~~~~~

- twisted.web.error.Error.__str__ no longer raises an exception when the error's message attribute is None. Additionally, it validates that code is a plausible 3-digit HTTP status code. (10271)
- The typing of the twisted.web.http_headers.Headers methods addRawHeader() and setRawHeaders() now allow mixing str and bytes, matching the runtime behavior. (11635)
- twisted.web.vhost.NameVirtualHost no longer echoes HTML received in the Host header without escaping it (CVE-2022-39348, GHSA-vg46-2rrj-3647). (11716)


Deprecations and Removals
~~~~~~~~~~~~~~~~~~~~~~~~~

- twisted.web.resource.Resource.putChild now raises TypeError when the path argument is not bytes, rather than issuing a deprecation warning. (8985)
- The twisted.web.resource.ErrorPage, NoResource, and ForbiddenResource classes have been deprecated in favor of new implementations twisted.web.pages module because they permit HTML injection. (11716)


Mail
----

Bugfixes
~~~~~~~~

- emailserver.tac now runs under python3.x (11634)


Words
-----

No significant changes.


Names
-----

No significant changes.


Trial
-----

Features
~~~~~~~~

- twisted.trial.unittest.SynchronousTestCase.successResultOf is now annotated as accepting coroutines. (11657)


Bugfixes
~~~~~~~~

- The implementation of ``trial -jN ...`` now handles test errors and failures larger than 64 kB.  It also handles other internal communication errors by logging them in the worker and attempting to send them to the parent process -- instead of crashing with ``UnknownRemoteError`` and no additional details. (10314)
- `trial -jN --logfile path` no longer hangs if *path* contains a directory separator. (11580)


Misc
~~~~

- 11649, 11661, 11677, 11710

22.8.0

===========================

22.8.0rc1

no changes between the release candidate and the final release.


Features
--------

- twisted.internet.defer.maybeDeferred will now schedule a coroutine result as asynchronous operation and return a Deferred that fires with the result of the coroutine. (10327)
- Twisted now works with Cryptography versions 37 and above, and as a result, its minimum TLS protocol version has been upgraded to TLSv1.2. (10377)


Bugfixes
--------

- ``twisted.internet.base.DelayedCall.__repr__`` will no longer raise ``AttributeError`` if the ``DelayedCall`` was created before debug mode was enabled.  As a side-effect, ``twisted.internet.base.DelayedCall.creator`` is now defined as ``None`` in cases where previously it was undefined. (8306)
- twisted.internet.iocpreactor.udp now properly re-queues its listener when there is a failure condition on the read from the socket. (10052)
- twisted.internet.defer.inlineCallbacks no longer causes confusing StopIteration tracebacks to be added to the top of tracebacks originating in triggered callbacks (10260)
- The typing of twisted.internet.task.react no longer constrains the type of argv. (10289)
- `ContextVar.reset()` now works correctly inside `inlineCallbacks` functions and coroutines. (10301)
- Implement twisted.python.failure._Code.co_positions for compatibility with Python 3.11. (10336)
- twisted.pair.tuntap._TUNSETIFF and ._TUNGETIFF values are now correct parisc, powerpc and sparc architectures. (10339)


Improved Documentation
----------------------

- The release process documentation was updated to include information about
doing a security release. (10324)
- The development and policy documentation pages were moved into the same
directory that is now placed inside the documentation root directory. (11575)


Deprecations and Removals
-------------------------

- Python 3.6 is no longer supported.
Twisted 22.4.0 was the last version with support for Python 3.6. (10304)


Misc
----

- 9437, 9495, 10066, 10275, 10318, 10325, 10328, 10329, 10331, 10349, 10350, 10352, 10353, 11561, 11564, 11567, 11569, 11585, 11592, 11600, 11606, 11610, 11612, 11614


Conch
-----

Bugfixes
~~~~~~~~

- twisted.conch.checkers.UNIXAuthorizedKeysFiles now uses the filesystem encoding to decode usernames before looking them up in the password database, so it works on Python 3. (10286)
- twisted.conch.ssh.SSHSession.request_env no longer gives a warning if the session does not implement ISessionSetEnv. (10347)
- The cftp command line (and `twisted.conch.scripts.cftp.SSHSession.extReceived`) no longer raises an unhandled error when receiving data on stderr from the server. (10351)


Misc
~~~~

- 10330


Web
---

Features
~~~~~~~~

- twisted.web.template.renderElement now combines consecutive, sychronously-available bytes up to a fixed size limit into a single string to pass to ``IRequest.write`` instead of passing them all separately.  This greatly reduces the number of chunks in the response. (10348)


Misc
~~~~

- 11604


Mail
----

Bugfixes
~~~~~~~~

- twisted.mail.maildir.MaildirMessage now use byte header to avoid incompatibility with the FileMessage which writes bytes not strings lines to a message file (10244)


Words
-----

Bugfixes
~~~~~~~~

- twisted.words.protocols.irc.IRCClient now splits overly long NOTICEs and NOTICEs containing \n before sending. (10285)


Names
-----

Bugfixes
~~~~~~~~

- twisted.names.dns logs unparsable messages rather than generating a Failure instance (9723)


Trial
-----

Features
~~~~~~~~

- ``trial --jobs=N --exitfirst`` is now supported. (9654)


Bugfixes
~~~~~~~~

- `trial --jobs=N --until-failure ...` now reports the correct number of tests run after each iteration. (10311)
- ``trial -jN ...`` will now pass errors and failures to ``IReporter`` methods as instances of ``WorkerException`` instead of ``str``. (10333)


Misc
~~~~

- 10319, 10338, 11571
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant