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
{{ message }}
Repository navigation
Commit 2a95b6f
Browse filesBrowse the repository at this point in the historyBrowse files
Characterization-tested fixes (test written to the intended behaviour first,
then the method corrected) to methods the main-lineage consumers call:
get_bundle_by_name / get_items_from_collection / get_resource_policy
non-200 or empty body -> clean None/[] instead of a NoneType subscript
crash; get_resource_policy also records last_err so a caller can tell an
HTTP error from a genuine empty result.
get_user_by_email 404/any non-200 -> None (+ last_err), not a truthy
uuid-less User that slips past a consumer `if user:` guard.
create_submit_group 201 with an empty body -> None, not Group(None).
add_member post the canonical /eperson/epersons/{uuid} href;
the bare /epersons/ path 404s and DSpace rejects the uri-list.
Group(None) / User(None) empty object, not a TypeError.
get_owningCollection (dtq-only) non-200 -> None + last_err, so ISstag's
src/repo/_audit.py `owning_col is None and last_err.status_code == 401`
reauth retry stops being dead code.
Stacked on the test/CI PR, which supplies the _helpers builders, pytest.ini
markers and the differential-contract job these tests run under. Merge that
PR first. The failure-mode assertions are marked dtq_only (deselected on the
main leg): main carries the same bugs, but propagating these fixes to main is
deliberately out of scope here.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments