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

Client: ClassCastException on cardinality mismatch #876

Open
chrylis opened this issue Jan 27, 2023 · 0 comments
Open

Client: ClassCastException on cardinality mismatch #876

chrylis opened this issue Jan 27, 2023 · 0 comments

Comments

@chrylis
Copy link

chrylis commented Jan 27, 2023

If a relation is listed in the resource class as single-cardinality, but the server returns an array, Crnk triggers a ClassCastException in ResourceUpsert#setRelationFieldAsync:361 (in 3.4) because it assumes that the value will be a ResourceIdentifier. Ideally, Crnk should be lenient and accept what the server sent; at the very least, it should produce a meaningful error message instead.

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