Closed taojing2002 closed 4 years ago
The correct URL param name for both listQuotas()
and listUsages()
is subscribers
(plural). For the first command above, the parameter subscribers
seems to have been ignored by bookkeeper, resulting in no subscribers
being specified. If a subscriber is not specified, the expected behavior is to return all quotas the requestor has rights to see, and for an admin requestor, that is all quotas. So the fix is to use the param name subscribers
.
The second problem relates to to the requestor
param. Bookkeeper was just logging an error for an unknown (to DataONE) id. This has been fixed so that an unknown id causes an exception to be thrown and the service will return
this status and message:
{
"code": 417,
"message": "The requested quotas couldn't be listed: Couldn't retrieve subject from DataONE: 'foo'. org.dataone.service.exceptions.NotFound: [LDAP: error code 32 - No Such Object]"
}
This was fixed in commit fa1d31b1098d286d52b72461a546470e7f95c9f8
I ran this command:
It should return not found status or null quota list. However it returned: