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

Importing files to Question bank DON'T WORK from "Import from file upload..." and WORKS from "Import from file already in course files..."

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.14
    • Component/s: Questions
    • Labels:
    • Environment:
      Moodle 1.9.4+ build 20090422, PHP 5.2.8, MYSQL 5.0.67, WINDOWS 2003 SERVER, IIS WEB SERVER
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. Test importing questions one your normal server, to ensure this change does not cause any regressions.

      2. If you have an IIS install that demonstrated this old problem, verify that this fix actually fixes it.

      Show
      1. Test importing questions one your normal server, to ensure this change does not cause any regressions. 2. If you have an IIS install that demonstrated this old problem, verify that this fix actually fixes it.
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When importing files to Question Bank previously exported from there in any format like MOODLE XML, when trying to import using option "Import from file upload..." DON'T WORK looking like file not uploaded and a message showing this: "Parsing questions from import file. Cannot read import file (or file is empty) An error occurred during import processing".

      If you use the other option down named "Import from file already in course files..." that allow you to upload a file and select it IT WORKS PROPERLY with the same file.

          • Updated 28-04-2009 ***
            Just discovered what's happening: Looks like not taken TEMP variable enviroment properly and using a ¿default? one where Web Server user don't have write permissions to upload file:

      TEMP and TMP variables are pointting to "C:\TEMP" and discovered that it's training to write in "C:\WINDOWS\TEMP" so getting error "Cannot read import file (or file is empty) An error occurred during import processing".

      ¿Perhaps an error taken environment?

        Gliffy Diagrams

          Issue Links

            Activity

            raimon Raimundo Alba created issue -
            raimon Raimundo Alba made changes -
            Field Original Value New Value
            Description When importing files to Question Bank previously exported from there in any format like MOODLE XML, when trying to import using option "Import from file upload..." DON'T WORK looking like file not uploaded and a message showing this: "Parsing questions from import file. Cannot read import file (or file is empty) An error occurred during import processing".

            If you use the other option down named "Import from file already in course files..." that allow you to upload a file and select it IT WORKS PROPERLY with the same file.
            When importing files to Question Bank previously exported from there in any format like MOODLE XML, when trying to import using option "Import from file upload..." DON'T WORK looking like file not uploaded and a message showing this: "Parsing questions from import file. Cannot read import file (or file is empty) An error occurred during import processing".

            If you use the other option down named "Import from file already in course files..." that allow you to upload a file and select it IT WORKS PROPERLY with the same file.

            *** Updated 28-04-2009 ***
            Just discovered what's happening: Looks like not taken TEMP variable enviroment properly and using a ¿default? one where Web Server user don't have write permissions to upload file:

            TEMP and TMP variables are pointting to "C:\TEMP" and discovered that it's training to write in "C:\WINDOWS\TEMP" so getting error "Cannot read import file (or file is empty) An error occurred during import processing".

            ¿Perhaps an error taken environment?
            timhunt Tim Hunt made changes -
            Fix Version/s 1.9.5 [ 10320 ]
            timhunt Tim Hunt made changes -
            Fix Version/s 1.9.5 [ 10320 ]
            dougiamas Martin Dougiamas made changes -
            Workflow jira [ 31624 ] MDL Workflow [ 44817 ]
            dougiamas Martin Dougiamas made changes -
            Workflow MDL Workflow [ 44817 ] MDL Full Workflow [ 73175 ]
            timhunt Tim Hunt made changes -
            Status Open [ 1 ] Waiting for integration review [ 10010 ]
            Pull from Repository git://github.com/mackensen/moodle.git
            Fix Version/s 1.9.14 [ 10951 ]
            Pull 1.9 Branch MDL-18952
            Pull 1.9 Diff URL https://github.com/mackensen/moodle/compare/MOODLE_19_STABLE...MDL-18952
            Testing Instructions 1. Test importing questions one your normal server, to ensure this change does not cause any regressions.

            2. If you have an IIS install that demonstrated this old problem, verify that this fix actually fixes it.
            timhunt Tim Hunt made changes -
            Peer reviewer timhunt
            Labels triaged
            cfulton Charles Fulton made changes -
            Link This issue has a non-specific relationship to MDL-18953 [ MDL-18953 ]
            samhemelryk Sam Hemelryk made changes -
            Currently in integration Yes
            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 ]
            stronk7 Eloy Lafuente (stronk7) made changes -
            Status Waiting for testing [ 10005 ] Testing in progress [ 10011 ]
            Tester stronk7
            stronk7 Eloy Lafuente (stronk7) 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
            Integration date 21/Sep/10

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11