# HG changeset patch # User John Rouillard # Date 1659857615 14400 # Node ID b04e44db7d8d38964551f9730628748ebaa4e7ee # Parent 9811073b289eeb1ff759a1c850cd0d730dd0fa08 Modify unique token to use url safe characters. Looks like the merge of the methods I chose cause url unsafe / to be emitted sometimes. This causes poe post to fail as the url includes the key and the / messes up the rest route url parsing code. diff -r 9811073b289e -r b04e44db7d8d roundup/backends/sessions_common.py --- a/roundup/backends/sessions_common.py Sun Aug 07 02:45:08 2022 -0400 +++ b/roundup/backends/sessions_common.py Sun Aug 07 03:33:35 2022 -0400 @@ -41,10 +41,10 @@ return self.__logger def getUniqueKey(self, length=40): - otk = b2s(base64.b64encode( + otk = b2s(base64.urlsafe_b64encode( random_.token_bytes(length))).rstrip('=') while self.exists(otk): - otk = b2s(base64.b64encode( + otk = b2s(base64.urlsafe_b64encode( random_.token_bytes(length))).rstrip('=') return otk