Skip to content

Bulk Access Management processes are executable without selecting any options in step 2 #3893

@maxsullivan

Description

@maxsullivan

Describe the bug

Dspace version 7.6.2

A user can execute a bulk access management process when they have selected any item in step 1 without having selected an operation in step 2.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the bulk access management page and select an item or collection in step 1.
  2. Skip step 2 and execute the process.
  3. The process will start and then fail.

2025-01-24 11:01:38.076 INFO bulk-access-control - 36 @ The script has started
2025-01-24 11:01:38.102 ERROR bulk-access-control - 36 @ item or bitstream node must be provided
2025-01-24 11:01:38.103 ERROR bulk-access-control - 36 @ null
2025-01-24 11:01:38.109 ERROR bulk-access-control - 36 @ org.dspace.app.bulkaccesscontrol.exception.BulkAccessControlException: item or bitstream node must be provided
	at org.dspace.app.bulkaccesscontrol.BulkAccessControl.validate(BulkAccessControl.java:209)
	at org.dspace.app.bulkaccesscontrol.BulkAccessControl.internalRun(BulkAccessControl.java:183)
	at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Expected behavior

The Execute button should not be active until the user has selected an operation in step 2.

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions