[ 
http://jira.dspace.org/jira/browse/DS-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Wood closed DS-480.
------------------------


> Exception is thrown when removing the last file after the item is rejected 
> during review.
> -----------------------------------------------------------------------------------------
>
>                 Key: DS-480
>                 URL: http://jira.dspace.org/jira/browse/DS-480
>             Project: DSpace 1.x
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.5.2
>            Reporter: Flávio Botelho
>            Assignee: Mark Wood
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: problem_primary_removing_all_files.patch
>
>
> If a submission is rejected during revision, then the submitter will trigger 
> an exception if he marks all files to be removed while marking one of them to 
> change to primary:
> java.lang.ArrayIndexOutOfBoundsException: 0
>       at org.dspace.submit.step.UploadStep.doProcessing(UploadStep.java:323)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
>       at 
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
>       at 
> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
>       at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
>       at 
> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
>       at 
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
>       at 
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
>       at 
> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
>       at org.mozilla.javascript.Context.call(Context.java:538)
>       at 
> org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833)
>       at 
> org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1803)
>       at 
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:698)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:94)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:82)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81)
>       at 
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239)
>       at 
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:186)
>       at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:260)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:107)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:87)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
>       at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81)
>       at 
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239)
>       at 
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:186)
>       at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:260)
>       at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:107)
> .....

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to