DSpace 7 - You have not the privilege to make a new submission.

414 views
Skip to first unread message

Urban Andersson

unread,
May 4, 2022, 7:24:47 AM5/4/22
to DSpace Community
Hello all,

I have recently set up a DSpace 7 test server, by using data and configs from our live 6.2 instance and got it up and working (almost) fine.

When trying to add a new item as Administrator in one (any) of the collections - New - Item Create a new item in... -  the message "You have not the privilege to make a new submission." is displayed. 

The following response is received by the UI:

{"timestamp":"2022-05-04T10:43:42.493+00:00","status":500,"error":"Internal Server Error","message":"An exception has occurred","path":"/server/api/submission/workspaceitems"}

And the following is logged by the backend in dspace.log:

2022-05-04 10:45:29,829 ERROR 12681462-6c1d-42f8-9557-2f806c58c7ee a069f79e-d60c-4902-9f0c-1f08f96479cf org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An exception has occurred (status:500)
java.lang.IllegalStateException: The submission configration is invalid the processing class for the step collection is not found at org.dspace.app.rest.converter.SubmissionDefinitionConverter.convert(SubmissionDefinitionConverter.java:70) ~[classes/:7.2.1] at org.dspace.app.rest.converter.SubmissionDefinitionConverter.convert(SubmissionDefinitionConverter.java:38) ~[classes/:7.2.1]

...

My guess is that this is somehow related to the migrated submission conf files, but I'm not sure exactly what to look for, or if there could be something else involved here.

DSpace version 7.2.1
O/S: Ubuntu 20.04.4
Java version: openjdk 11.0.15

Any advice or hints would be really appreciated, thanks!

/ Urban A.


Mark H. Wood

unread,
May 4, 2022, 7:48:17 AM5/4/22
to dspace-c...@googlegroups.com
On Wed, May 04, 2022 at 04:02:42AM -0700, Urban Andersson wrote:
> I have recently set up a DSpace 7 test server, by using data and configs
> from our live 6.2 instance and got it up and working (almost) fine.
>
> When trying to add a new item as Administrator in one (any) of the
> collections - New - Item Create a new item in... - the message "You have
> not the privilege to make a new submission." is displayed.
>
> The following response is received by the UI:
>
> {"timestamp":"2022-05-04T10:43:42.493+00:00","status":500,"error":"Internal
> Server Error","message":"An exception has
> occurred","path":"/server/api/submission/workspaceitems"}
>
> And the following is logged by the backend in dspace.log:
>
> 2022-05-04 10:45:29,829 ERROR 12681462-6c1d-42f8-9557-2f806c58c7ee
> a069f79e-d60c-4902-9f0c-1f08f96479cf
> org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An
> exception has occurred (status:500)
> java.lang.IllegalStateException: *The submission configration is invalid
> the processing class for the step collection is not found* at
> org.dspace.app.rest.converter.SubmissionDefinitionConverter.convert(SubmissionDefinitionConverter.java:70)
> ~[classes/:7.2.1] at
> org.dspace.app.rest.converter.SubmissionDefinitionConverter.convert(SubmissionDefinitionConverter.java:38)
> ~[classes/:7.2.1]
>
> ...
>
> My guess is that this is somehow related to the migrated submission conf
> files, but I'm not sure exactly what to look for, or if there could be
> something else involved here.
>
> DSpace version 7.2.1
> O/S: Ubuntu 20.04.4
> Java version: openjdk 11.0.15

I would look in config/item-submission.xml for the <step-definition
id="collection"/> element. Looking at the code, I think that the
step-definition exists but its <processing-class/> is incorrect.
SubmissionDefinitionConverter.convert() got a ClassNotFoundException
when it applied Class.forName() to the value of that element.

If the processing-class is correct, then there must be no such class
visible on the classpath.

The exception message ought to quote the step name ("collection" in
this case) to make the meaning of the exception clearer. It is
showing the 'id' of the <step-definition/>.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Urban Andersson

unread,
May 4, 2022, 8:49:02 AM5/4/22
to DSpace Community
The processing-class specified for step "collection" in my item-submission.xml did not exist - wrong name and path. Not sure why, I might have done something when the old conf files were migrated.
After adding the correct class manually (and rebuilding the backend) it works fine.

Many thanks for your quick response and for pointing me in the right direction!

/ Urban
 
Reply all
Reply to author
Forward
0 new messages