FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
649 stars 166 forks source link

API: systemUsers inconsistencies #333

Closed brothercorvo closed 2 years ago

brothercorvo commented 2 years ago

ManageSystemUser/putSystemUser', methods=["PUT"] '/SystemUser/postSystemUser', methods=["POST"]) ('/SystemUser/deleteSystemUser', methods=["DELETE"]) SystemUser/getSystemUser is missing

if I use the post 'SystemUser/postSystemUse' with { "systemUsers":[ {"Name":'dan', "Group":'Yellow', "Token":'token', "Password": 'psw1', "Certs":'true','DeviceType':'mobile' } ] }

I get an error 500 JSON object must be str, bytes or bytearray, not dict

brothercorvo commented 2 years ago

@naman108 calling

/ManageSystemUser/postSystemUser

returns [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/FreeTAKServer/certs/ClientPackages/UserName5d4f0d5a-563a-45f8-95a5-06eab12e31de.zip'

the relative pem, p12 and key files are created but the process is interrupted

regular user creation over SocketIO works

brothercorvo commented 2 years ago

solved in 1.9.9.4