Change By: Ivan Masár (14/Oct/13 1:04 PM)
Description: 1) edit an item
2) Authorizations...
3) Add a new [anything] policy
4) Save the form without specifying anything in "Select the action:" (both radio buttons are unchecked by default)

Expected result (as in 1.8.x):
"* No action selected" message is displayed, form is left open

Actual result (in 3.x and 4.x):
The following stacktrace is thrown:

org.mozilla._javascript_.EvaluatorException: Can't find method org.dspace.app.xmlui.aspect.administrative.FlowAuthorizationUtils.processEditPolicy(org.dspace.core.Context,number,java.lang.String,number,java.lang.String,org.mozilla._javascript_.Undefined,java.lang.String,java.lang.String,java.lang.String,java.lang.String). (resource://aspects/Administrative/administrative.js#2318)


The reason of this error is that an "org.mozilla._javascript_.Undefined" value is passed in the actionID parameter. Because this is a regression, it's worth checking how the old code handled this. This was probably added with Advanced Embargo (DS-895, https://github.com/DSpace/DSpace/pull/43).


https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/FlowAuthorizationUtils.java#L115

https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-xmlui/src/main/resources/aspects/Administrative/administrative.js#L2318
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to