History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SAK-11116
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Huong Nguyen
Reporter: Karen Tsao
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Sakai

Creating questions with multiple correct answers is throwing an exception

Created: 13-Aug-2007 13:56   Updated: 23-Oct-2008 07:46
Component/s: Tests & Quizzes (Samigo)
Affects Version/s: 2.4.0, 2.4.1
Fix Version/s: 2.5.0, 2.4.x

Time Tracking:
Not Specified

2.4.x Status: Resolved
2.5.x Status: None
2.6.x Status: None


 Description  « Hide
To reproduce:
Create Quiz.
Add multiple choice question.
Set it as multiple correct answers.
Fill in several answers (I used four).
Set *all* answers to be correct.
Save.

Exception thrown:

org.sakaiproject.portal.api.PortalHandlerException:
org.sakaiproject.tool.api.ToolException: 4
    at
org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:63)
caused by: org.sakaiproject.tool.api.ToolException: 4
    at
org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1099)
caused by: javax.servlet.ServletException: 4
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
caused by: java.lang.ArrayIndexOutOfBoundsException: 4
    at
org.sakaiproject.tool.assessment.ui.listener.author.ItemAddListener.checkMC(ItemAddListener.java:266)
    at
org.sakaiproject.tool.assessment.ui.listener.author.ItemAddListener.processAction(ItemAddListener.java:117)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:57)
    at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:649)
    at javax.faces.component.UICommand.broadcast(UICommand.java:297)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
...

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Karen Tsao - 13-Aug-2007 14:12
commit -m "SAK-11116" C:/sakai/sam/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/ItemAddListener.java
    Sending sakai/sam/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/ItemAddListener.java
    Transmitting file data ...
    Committed revision 33939.

Stephen Marquard - 14-Aug-2007 00:12
Could this be merged into 2-4-x please once QA'd?

Huong Nguyen - 15-Aug-2007 14:36
verified on the nightly trunk. oracle and HSQLDB. There is no more error thrown

Karen Tsao - 16-Aug-2007 11:03
$ svn commit -m "SAK-11116"
Sending samigo-app\src\java\org\sakaiproject\tool\assessment\ui\listener\author\ItemAddListener.java
Transmitting file data .
Committed revision 34059.