The structure of the prepared json requires that "type" is a part of the data-value in JsonApiDocumentTopLevelNormalizerTest::testDenormalize(). With the current codebase you receive an error when you select a channel from a server.

CommentFileSizeAuthor
entity_share-prepared_json.patch971 byteslammensj

Comments

LammensJ created an issue. See original summary.

grimreaper’s picture

Assigned: Unassigned » grimreaper
Priority: Major » Critical
Status: Needs review » Reviewed & tested by the community

Hello,

Thank you very much for reporting the bug!!!

With the last dev version of JSONAPI and entity share I have been able to reproduce the bug and the patch fixes it.

Before merging and publishing a new version, I am going to search for the commit in JSONAPI which has introduced this change to know if it is in a dev version or in a tagged release.

  • LammensJ authored 6e752c7 on 8.x-1.x
    Issue #2935309 by LammensJ, Grimreaper: "type" in prepared json
    
grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Reviewed & tested by the community » Fixed

The change that provokes this error was introduced in http://cgit.drupalcode.org/jsonapi/commit/?id=18970c58087b2c8f49d0ef5886....

It is a validation in the deserialization process that was made more strict.

Patch merged. Thanks.

I will try to do #2930801: Support for HTTP authentication before making a new release for entity share.

lammensj’s picture

Glad to be of help :)
Awesome project btw!

grimreaper’s picture

Thanks :)

New release done yesterday as the other issue is postponed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.