[DuraSpace JIRA] (DS-3281) Submission made via REST API does not trigger collection workflow approval process.

0 views
Skip to first unread message

Emilio Lorenzo (DuraSpace JIRA)

unread,
Aug 3, 2016, 12:35:01 PM8/3/16
to dspace-...@googlegroups.com
Emilio Lorenzo created an issue
 
DSpace / Bug DS-3281
Submission made via REST API does not trigger collection workflow approval process.
Issue Type: Bug Bug
Affects Versions: 5.5
Assignee: Unassigned
Components: REST API
Created: 03/Aug/16 11:34 AM
Priority: Minor Minor
Reporter: Emilio Lorenzo

Submisisions made through REST API (POST/item method) don´t get into workflow-approvals

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.0.0#70107-sha1:6cd5e8d)
Atlassian logo

Adan Roman (DuraSpace JIRA)

unread,
Aug 4, 2016, 2:51:00 AM8/4/16
to dspace-...@googlegroups.com

Adan Roman (DuraSpace JIRA)

unread,
Aug 4, 2016, 2:53:00 AM8/4/16
to dspace-...@googlegroups.com

Martin Walk (DuraSpace JIRA)

unread,
Aug 4, 2016, 5:17:00 AM8/4/16
to dspace-...@googlegroups.com
Martin Walk commented on Bug DS-3281

I applied the patch to a DSpace 5.5 release and it works as expected.

If a collection approval workflow is defined, the items placed in the collection via REST API do trigger the workflow,
if no workflow is defined for a collection, items added via REST API are archived immediately.

Thank you very much!
Best regards,
Martin Walk.

Martin Walk (DuraSpace JIRA)

unread,
Aug 4, 2016, 7:12:00 AM8/4/16
to dspace-...@googlegroups.com
Martin Walk commented on Bug DS-3281

There should perhaps be an option - as with the command line importers - to send a submission through the collection's workflow or to bypass the workflow?
I can see usage scenarios for both options.

Adan Roman (DuraSpace JIRA)

unread,
Aug 4, 2016, 10:20:01 AM8/4/16
to dspace-...@googlegroups.com
Adan Roman commented on Bug DS-3281

Perhaps if the rest user is administrator. Normal user should follow workflows.

Adan Roman (DuraSpace JIRA)

unread,
Aug 4, 2016, 10:23:00 AM8/4/16
to dspace-...@googlegroups.com

Adan Roman (DuraSpace JIRA)

unread,
Aug 4, 2016, 10:27:01 AM8/4/16
to dspace-...@googlegroups.com
Adan Roman updated an issue
Change By: Adan Roman
Comment:
Perhaps if the rest user is administrator. Normal user should follow workflows.

Tim Donohue (DuraSpace JIRA)

unread,
Feb 22, 2017, 11:40:00 AM2/22/17
to dspace-...@googlegroups.com
Tim Donohue updated an issue

Flagging as "needs volunteer" as we'd need a volunteer to turn the attached patch into a GitHub Pull Request: https://wiki.duraspace.org/display/DSPACE/Code+Contribution+Guidelines

Change By: Tim Donohue
Status: Received Volunteer Needed

Tim Donohue (DuraSpace JIRA)

unread,
Feb 22, 2017, 11:40:00 AM2/22/17
to dspace-...@googlegroups.com

Adan Roman (DuraSpace JIRA)

unread,
Feb 25, 2017, 7:52:00 AM2/25/17
to dspace-...@googlegroups.com

Anonymous (DuraSpace JIRA)

unread,
Feb 25, 2017, 8:07:01 AM2/25/17
to dspace-...@googlegroups.com
Issue was automatically transitioned when Arvo Consultores y Tecnología. S.L created pull request #1657 in GitHub
 
Change By: Arvo Consultores y Tecnología. S.L
Status: Volunteer Code Review  Needed

Tim Donohue (DuraSpace JIRA)

unread,
Mar 8, 2017, 1:40:00 PM3/8/17
to dspace-...@googlegroups.com
Tim Donohue commented on Bug DS-3281
 
Re: Submission made via REST API does not trigger collection workflow approval process.

While I agree this is a bug, I'm now rethinking whether the proposed solution is enough. There also is currently not a way to progress an item through the workflow process via the REST API (which is likely why, when it was created, the REST API didn't involve the workflow process). So, if you place the item into Workflow via the REST API, you must wait until it is approved by some other means.

I suspect this may be part of the larger issue that our REST API is just lacking in features. This is something that we are / will be working to resolve at a much larger scale in DSpace 7, see https://wiki.duraspace.org/display/DSPACE/DSpace+7+UI+Working+Group

Martin Walk (DuraSpace JIRA)

unread,
Mar 9, 2017, 8:14:01 AM3/9/17
to dspace-...@googlegroups.com
Martin Walk commented on Bug DS-3281

The intended use in our case was not to provide an alternative UI on top of the REST API, but to allow submissions from other systems to DSpace (e.g. provide a possibilty to submit a release of a GitHub project, submit a publication from another publication system, etc.) via the REST API and then accept or reject the submission through the regular submission review workflow from the regular DSpace UIs by our curators.

Another solution might be to provide a flag that decides whether the submission via REST API is published straight away or is added to the submission review process.

I agree though, that this is less pressing now, as DSpace 7 will probably provide a solution for it.

Martin Walk (DuraSpace JIRA)

unread,
Mar 22, 2017, 9:37:00 AM3/22/17
to dspace-...@googlegroups.com
Martin Walk commented on Bug DS-3281

Is there a possible security issue, where someone could place an item directly in a collection, while bypassing the approval workflow?

Tim Donohue (LYRASIS JIRA)

unread,
Aug 4, 2021, 3:58:01 PM8/4/21
to dspace-...@googlegroups.com
Tim Donohue updated an issue
Change By: Tim Donohue
Security: Requires Login
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages