Bug #5707
openSVN - check case of bytes/string mismatch
0%
Description
Vladimir pointed out an issue while porting to k8s cluster. Here are the relevant errors seen:
{"timestamp": "2023-11-22T13:25:31.740566+00:00", "levelname": "ERROR", "name": "rhodecode.lib.middleware.simplevcs", "message": "", "req_id": "6b635215-fbdd-4b1d-ab54-3300417d5a71"}
{"timestamp": "2023-11-22T13:25:31.740832+00:00", "levelname": "ERROR", "name": "rhodecode.lib.middleware.simplevcs", "message": "b'<?xml version=\"1.0\" encoding=\"utf-8\"?>/test/test-svn/!svn/txn/0-g/D:href/D:source/D:prop/D:merge'", "req_id": "6b635215-fbdd-4b1d-ab54-3300417d5a71"}
{"timestamp": "2023-11-22T13:25:31.741216+00:00", "levelname": "ERROR", "name": "rhodecode.lib.middleware.simplevcs", "message": "Exception while handling request", "req_id": "6b635215-fbdd-4b1d-ab54-3300417d5a71", "exc_info": "Traceback (most recent call last):\n File \"/home/rhodecode/venv/lib/python3.11/site-packages/pyramid/tweens.py\", line 41, in excview_tween\n response = handler(request)\n File \"/home/rhodecode/venv/lib/python3.11/site-packages/pyramid/router.py\", line 169, in handle_request\n raise HTTPNotFound(msg)\npyramid.httpexceptions.HTTPNotFound: /test/test-svn\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/rhodecode/venv/lib/python3.11/site-packages/rhodecode/lib/middleware/simplevcs.py\", line 395, in call\n return self._handle_request(environ, start_response)\n File \"/home/rhodecode/venv/lib/python3.11/site-packages/rhodecode/lib/middleware/simplevcs.py\", line 586, in _handle_request\n return self._generate_vcs_response(\n File \"/home/rhodecode/venv/lib/python3.11/site-packages/rhodecode/lib/middleware/simplevcs.py\", line 100, in wrapper\n init = next(gen)\n \n File \"/home/rhodecode/venv/lib/python3.11/site-packages/rhodecode/lib/middleware/simplevcs.py\", line 610, in _generate_vcs_response\n environ['wsgi.input'] = io.StringIO(data)\n initial_value must be str or None, not bytes"}
Updated by Marcin Kuzminski [CTO] 12 months ago
- Status changed from In Progress to Resolved