Skip to content

Commit

Permalink
LastPass import issues. KC-795
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed Jul 12, 2024
1 parent 61c909e commit 9b0c3fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions keepercommander/importer/imp_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@ def _import(params, file_format, filename, **kwargs):
if 1000000000 < ts < 2000000000:
dt = datetime.datetime.fromtimestamp(ts, tz=datetime.timezone.utc)
modification_time = dt.astimezone().strftime('%x %X')

table.append([record_folder, import_record.title, import_record.login, import_record.login_url,
modification_time, existing_record.get('record_uid') if existing_record else ''])
continue
Expand Down Expand Up @@ -1073,7 +1072,7 @@ def _import(params, file_format, filename, **kwargs):
audit_uids.append(import_record.uid)

if dry_run:
base.dump_report_data(table, header)
base.dump_report_data(table, header, column_width=40)
return

for v3_add_rq in records_v3_to_add:
Expand Down
7 changes: 6 additions & 1 deletion keepercommander/importer/lastpass/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ def parse_ACCT(chunk, encryption_key, shared_folder):
group = decode_aes256_plain_auto(read_item(io), encryption_key).decode('utf-8', 'ignore')
except:
pass
url = decode_hex(read_item(io))
url_enc = read_item(io)
if url_enc:
if url_enc[0] == ord('!'):
url = decode_aes256_plain_auto(url_enc, encryption_key)
else:
url = decode_hex(url_enc)
notes = decode_aes256_plain_auto(read_item(io), encryption_key)
# fav, ?
skip_item(io, 2)
Expand Down

0 comments on commit 9b0c3fc

Please sign in to comment.