-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception Thrown when keys are not in server policy data #7
Comments
Thanks for your interest. Theoretically this should never happen on a live app. (The keys should be in the response, but it is good to cover these cases) Matthew |
I "think" i was, it is hard to say to be honest. |
Well, I hope you can find that reason for the crash, but don't hesitate to open an issue. |
Yeah I figured everything out. Was trying to update my listview on background thread. It only happened in weird timings though. Everything seems to work just fine. These values aren't returned with the custom server response, but I can put a "#if debug" in there to return true. I guess teh odd thing is that the server could returned License, but if the VT isnt' there the Allow() will fail |
To work properly with test responses (no VT), it should be: this.SetValidityTimestamp(extras.ContainsKey("VT") ? extras["VT"] : null ); Otherwise it reports NotAllowed, because VT is Zero (but it should be 1 minute grace period) |
Inside of "ProecessServerResponse" it looks like only the "VT" is there.
I changed it to this in the else:
this.SetValidityTimestamp(extras.ContainsKey("VT") ? extras["VT"] : DefaultValidityTimestamp);
this.SetRetryUntil(extras.ContainsKey("GT") ? extras["GT"] : DefaultRetryUntil);
this.SetMaxRetries(extras.ContainsKey("GR") ? extras["GR"] : DefaultMaxRetries);
The text was updated successfully, but these errors were encountered: