collectiveaccess / providence

Cataloguing and data/media management application
GNU General Public License v3.0
290 stars 166 forks source link

ItemService error when attempting to access ca_object_representations bundle from GET ca_objects #1504

Open willisplummer opened 9 months ago

willisplummer commented 9 months ago

I'm trying to make a GET request to /service.php/item/ca_objects/id/{id} with the following body:

{
    "bundles": {
         "ca_object_representations.media.h264_hi.url": true,
    }
}

I get the following response:

<br />
<b>Warning</b>:  array_values() expects parameter 1 to be array, string given in <b>/var/www/providence/app/lib/Service/ItemService.php</b> on line <b>141</b><br />
<br />
<b>Warning</b>:  array_merge(): Argument #2 is not an array in <b>/var/www/providence/app/lib/Service/ItemService.php</b> on line <b>141</b><br />
{
    "ok": true,
    "display_label": {}
}

I'm able to access the same bundle successfully from /service.php/browse/ca_objects and other bundles like "ca_objects.date.dates_value": true do work as expected from the GET item/ca_objects/id/{id} endpoint

collectiveaccess commented 9 months ago

Which version/branch are you seeing this in?

willisplummer commented 9 months ago

1.7.8