##// END OF EJS Templates
fix(svn): fixed txn_id extraction from the data buffer....
super-admin -
r5199:2548bbeb default
parent child Browse files
Show More
@@ -599,13 +599,13 b' class SimpleVCS(object):'
599 also handles the locking exceptions which will be triggered when
599 also handles the locking exceptions which will be triggered when
600 the first chunk is produced by the underlying WSGI application.
600 the first chunk is produced by the underlying WSGI application.
601 """
601 """
602
602 txn_id = ''
603 txn_id = ''
603 if 'CONTENT_LENGTH' in environ and environ['REQUEST_METHOD'] == 'MERGE':
604 if 'CONTENT_LENGTH' in environ and environ['REQUEST_METHOD'] == 'MERGE':
604 # case for SVN, we want to re-use the callback daemon port
605 # case for SVN, we want to re-use the callback daemon port
605 # so we use the txn_id, for this we peek the body, and still save
606 # so we use the txn_id, for this we peek the body, and still save
606 # it as wsgi.input
607 # it as wsgi.input
607 data = environ['wsgi.input'].read()
608 data: str = safe_str(environ['wsgi.input'].getvalue())
608 environ['wsgi.input'] = io.StringIO(data)
609 txn_id = extract_svn_txn_id(self.acl_repo_name, data)
609 txn_id = extract_svn_txn_id(self.acl_repo_name, data)
610
610
611 callback_daemon, extras = self._prepare_callback_daemon(
611 callback_daemon, extras = self._prepare_callback_daemon(
General Comments 0
You need to be logged in to leave comments. Login now