Form import doesn't work.

Created on 4 September 2024, 4 months ago

Problem/Motivation

I do not recall this ever working but my client swears that it used to. It is hard to say that it is the import that doesn't work when looking at the export:

{"form":{"_links":{"self":{"href":"https:\/\/dev.example.com\/admin\/structure\/fillpdf\/50?_format=hal_json"},"type":{"href":"https:\/\/dev.example.com\/rest\/type\/fillpdf_form\/fillpdf_form"},"https:\/\/dev.example.com\/rest\/relation\/fillpdf_form\/fillpdf_form\/file":[{"href":"https:\/\/dev.example.com\/system\/files\/fillpdf\/Individual-POI-acord_7.pdf"}]},"fid":[{"value":50}],"uuid":[{"value":"bf62a64e-8fc7-4d6e-96c3-2e0a4fafc4a0"}],"_embedded":{"https:\/\/dev.example.com\/rest\/relation\/fillpdf_form\/fillpdf_form\/file":[{"_links":{"self":{"href":"https:\/\/dev.example.com\/system\/files\/fillpdf\/Individual-POI-acord_7.pdf"},"type":{"href":"https:\/\/

it does seem odd that the export is full of absolute references.

But when importing i get this fatal error:

Symfony\Component\Serializer\Exception\UnexpectedValueException: Type https://dev.example.com/rest/type/fillpdf_form/fillpdf_form does not correspond to an entity on this site. in Drupal\hal\Normalizer\ContentEntityNormalizer->getTypedDataIds() (line 264 of E:\www\Noah\SpecialtyD8\web\modules\contrib\hal\src\Normalizer\ContentEntityNormalizer.php).

which seems like it should cause an error because why would: "https://dev.example.com/rest/type/fillpdf_form/fillpdf_form" be an entity type?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.1

Component

Code

Created by

🇨🇦Canada liquidcms

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024