Menu

#3924 (ok 4.0.2) Show warning when CSV file does not contain data for all columns

4.0.1
fixed
1
2013-06-11
2013-05-11
No

Import of CSV file in 4.0.1 RC1 does not work, just returns the import page again.

Discussion

  • Marc Delisle

    Marc Delisle - 2013-05-11

    Cannot reproduce, can you attach a sample export of your table's structure and the CSV file that does not import?

     
  • Marc Delisle

    Marc Delisle - 2013-05-11
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-05-12
    • status: open --> pending-works-for-me
     
  • Matthew Davidson

    I've run into the same problem. I will attach all the files needed to reproduce this issue.

     
  • Matthew Davidson

    This is the import file that should not work because there are not enough fields. This causes phpmyadmin to hang and eventually timeout.

     

    Last edit: Matthew Davidson 2013-05-15
  • Matthew Davidson

    [deleted]

     

    Last edit: Matthew Davidson 2013-05-15
  • Matthew Davidson

    Just realized I was mistaken on part of this. I should have assumed all fields were given, even auto-incremented fields. This file has the appropriate fix, along with making the global $message variable available so that it doesn't hang on errors.

     
  • Matthew Davidson

    This import file SHOULD work. It has all the fields.

     
  • Marc Delisle

    Marc Delisle - 2013-05-17
    • status: pending-works-for-me --> open
    • assigned_to: Marc Delisle --> nobody
     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    It is risky to make assumptions about the columns when the csv does not contain data for all columns. However an appropriate error message should be displayed.

     
  • Madhura Jayaratne

    • summary: Import of CSV files not working --> (ok 4.0.2) Show warning when CSV file does not contain data for all columns
    • status: open --> open-fixed
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2013-05-24
    • Status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed