Skip to content

Client: ClassCastException on cardinality mismatch #876

Description

@chrylis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions