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

Copy question exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Labels:
      None
    • Environment:
      WINXP IE FF

      Description

      verified on all 3 nightly qa instances (post 2.0.1)

      If you copy a question from one question pool to another, and the same question already exists in the destination pool, Samigo throws an exception (see attached):

      WARN: SQL Error: 1062, SQLState: 23000 (2005-09-12 15:55:16,186 http-29080-Processor23_net.sf.hibernate.util.JDBCExceptionReporter)
      ERROR: null, message from server: "Duplicate entry '1-313' for key 1" (2005-09-12 15:55:16,186 http-29080-Processor23_net.sf.hibernate.util.JDBCExceptionReporter)

      It's easy to do this by accident, since the list of available pools to copy a question to always includes its own pool.

      Suggested fix: Put in an error message? "This question is already in one or more of the specified pools."

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  marith Margaret Petit (Inactive)
                  Reporter:
                  marith Margaret Petit (Inactive)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration