Project

General

Profile

Anomalie #3652

Crash on CONTEXT RECORD export

Added by Yann Le Jeune almost 2 years ago. Updated almost 2 years ago.

Status:
Résolu
Priority:
Urgent
Assignee:
Category:
DB
Target version:
Start date:
07/12/2017
Due date:
% Done:

0%

Difficulté:

Description

On Picardie V1, search of all CONTEXT RECORD / Ishtar-UE export :

Request Method: GET
Request URL: http://picardie.ishtar-archeo.net/get-by-importer/ishtar-context-record/csv

Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  109.                         response = callback(request, *callback_args, **callback_kwargs)
File "/var/lib/python-django-ishtar/ishtar_common/views.py" in get_by_importer
  1187.     )(request, data_type, full, force_own, col_names=col_names, **dct)
File "/var/lib/python-django-ishtar/ishtar_common/views.py" in func
  1156.                     if "|" in col_name[0]:

Exception Type: IndexError at /get-by-importer/ishtar-context-record/csv
Exception Value: list index out of range

Related issues

Related to Ishtar - Evolution #3653: Register automatically models for export Nouveau 07/12/2017

Associated revisions

Revision c97c0c70 (diff)
Added by Étienne Loks almost 2 years ago

CSV Export: add documentation type to models to exports - fail silently if type is not available (refs #3652)

History

#1 Updated by Étienne Loks almost 2 years ago

Documentation type is missing in export configuration (Python side).

We should (by order) :

  • add Documentation type to allow export ;

  • fail silently if not configured (the data is missing but warning and no crash) ;

  • register automatically theses types (iterating over all applications and get "types" models) -> v2 goal.

#2 Updated by Étienne Loks almost 2 years ago

  • Related to Evolution #3653: Register automatically models for export added

#3 Updated by Étienne Loks almost 2 years ago

  • Description updated (diff)
  • Status changed from Nouveau to Résolu

Also available in: Atom PDF