Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31397

French lang with quotes string causes SCORM to fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Language, SCORM
    • Labels:
    • Environment:
      Linux Apache MySQL, Firefox 9 and MS IE 8
    • Testing Instructions:
      Hide

      1- Install French language package.
      2- unable SCORM debugger.
      3- Try to launch a SCORM, you may get the "Unable to find an API adapter" error

      Show
      1- Install French language package. 2- unable SCORM debugger. 3- Try to launch a SCORM, you may get the "Unable to find an API adapter" error
    • Workaround:
      Hide

      Make sure that all strings used in the french (and maybe other languages) SCORM api are well formed to escape any character that can lead to Javascript interpretation errors.
      examnple, Instead of:
      '-->L'activité....'
      Use
      "-->L'activité...."

      Show
      Make sure that all strings used in the french (and maybe other languages) SCORM api are well formed to escape any character that can lead to Javascript interpretation errors. examnple, Instead of: '-->L'activité....' Use "-->L'activité...."
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      master_MDL-31397

      Description

      I have got this message error "Unable to find an API adapter" for a while. After looking over it. I found that it is caused by the combination of two situations:

      • The SCORM debugger is enabled (by me).
      • A syntax error in the french SCORM api. (in fact, there's an error of a ['] not escaped in '-->L'activité....'; so it is causing an error of missing [;].

        Gliffy Diagrams

          Activity

          fouzisukhi Fouzi Sukhilala created issue -
          danmarsden Dan Marsden made changes -
          Field Original Value New Value
          Summary Unable to find an API adapter related to french translation Invalid French lang string causes SCORM to fail
          Fix Version/s STABLE backlog [ 10463 ]
          Priority Minor [ 4 ] Major [ 3 ]
          Labels triaged
          Assignee Dan Marsden [ danmarsden ] David Mudrak [ mudrd8mz ]
          Component/s Language [ 10089 ]
          danmarsden Dan Marsden made changes -
          Summary Invalid French lang string causes SCORM to fail French lang with quotes string causes SCORM to fail
          Assignee David Mudrak [ mudrd8mz ] Dan Marsden [ danmarsden ]
          danmarsden Dan Marsden made changes -
          danmarsden Dan Marsden made changes -
          danmarsden Dan Marsden made changes -
          danmarsden Dan Marsden made changes -
          Status Open [ 1 ] Waiting for integration review [ 10010 ]
          samhemelryk Sam Hemelryk made changes -
          Currently in integration Yes [ 10041 ]
          samhemelryk Sam Hemelryk made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Integrator samhemelryk
          samhemelryk Sam Hemelryk made changes -
          Status Integration review in progress [ 10004 ] Waiting for testing [ 10005 ]
          Fix Version/s 2.1.5 [ 11553 ]
          Fix Version/s 2.2.2 [ 11552 ]
          Fix Version/s STABLE backlog [ 10463 ]
          salvetore Michael de Raadt made changes -
          Tester ankit_frenz
          ankit_frenz Ankit Agarwal made changes -
          Status Waiting for testing [ 10005 ] Testing in progress [ 10011 ]
          ankit_frenz Ankit Agarwal made changes -
          Status Testing in progress [ 10011 ] Tested [ 10006 ]
          stronk7 Eloy Lafuente (stronk7) made changes -
          Status Tested [ 10006 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Currently in integration Yes [ 10041 ]
          Integration date 23/Feb/12

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Mar/12