- 11 Sep, 2024 2 commits
-
-
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
-
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.
-
- 10 Sep, 2024 7 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
so that we can identify recently deleted objects, that are important to resynchronise catalog and ZODB in case of a catastrophe.
-
- 09 Sep, 2024 3 commits
-
-
Jérome Perrin authored
version up and fix a bug with indentation being 4 spaces (instead of the expected 2 spaces) with empty python files See merge request !1987
-
Jérome Perrin authored
true is not an allowed value, causing a visible problem tabSize to be ignored on empty documents and using 4 for python.
-
Jérome Perrin authored
-
- 05 Sep, 2024 1 commit
-
-
Rafael Monnerat authored
Prevent the user start an inconsistent assignment, since, extra property sheets can include some business logic around assignment configuration.
-
- 03 Sep, 2024 5 commits
-
-
Jérome Perrin authored
This fixes a regression with 445e8fa8 (ERP5TypeTestCase: rework default manager password generation, 2024-05-27), it was no longer possible to run live tests from a "normal" zope instance, this was failing with: Traceback (most recent call last): File "./eggs/Zope-5.10-py3.9.egg/Testing/ZopeTestCase/PortalTestCase.py", line 59, in setUp self._setup() File "./parts/erp5/product/ERP5Type/tests/ERP5TypeLiveTestCase.py", line 156, in _setup self.login() File "./parts/erp5/product/ERP5Type/tests/ERP5TypeTestCase.py", line 290, in login return PortalTestCase.login(self, user_name) File "./eggs/Zope-5.10-py3.9.egg/Testing/ZopeTestCase/PortalTestCase.py", line 146, in login user = user.__of__(uf) AttributeError: 'NoneType' object has no attribute '__of__' It was only possible from a runUnitTest instance.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
This comes with a small breaking change that when using file:// URLs, they need to be well formed ( file:// + path and not file:/ + path )
-
- 31 Aug, 2024 1 commit
-
-
Arnaud Fontaine authored
Use scrubHTML() from safe_html module instead.
-
- 30 Aug, 2024 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
It was using bytes(), but this seems wrong now.
-
- 28 Aug, 2024 1 commit
-
-
Arnaud Fontaine authored
-
- 27 Aug, 2024 1 commit
-
-
Arnaud Fontaine authored
a17bb910: py2/py3: Make Products code compatible with both python2 and python3.
-
- 26 Aug, 2024 4 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
erp5_syncml: invoke callback method by activity in non split_indexation case as well to make transaction shorter.
-
Kazuhiko Shiozaki authored
-
- 16 Aug, 2024 1 commit
-
-
Romain Courteaud authored
Use the removeProperty method.
-
- 14 Aug, 2024 1 commit
-
-
Jérome Perrin authored
This executes even if setup() encounters an error and the cleanup hook is added when opening the file, not later on. Also, unify makeFileUpload() and makeFilePath() to remove duplicated code. Co-authored-by: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
-
- 13 Aug, 2024 1 commit
-
-
Jérome Perrin authored
See merge request !1979
-
- 12 Aug, 2024 2 commits
-
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
- 07 Aug, 2024 2 commits
-
-
Arnaud Fontaine authored
- {'destination_list': ['person_module/he', 'person_module/me'], + {'destination_list': ['person_module/me', 'person_module/he'],
-
Arnaud Fontaine authored
-
- 06 Aug, 2024 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 02 Aug, 2024 2 commits
-
-
Jérome Perrin authored
-
Arnaud Fontaine authored
-
- 01 Aug, 2024 3 commits
-
-
Rafael Monnerat authored
See merge request !1963
-
Rafael Monnerat authored
-
Rafael Monnerat authored
The script is supposed to be called on portal context (or any context) and not on MailevaSOAPConnector, and it should return a MailevaSOAPConnector for a given reference.
-