Problem: OX-Connector can not process json with more than 100000 users

Problem:

The ox-connector can not process a json file, and shows this message in logfile /var/log/univention/listener_modules/ox-connector.log

2023-06-08 07:31:23 WARNING During handling of the above exception, another exception occurred:
2023-06-08 07:31:23 WARNING
2023-06-08 07:31:23 WARNING Traceback (most recent call last):
2023-06-08 07:31:23 WARNING   File "/tmp/univention-ox-connector.listener_trigger", line 324, in run_on_files
2023-06-08 07:31:23 WARNING     f(obj)
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/__init__.py", line 108, in run
2023-06-08 07:31:23 WARNING     modify_group(new_obj)
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/groups.py", line 136, in modify_group
2023-06-08 07:31:23 WARNING     group.modify()
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/soap/backend.py", line 180, in modify
2023-06-08 07:31:23 WARNING     self.service(self.context_id).change(obj)
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/soap/services.py", line 431, in change
2023-06-08 07:31:23 WARNING     return self._call_ox('change', grp=grp)
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/soap/services.py", line 163, in _call_ox
2023-06-08 07:31:23 WARNING     return getattr(service, func)(**kwargs)
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/zeep/proxy.py", line 46, in __call__
2023-06-08 07:31:23 WARNING     return self._proxy._binding.send(
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send
2023-06-08 07:31:23 WARNING     return self.process_reply(client, operation_obj, response)
2023-06-08 07:31:23 WARNING   File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 206, in process_reply
2023-06-08 07:31:23 WARNING     raise TransportError(
2023-06-08 07:31:23 WARNING zeep.exceptions.TransportError: Server returned response (413) with invalid XML: Invalid XML content received (Space required after the Public Identifier, line 1, column 50).
2023-06-08 07:31:23 WARNING Content: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>413 Request Entity Too Large</title>\n</head><body>\n<h1>Request Entity Too Large</h1>\nThe requested resource<br />/webservices/OXGroupService<br />\ndoes not allow request data with POST requests, or the amount of data provided in\nthe request exceeds the capacity limit.\n</body></html>\n'
2023-06-08 07:31:23 INFO    This is consecutive error #162

Investigation:

The message means, that the requested resource /webservices/OXGroupService does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

Solution:

The external OX Server has to be adjusted, to increase threshold for content length.

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Mastodon