Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
willisplummer opened this issue Sep 16, 2023 · 2 comments

Comments

@willisplummer
Copy link

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
Copy link
Owner

Which version/branch are you seeing this in?

@willisplummer
Copy link
Author

1.7.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants