You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If organization name passed in TransferCredential RPC is not a name of saved organization ("org1"), dlogMap["p"] returns nil, which causes panic: interface conversion: interface {} is nil, not string here:
I assume the same would happen on other functions loading configuration parameters.
I suggest checking if the organization exists, returning nil, and handling that in higher functions as well, so that the server returns a request error.
I have some work under way that will check for these sorts of errors when invalid configuration is passed; this concerns the way in which configuration will be handled in general, not only for this particular case.
In addition, as discussed offline, it probably doesn't make sense for the same verifier to support multiple organizations, as each verifier runs on behalf of a single organization, so all references to organization names will also be removed.
If organization name passed in TransferCredential RPC is not a name of saved organization ("org1"),
dlogMap["p"]
returns nil, which causespanic: interface conversion: interface {} is nil, not string
here:emmy/config/config.go
Line 114 in ee2f257
I assume the same would happen on other functions loading configuration parameters.
I suggest checking if the organization exists, returning nil, and handling that in higher functions as well, so that the server returns a request error.
The issue can be reproduced with the demo Android app pushed here:
https://github.com/zitnik/emmy-demo-android/tree/invalid-org-test
The text was updated successfully, but these errors were encountered: