-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
Hi!
Trying to use the Import feature to create new shared folders in Keeper Cloud, but it keeps returning the following error: Incorrect AES key length (86 bytes)
I initially thought it was my code, so I did a JSON dump of an existing folder/record set, deleted those records, and then tried to import the dumped JSON as-is, and I got the same error.
Steps followed:
keeper shell
[login using non-SSO Keeper Administrator]
export --format json keeper_export.json
import --format json keeper_export.json
Incorrect AES key length (86 bytes)
This happens whether I do the import command as a one line (i.e: keeper --user someuser --password somepassword import --format json somefilepath.json) or whether I log into keeper shell and trigger the import from there.
This is the Python code I'm using for reference:
#!/usr/bin/python3
import os
import subprocess
import json
folders = ['SomeFolderName', 'SomeOtherName', 'Potato', 'Potahto']
filepath = "keeper_new_folder.json"
for folder in folders:
try:
os.remove(filepath)
except:
print("File not exist, cannot delete")
data = {}
data['shared_folders'] = []
data['shared_folders'].append({
'path': folder,
'manage_users': 'true',
'manage_records': 'true',
'can_edit': 'true',
'can_share': 'true',
'permissions': [
{
'name': 'SG.SLTECH.DEVOPS',
'uid': 'Ce6tm32Po81z3Y2zK5Wd3A',
'manage_users': 'true',
'manage_records': 'true'
}
]
})
with open (filepath, 'w') as outfile:
json.dump(data, outfile)
subprocess.call(["keeper", "--user", "some-non-SSO-user", "--password", "somepassword", "import", "--format", "json", filepath])
Environment information:
- Python v3.6.8 (Ubuntu) & 3.7.3 (Windows)
- OS: Ubuntu 18.04.x LTS running on Windows 10 WSL v1 & Powershell 5.1.17134 running on Windows 10 18.03
- Keeper commander v4.12
Thanks!
Metadata
Metadata
Assignees
Labels
No labels