Skip to content

com.contentful.java.cda.CDAEntry#contentType returns incorrect content type due to stale cache #246

@adrian-skybaker

Description

@adrian-skybaker

The client contains an internal cache of content types. This cache becomes stale if the content model is changed, with the result that the com.contentful.java.cda.CDAEntry#contentType method returns an incorrect content type that doesn't align with com.contentful.java.cda.LocalizedResource#rawFields .

It seems like the cache should include the revision of the content type in the cache key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions