airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Editing a jdbc connection in 1.5.1 throws internal server error

Open jomar83 opened this issue 11 years ago • 2 comments

Editing an existing jdbc connection results in:

File "/usr/local/lib/python2.7/site-packages/airflow-1.5.1-py2.7.egg/airflow/www/app.py", line 1765, in on_form_prefill
    field = getattr(form, field)
AttributeError: 'ConnectionForm' object has no attribute 'extra__jdbc__drv_path'

At the same time creating a new jdbc connection doesn't show the extra form fields anymore.

jomar83 avatar Sep 14 '15 09:09 jomar83

If form_columns is used for using only specific fields from the model or for forcing a certain order of fields, form_extra_fields need to be in there as well, otherwise they will be ignored.

Fixed by #396

jomar83 avatar Sep 14 '15 12:09 jomar83

Premature close, will close when fix is merged.

jomar83 avatar Sep 14 '15 13:09 jomar83