Problem which required this fix is that enrollment exception error messages from the server contain enrollment ids which contain hyphens, and the messages were therefore being truncated
- What I did
fix: Fix handling of non-json-formatted error responses in AtLookupImpl so error message isn't truncated if it contains a hyphen
test: Add two test cases (json format and legacy format) testing error handling
fix: if we ever (which we should not) get an error: response which isn't json and doesn't look like $errorCode-$errorDescription then take the full response and add it to the error description rather than only saying "Unknown server error"
Problem which required this fix is that enrollment exception error messages from the server contain enrollment ids which contain hyphens, and the messages were therefore being truncated
- What I did
error:
response which isn't json and doesn't look like$errorCode-$errorDescription
then take the full response and add it to the error description rather than only saying "Unknown server error"- How I did it See commits
- How to verify it