Bug #6035

Import of CSV file via web UI throws fatal error (2.0.x only)

Added by David Juhasz over 8 years ago. Updated over 8 years ago.

Status:VerifiedStart date:11/28/2013
Priority:CriticalDue date:
Assignee:Dan Gillean% Done:

0%

Category:Import/Export
Target version:Release 2.0.1
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

Steps to reproduce
  1. Checkout AtoM stable/2.0.x branch
  2. Login as administrator
  3. Click "Import > CSV"
  4. Click "Browse" button, and select "Kiti_works.csv" CSV file (attached)
  5. Leave other settings at default (Archival description import, don't disable search index)
  6. Click "Import"

Resulting error

Result from stable/2.0.x @ eb4a479

Error encountered

PHP Fatal error: Call to a member function enable() on a non-object in /home/vagrant/atom-2/lib/search/QubitSearch.class.php on line 57

Fatal error: Call to a member function enable() on a non-object in /home/vagrant/atom-2/lib/search/QubitSearch.class.php on line 57

Expected result

A checkout of AtoM 2.x@6e72a07 returns:

Error encountered

Could not find information object matching slug "church-of-panagia-angeloktistos-kiti-cyprus" 

(Assuming parent record does not exist)

Kiti_works.csv Magnifier - Sample CSV file (1.8 KB) David Juhasz, 11/29/2013 11:14 AM

pub-status.png (23.3 KB) Dan Gillean, 11/29/2013 11:31 AM

History

#1 Updated by David Juhasz over 8 years ago

  • Description updated (diff)

Copy & paste correct error message

#2 Updated by David Juhasz over 8 years ago

Cherry picked commit:f5e6aea commit:fce9910 commit:b21cc9d from 2.x

#3 Updated by David Juhasz over 8 years ago

  • Status changed from New to QA/Review
  • Assignee changed from David Juhasz to Dan Gillean

#4 Updated by David Juhasz over 8 years ago

  • Subject changed from Import of CVS file via web UI throws fatal error (2.0.x only) to Import of CSV file via web UI throws fatal error (2.0.x only)

Fix typo

#5 Updated by David Juhasz over 8 years ago

Note: To test sample CSV file, create a description with "church-of-panagia-angeloktistos-kiti-cyprus" slug before import.

#6 Updated by Dan Gillean over 8 years ago

I tested by 1) creating the parent description, and then importing directly under the parent (i.e. with CSV import option in context menu of parent), as well as 2) creating the parent description and then using the Import option in the Main Menu. In both cases, import worked.

One note - errors were thrown for each description on the publication status. See attached screenshot. This seems to me to relate to issue #5832 and/or #5945 - the import still worked, but the pub status reverted to the application default. consequently, I am marking this as verified - we can deal with publication status roundtrip issues on one of the related tickets.

Also available in: Atom PDF