1. 11 Sep, 2024 2 commits
    • Arnaud Fontaine's avatar
      zope5: Since Zope 5.8.1 CONTENT_TYPE HTTP header must be specified for PUT request. · 636de5ba
      Arnaud Fontaine authored
      Despite RFC 4918 stating that Content-Type *SHOULD* be provided, since the
      following commit no CONTENT_TYPE means application/x-www-form-urlencoded thus
      processing the request as a form and not a binary file (with cgi.FieldStorage,
      it was text/plain and all the form-processing logic was skipped):
        commit 5b324f6c461f5ea1cc069739b6c32a1a5ff59df9
        Date:   Thu Jan 19 07:15:18 2023 +0100
          replace `cgi.FieldStorage` by `multipart` (#1094)
          * interpret a missing `CONTENT_TYPE` as `application/x-www-form-urlencoded`
      
      This raises the following exception:
        Traceback (most recent call last):
          File "erp5://portal_components/test.erp5.testWebDavSupport", line 232, in test_PROPFIND_on_document
            response = self.publish(
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/parts/erp5/product/ERP5Type/tests/ERP5TypeTestCase.py", line 793, in publish
            return super(ERP5TypeTestCaseMixin, self).publish(
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/eggs/Zope-5.10-py3.9.egg/Testing/ZopeTestCase/functional.py", line 42, in wrapped_func
            return func(*args, **kw)
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/eggs/Zope-5.10-py3.9.egg/Testing/ZopeTestCase/functional.py", line 133, in publish
            wsgi_result = publish(env, start_response)
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/eggs/Zope-5.10-py3.9.egg/ZPublisher/httpexceptions.py", line 30, in __call__
            return self.application(environ, start_response)
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/eggs/Zope-5.10-py3.9.egg/ZPublisher/WSGIPublisher.py", line 391, in publish_module
            response = _publish(request, new_mod_info)
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/parts/erp5/product/ERP5Type/patches/WSGIPublisher.py", line 150, in publish
            return _original_publish(request, module_info)
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/eggs/Zope-5.10-py3.9.egg/ZPublisher/WSGIPublisher.py", line 251, in publish
            request.processInputs()
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/parts/erp5/product/Localizer/patches.py", line 37, in new_processInputs
            HTTPRequest.old_processInputs(self)
          File "/opt/slapgrid/3f9add9291086dee302fc478df4b3130/eggs/Zope-5.10-py3.9.egg/ZPublisher/HTTPRequest.py", line 544, in processInputs
            key = item.name.encode("latin-1").decode(
        UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 10: invalid continuation byte
      636de5ba
    • Jérome Perrin's avatar
      erp5_stripe: Fix test simulating a webhook request made by stripe. · 614e6ac0
      Jérome Perrin authored
      The real request has the `CONTENT_TYPE` header so do the same in the test. This
      was working anyway without the header on py2 but not on py3.
      614e6ac0
  2. 10 Sep, 2024 7 commits
  3. 09 Sep, 2024 3 commits
  4. 05 Sep, 2024 1 commit
  5. 03 Sep, 2024 5 commits
  6. 31 Aug, 2024 1 commit
  7. 30 Aug, 2024 2 commits
  8. 28 Aug, 2024 1 commit
  9. 27 Aug, 2024 1 commit
  10. 26 Aug, 2024 4 commits
  11. 16 Aug, 2024 1 commit
  12. 14 Aug, 2024 1 commit
  13. 13 Aug, 2024 1 commit
  14. 12 Aug, 2024 2 commits
  15. 07 Aug, 2024 2 commits
  16. 06 Aug, 2024 1 commit
  17. 02 Aug, 2024 2 commits
  18. 01 Aug, 2024 3 commits