Skip to content
Snippets Groups Projects
  1. Oct 14, 2021
  2. Sep 30, 2021
    • David Robertson's avatar
      Pass str to twisted's IReactorTCP (#10895) · 29364145
      David Robertson authored
      This follows a correction made in twisted/twisted#1664 and should fix our Twisted Trial CI job.
      
      Until that change is in a twisted release, we'll have to ignore the type
      of the `host` argument. I've raised #10899 to remind us to review the
      issue in a few months' time.
      29364145
  3. Sep 24, 2021
  4. Aug 27, 2021
    • Richard van der Hoff's avatar
      Fix incompatibility with Twisted < 21. (#10713) · 8f982605
      Richard van der Hoff authored
      Turns out that the functionality added in #10546 to skip TLS was incompatible
      with older Twisted versions, so we need to be a bit more inventive.
      
      Also, add a test to (hopefully) not break this in future. Sadly, testing TLS is
      really hard.
      8f982605
  5. Jul 13, 2021
  6. Jun 17, 2021
  7. Apr 23, 2021
    • Richard van der Hoff's avatar
      Kill off `_PushHTTPChannel`. (#9878) · 84936e22
      Richard van der Hoff authored
      First of all, a fixup to `FakeChannel` which is needed to make it work with the default HTTP channel implementation.
      
      Secondly, it looks like we no longer need `_PushHTTPChannel`, because as of #8013, the producer that gets attached to the `HTTPChannel` is now an `IPushProducer`. This is good, because it means we can remove a whole load of test-specific boilerplate which causes variation between tests and production.
      84936e22
  8. Mar 26, 2021
    • Erik Johnston's avatar
      Make it possible to use dmypy (#9692) · b5efcb57
      Erik Johnston authored
      Running `dmypy run` will do a `mypy` check while spinning up a daemon
      that makes rerunning `dmypy run` a lot faster.
      
      `dmypy` doesn't support `follow_imports = silent` and has
      `local_partial_types` enabled, so this PR enables those options and
      fixes the issues that were newly raised. Note that `local_partial_types`
      will be enabled by default in upcoming mypy releases.
      b5efcb57
  9. Mar 24, 2021
  10. Mar 15, 2021
  11. Mar 09, 2021
  12. Feb 26, 2021
  13. Feb 16, 2021
  14. Jan 28, 2021
  15. Jan 18, 2021
    • Richard van der Hoff's avatar
      Fix bugs in handling clientRedirectUrl, and improve OIDC tests (#9127, #9128) · 02070c69
      Richard van der Hoff authored
      * Factor out a common TestHtmlParser
      
      Looks like I'm doing this in a few different places.
      
      * Improve OIDC login test
      
      Complete the OIDC login flow, rather than giving up halfway through.
      
      * Ensure that OIDC login works with multiple OIDC providers
      
      * Fix bugs in handling clientRedirectUrl
      
       - don't drop duplicate query-params, or params with no value
       - allow utf-8 in query-params
      02070c69
  16. Jan 13, 2021
  17. Dec 15, 2020
  18. Dec 02, 2020
  19. Nov 16, 2020
  20. Nov 15, 2020
  21. Oct 30, 2020
  22. Oct 29, 2020
  23. Oct 27, 2020
  24. Oct 09, 2020
    • Patrick Cloke's avatar
    • Richard van der Hoff's avatar
      Fix threadsafety in ThreadedMemoryReactorClock (#8497) · 9789b1fb
      Richard van der Hoff authored
      This could, very occasionally, cause:
      
      ```
      tests.test_visibility.FilterEventsForServerTestCase.test_large_room
      ===============================================================================
      [ERROR]
      Traceback (most recent call last):
        File "/src/tests/rest/media/v1/test_media_storage.py", line 86, in test_ensure_media_is_in_local_cache
          self.wait_on_thread(x)
        File "/src/tests/unittest.py", line 296, in wait_on_thread
          self.reactor.advance(0.01)
        File "/src/.tox/py35/lib/python3.5/site-packages/twisted/internet/task.py", line 826, in advance
          self._sortCalls()
        File "/src/.tox/py35/lib/python3.5/site-packages/twisted/internet/task.py", line 787, in _sortCalls
          self.calls.sort(key=lambda a: a.getTime())
      builtins.ValueError: list modified during sort
      
      tests.rest.media.v1.test_media_storage.MediaStorageTests.test_ensure_media_is_in_local_cache
      ```
      9789b1fb
  25. Oct 02, 2020
  26. Sep 18, 2020
  27. Sep 10, 2020
    • Andrew Morgan's avatar
      Show a confirmation page during user password reset (#8004) · a3a90ee0
      Andrew Morgan authored
      This PR adds a confirmation step to resetting your user password between clicking the link in your email and your password actually being reset.
      
      This is to better align our password reset flow with the industry standard of requiring a confirmation from the user after email validation.
      a3a90ee0
  28. Sep 04, 2020
  29. Jul 15, 2020
  30. Jun 16, 2020
  31. Jan 03, 2020
  32. Dec 18, 2019
  33. Nov 25, 2019
  34. Nov 01, 2019
    • Richard van der Hoff's avatar
      Support for routing outbound HTTP requests via a proxy (#6239) · 1cb84c64
      Richard van der Hoff authored
      The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy.
      
      The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`.
      
      The proxy will then be used for
       * push
       * url previews
       * phone-home stats
       * recaptcha validation
       * CAS auth validation
      
      It will *not* be used for:
       * Application Services
       * Identity servers
       * Outbound federation
       * In worker configurations, connections from workers to masters
      
      Fixes #4198.
      1cb84c64
Loading