Bug #10305
closednew beta of chirp radio reference is not popping
100%
Description
the download from radio reference is not popping up when selected
Files
Updated by Jim Unroe almost 2 years ago
- File 2023-01-22 17_13_37-Query RadioReference.png 2023-01-22 17_13_37-Query RadioReference.png added
- Status changed from New to Feedback
Ricco march wrote:
the download from radio reference is not popping up when selected
I just tried with today's build (CHIRP next-20230122) and it popped up for me (Windows 10 Pro). I don't have a RadioReference account so I can't proceed any further.
Jim KC9HI
Updated by Dan Smith almost 2 years ago
Please attach a debug log per the instructions in How_To_Report_Issues.
Updated by Mark Leigh almost 2 years ago
Traceback (most recent call last):
File "/home/user/PycharmProjects/chirp/chirp/wxui/main.py", line 1349, in _menu_query_rr
self._do_network_query(query_sources.RRQueryDialog)
File "/home/user/PycharmProjects/chirp/chirp/wxui/main.py", line 1340, in _do_network_query
d = query_cls(self, title=_('Query %s') % query_cls.NAME)
File "/home/user/PycharmProjects/chirp/chirp/wxui/query_sources.py", line 152, in __init__
vbox = self.build()
File "/home/user/PycharmProjects/chirp/chirp/wxui/query_sources.py", line 518, in build
value=CONF.get_password('password',
File "/home/user/PycharmProjects/chirp/chirp/wxui/config.py", line 83, in get_password
return base64.b64decode(encoded.encode()).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 1: invalid start byte
It's related to the new (and important) effort to store passwords in something slightly less dicey than plaintext. But for anyone (most users I expect) who have their passwords already stored plaintext, it will not launch the query dialog. Just as proof of confirmation, config.py lines 82 onwards below; this works for me...
try:
return encoded
#return base64.b64decode(encoded.encode()).decode()
except binascii.Error:
# Likely not stored encoded, return as-is
return encoded
Updated by Dan Smith almost 2 years ago
- Assignee set to Dan Smith
Yeah, I'll have a look and see if I can repro.
Updated by Dan Smith almost 2 years ago
Mark, can you look in your chirp.config to see if yours is obfuscated? I'm wondering if your password happens to be valid base64, which is being decoded into binary... that seems like a dumb oversight on my part!
Updated by Mark Leigh almost 2 years ago
It's plaintext in the chirp conf; and the password IS valid base64 :)
Updated by Dan Smith almost 2 years ago
Okay, yeah, that was dumb of me. I'll cook something up. It'll have to break someone, unfortunately :(
Updated by Dan Smith almost 2 years ago
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
Applied in changeset github|d1c2bc74dadd7b17b8909dbb0aa172013023f1c5.