Closed xurizaemon closed 4 weeks ago
GitHub Issue: #1059
Prevent a (not user facing) error when a Media lacks an associated File and /media/123456?_format=jsonld is requested for the Media item.
/media/123456?_format=jsonld
Instead of trying to return an @id with the File URI, we return the existing @id which has come from the Media entity.
@id
$file
Before patch:
After patch:
CC @seth-shaw-asu @Islandora/committers
Is this still a draft or is it ready to test?
I think it's good to test @seth-shaw-asu - thanks!
GitHub Issue: #1059
What does this Pull Request do?
Prevent a (not user facing) error when a Media lacks an associated File and
/media/123456?_format=jsonld
is requested for the Media item.Instead of trying to return an
@id
with the File URI, we return the existing@id
which has come from the Media entity.What's new?
$file
is FALSE, do not overwrite the JSON@id
value with the file URLHow should this be tested?
Before patch:
After patch:
Documentation Status
Additional Notes:
Interested parties
CC @seth-shaw-asu @Islandora/committers