Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-36352

Exception when ordering questions from Question Pool

    XMLWordPrintable

    Details

    • Previous Issue Keys:
      SAM-2726
    • Test Plan:
      Hide

      To reproduce the issue

      1. Enter as instructor
      2. Go to any site
      3. Go to "Test & Quizzes"
      4. Go to "Question Pools"
      5. Click on "Add a new Pool"
      6. Enter a Pool Name and press "Save"
      7. Go inside the pool you´ve just created
      8. Click on"Add Question"
      9. Select a question type
      10. Press "Save"
      11. Fill in the data for the question and press "Save"
      12. Try to order the questions clicking on "Question Type"
      13. You go back to the assesment page
      14. Go again to "Question Pools" and enter to the same question pool
      15. Try to order the questions again by clicking on "Question Type"
      16. You get an exception

      Show
      To reproduce the issue 1. Enter as instructor 2. Go to any site 3. Go to "Test & Quizzes" 4. Go to "Question Pools" 5. Click on "Add a new Pool" 6. Enter a Pool Name and press "Save" 7. Go inside the pool you´ve just created 8. Click on"Add Question" 9. Select a question type 10. Press "Save" 11. Fill in the data for the question and press "Save" 12. Try to order the questions clicking on "Question Type" 13. You go back to the assesment page 14. Go again to "Question Pools" and enter to the same question pool 15. Try to order the questions again by clicking on "Question Type" 16. You get an exception

      Description

      If you try to order the questions inside a question pool it jumps you get a java.lang.NumberFormatException

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: For input string: ""
          at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:75)
      caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: For input string: ""
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1544)
      caused by: javax.servlet.ServletException: For input string: ""
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      caused by: java.lang.NumberFormatException: For input string: ""
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
          at java.lang.Long.parseLong(Long.java:453)
          at java.lang.Long.valueOf(Long.java:540)
          at org.sakaiproject.tool.assessment.ui.listener.questionpool.SortQuestionListListener.processAction(SortQuestionListListener.java:80)
      

        Gliffy Diagrams

          Zeplin

            Attachments

            1. pool01.png
              pool01.png
              58 kB
            2. pool02.png
              pool02.png
              50 kB
            3. pool03.png
              pool03.png
              56 kB
            4. pool04.png
              pool04.png
              156 kB

              Issue Links

                Activity

                  People

                  Assignee:
                  samigoteam SAMIGO TEAM (Inactive)
                  Reporter:
                  alexgj Alejandro González Jiménez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration