Skip to content

Contract for findItemsWithEdit search method#210

Open
ybnd wants to merge 2 commits into
DSpace:mainfrom
ybnd:editable-items-endpoint
Open

Contract for findItemsWithEdit search method#210
ybnd wants to merge 2 commits into
DSpace:mainfrom
ybnd:editable-items-endpoint

Conversation

@ybnd

@ybnd ybnd commented Dec 23, 2022

Copy link
Copy Markdown
Member

This search method was added in DSpace/DSpace#8616 to support the edit Item modal.

@tdonohue tdonohue self-requested a review January 5, 2023 15:32

@abollini abollini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks it almost aligns with other search methods in the collection endpoint, just a small comment to restrict it to authenticated user

Comment thread items.md

@tdonohue tdonohue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ybnd and @KoenP : This looks good overall, but the new endpoint needs to be only available to logged in Users. See @abollini 's comment & mine below.

Comment thread items.md
@ybnd

ybnd commented Jan 24, 2023

Copy link
Copy Markdown
Member Author

@tdonohue @abollini added the HTTP 401 response, REST PR will be updated soon.

Note that the very similar Collection findSubmitAuthorized* methods aren't limited to authenticated users either. Maybe they should be too?

@tdonohue tdonohue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @ybnd ! This looks good now.

(Regarding the other similar methods, I'd anticipate they likely also should require authentication. So, that would sound like a bug to me, unless there's a documented reason why they are public endpoints. It's likely not a real security issue, since they should always return no permissions for anonymous users, but it does sound like a bug.)

@tdonohue tdonohue added this to the 7.5 milestone Jan 24, 2023
@tdonohue tdonohue removed this from the 7.5 milestone Feb 21, 2023
@tdonohue tdonohue added the work in progress PR is still being worked on & is not currently ready for review label Apr 5, 2023

@abollini abollini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ybnd my feedback as been addressed.
@tdonohue the discussion about the collection endpoint is of course out-of-scope of this PR but I like to anticipate that imho it is not a bug. We have had a use case some year ago where an institution allow anonymous deposit, it may be not supported out-of-box right now but it could be valid. Of course in a such scenario the Institution should have a validation workflow inplace

@github-actions github-actions Bot added the merge conflict PR has a merge conflict that needs resolution label Mar 4, 2024
@github-actions

github-actions Bot commented Mar 4, 2024

Copy link
Copy Markdown

Hi @ybnd,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

@github-actions github-actions Bot removed the merge conflict PR has a merge conflict that needs resolution label May 9, 2024
@tdonohue tdonohue moved this to ❓ Stalled/On Hold in DSpace 10.0 Release May 16, 2025
@github-actions github-actions Bot added the merge conflict PR has a merge conflict that needs resolution label Feb 5, 2026
@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown

Hi @ybnd,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

@lgeggleston lgeggleston moved this to ❓ Stalled/On Hold in DSpace 11.0 Release Jun 3, 2026
@github-project-automation github-project-automation Bot moved this from ❓ Stalled/On Hold to 👍 Reviewer Approved in DSpace 11.0 Release Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge conflict PR has a merge conflict that needs resolution work in progress PR is still being worked on & is not currently ready for review

Projects

Status: 👍 Reviewer Approved

Development

Successfully merging this pull request may close these issues.

4 participants