You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(client): fail-safe get_bitstreams + None on failed create_item/bundle
Review follow-ups, each confirmed by the tests:
- get_bitstreams: a 404 now returns [] (a gone bundle has no bitstreams),
mirroring the get_bundles #16 fix; other errors still surface so a transient
5xx is retried, not swallowed; a 200 with no bitstreams returns [] not None.
The consumers (export/_dspace, reposync/_files) iterate the result unguarded.
- create_item / create_bundle: return None on a non-2xx response instead of a
truthy uuid-less object, so the importer's `if dso is None` / `if not bundle`
guards actually fire.
Also addresses the Copilot review: the multipart_properties test helper now
asserts the 'properties' part exists (fails loudly) instead of returning None.
Tests updated to assert the new behavior. 62 tests, no network.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments