Milliner createResource breaks when '_format=jsonld' is not removed #1395
Labels
Type: feature request
a proposal for a new feature in the software (should be justified by a ‘use case’)
Milestone
I happened to be installing the Islandora modules on a Drupal site and forgot to enable the 'Remove jsonld parameter' checkbox @
/admin/config/search/jsonld
. When I migrated the islandora tags I saw entries show up in Fedora, so I wasn't concerned. It wasn't until I tried to update them and saw errors pop up in the Karaf log that I discovered something was wrong.Milliner was creating an empty resource and failing to populate it, so when I went to update the resource it didn't have the 'schema:dateModified' Milliner wanted so it threw a 500 error.
Initially I didn't know why Milliner wasn't populating the Fedora resource record until I threw a bunch of debugging log statements throughout the createResource function. Turn out that, without that 'Remove jsonld parameter' enabled, the processJsonld function always returns an empty array, so Milliner simply PUTS nothing. None of this throws an error at creation time, even though this is obviously a problem.
I know that this used to work so I'm not sure when it broke OR if I did something else quirky to cause this, so if someone could reproduce, that would be nice.
The text was updated successfully, but these errors were encountered: