Project

General

Profile

Actions

Bug #5707

open

SVN - check case of bytes/string mismatch

Added by Marcin Kuzminski [CTO] about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
23.11.2023
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

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"}

Actions

Also available in: Atom PDF