details: https://code.tryton.org/tryton/commit/18e3230ebd92
branch: default
user: Nicolas Évrard <[email protected]>
date: Tue Oct 28 18:50:24 2025 +0100
description:
Do not use the bus URL when creating the XML-RPC authentication token
Since 5af8d41ce7ce we're also sending the bus URL on the login of the
users.
Closes #14329
diffstat:
proteus/proteus/config.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 933d88b25860 -r 18e3230ebd92 proteus/proteus/config.py
--- a/proteus/proteus/config.py Tue Oct 28 10:57:07 2025 +0100
+++ b/proteus/proteus/config.py Tue Oct 28 18:50:24 2025 +0100
@@ -408,8 +408,8 @@
parameters['password'] = password
server = xmlrpc.client.ServerProxy(
url, allow_none=True, use_builtin_types=True, **kwargs)
- session = server.common.db.login(username, parameters)
- session = ':'.join(map(str, [username] + session))
+ user_id, session, _ = server.common.db.login(username, parameters)
+ session = ':'.join(map(str, [username, user_id, session]))
auth = base64.encodebytes(session.encode('utf-8')).decode('ascii')
auth = ''.join(auth.split()) # get rid of whitespace
kwargs.setdefault('headers', []).append(