Commit 6faffa8
fix: add_member posts the canonical /eperson/epersons/ href (review)
Code review caught that add_member built the eperson uri-list body as
`{API}/epersons/{uuid}`, dropping the `/eperson` path segment - the canonical
href (used elsewhere in this file, e.g. get_user_by_email) is
`/eperson/epersons/{uuid}`. The bare path does not resolve, so DSpace rejects
the membership POST with 422 and add_member returns False.
The new test asserted the malformed URI, pinning the bug. Corrected the URI in
add_member and the assertion, and marked the test dtq_only: the fix lands on
dtq while main still emits the old path, so it is deselected on the main leg of
the differential-contract job.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f49d0ee commit 6faffa8
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1294 | 1296 | | |
1295 | 1297 | | |
1296 | 1298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
| 179 | + | |
174 | 180 | | |
175 | | - | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
0 commit comments