Skip to content
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

JSON Listing contains invalid data #37

Open
at88mph opened this issue Apr 25, 2017 · 0 comments
Open

JSON Listing contains invalid data #37

at88mph opened this issue Apr 25, 2017 · 0 comments

Comments

@at88mph
Copy link
Member

at88mph commented Apr 25, 2017

As per JSON.org, numbers may not begin with a zero, but when listing users, some IDs begin with a zero, but are written out as a number datatype.

To reproduce within CADC:

Authenticated request to /ac/users/ with the Accept: application/json header set.
First returned value has identities/$/@type=HTTP numeric value that begins with zero.
The JSON parser in the browser fails to load this, and so we cannot make a proper CORS request.

The username, in this case, needs to be declared as a String.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant