If node is missing in t_adm_node table, the API seems to produce different error depending on the user privilege status, two examples below for a node not in the table:
when I am trying to upload ( no roles for this node in SiteDb) ,I get "unknown node" error [1].
when a real site admin tries to upload with a valid certificate, he gets "not authorized" error, [2] .
[1]
upload parameter: node ==> T2_PL_Swierk
total number of records: 14
Error from server 400(Bad Request), output below:
%HTTP-ERROR%#400#Unknown node.\n
exiting after failure
[2]
total number of records: 1493
Error from server 400(Bad Request), output below:
You are not authorised to approve data to node T2_PL_Swierk.\n
exiting after failure
If node is missing in t_adm_node table, the API seems to produce different error depending on the user privilege status, two examples below for a node not in the table:
[1] upload parameter: node ==> T2_PL_Swierk total number of records: 14 Error from server 400(Bad Request), output below: %HTTP-ERROR%#400#Unknown node.\n exiting after failure
[2] total number of records: 1493 Error from server 400(Bad Request), output below: You are not authorised to approve data to node T2_PL_Swierk.\n exiting after failure