Opened 15 years ago
Closed 15 years ago
#57 closed defect (fixed)
Save host key to file 'None'
Reported by: | Antoine Martin | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | critical | Milestone: | 0.9 |
Component: | Client | Keywords: | |
Cc: |
Description
2010/08/01 06:17:22 ServerConnection.save_host_key(ServerConfig(DesktopOnline)) to file 'None' Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/shifter/ui/ui_util.py", line 326, in <lambda> dialog.connect('response', lambda x,y: self.ask_response_callback(x,y,cancel_callback, ok_callback)) File "/usr/local/lib/python2.6/dist-packages/shifter/ui/ui_util.py", line 333, in ask_response_callback ok_callback() File "/usr/local/lib/python2.6/dist-packages/shifter/client/server_connection.py", line 391, in trust_server self.save_host_key(self.server_link.server) File "/usr/local/lib/python2.6/dist-packages/shifter/client/server_connection.py", line 409, in save_host_key save_binary_file(filename, data) File "/usr/local/lib/python2.6/dist-packages/shifter/util/file_io.py", line 263, in save_binary_file assert filename AssertionError
Note: See
TracTickets for help on using
tickets.
this could happen when we connect to a new server for which we do not have the server.ID
fix this by always validating the server.ID (part of set_host_info) and set it if not present. All this is done before saving the host key file.
see: r1456