From 129d8a66b6ec5cc3b7a9391007247b2274433e74 Mon Sep 17 00:00:00 2001 From: Jason Moore Date: Thu, 16 Apr 2026 13:59:46 +0800 Subject: [PATCH 1/2] Cipher Update --- ledgergw/management/commands/cba_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledgergw/management/commands/cba_sync.py b/ledgergw/management/commands/cba_sync.py index 2014f6f94..88d8940ba 100644 --- a/ledgergw/management/commands/cba_sync.py +++ b/ledgergw/management/commands/cba_sync.py @@ -40,7 +40,7 @@ def handle(self, *args, **options): print ("removing "+lbf) os.remove(local_bank_directory+lbf) - result = subprocess.check_output('echo "ls '+remote_bank_directory+'" | sftp -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -o StrictHostKeyChecking=no -i /tmp/bank.key '+sftp_username+'@'+sftp_host, shell=True, text=True) + result = subprocess.check_output('echo "ls '+remote_bank_directory+'" | sftp -o Ciphers=aes256-ctr -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -o StrictHostKeyChecking=no -i /tmp/bank.key '+sftp_username+'@'+sftp_host, shell=True, text=True) sftpfiles = result.split("\n") for file in sftpfiles: sftp_file = file.strip() @@ -53,7 +53,7 @@ def handle(self, *args, **options): print ("File already exists not downloading "+file_only) else: print ('downloading file '+file_only) - get_resp = subprocess.check_output('echo "get '+sftp_file+' '+local_bank_directory+'" | sftp -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -o StrictHostKeyChecking=no -i /tmp/bank.key '+sftp_username+'@'+sftp_host, shell=True, text=True) + get_resp = subprocess.check_output('echo "get '+sftp_file+' '+local_bank_directory+'" | sftp -o Ciphers=aes256-ctr -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -o StrictHostKeyChecking=no -i /tmp/bank.key '+sftp_username+'@'+sftp_host, shell=True, text=True) #print (get_resp) os.remove('/tmp/bank.key') except Exception as e: From 5fbbb4e18a69ac96789df10906f8162dcfa355be Mon Sep 17 00:00:00 2001 From: Jason Moore Date: Mon, 20 Apr 2026 19:30:16 +0800 Subject: [PATCH 2/2] Update api.py --- ledgergw/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ledgergw/api.py b/ledgergw/api.py index a2a7d61c7..71fbe57a7 100644 --- a/ledgergw/api.py +++ b/ledgergw/api.py @@ -300,7 +300,8 @@ def update_user_info_id(request, userid,apikey): if 'postal_same_as_residential' in postal_address_obj: if ledger_obj.postal_same_as_residential != postal_address_obj['postal_same_as_residential']: models.EmailUserChangeLog.objects.create(emailuser=ledger_user[0], change_key="postal_same_as_residential", change_value="ledger_api_client_"+api_key_obj_update_key+": " +str(postal_address_obj['postal_same_as_residential']),change_by=ledger_changeuser_obj) - ledger_obj.postal_same_as_residential = ledgergw_utils.remove_html_tags(postal_address_obj['postal_same_as_residential']) + if isinstance(postal_address_obj['postal_same_as_residential'], bool): + ledger_obj.postal_same_as_residential = postal_address_obj['postal_same_as_residential'] ledger_obj.postal_address.save() except Exception as e: @@ -2508,4 +2509,4 @@ def check_oracle_code(request,apikey): # print(traceback.print_exc()) # raise - \ No newline at end of file +