You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2017/06/05 20:17:05 UTC
[jira] [Updated] (AIRFLOW-1244) Forbid creation of a pool with
empty name
[ https://issues.apache.org/jira/browse/AIRFLOW-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bolke de Bruin updated AIRFLOW-1244:
------------------------------------
Fix Version/s: 1.8.2
> Forbid creation of a pool with empty name
> -----------------------------------------
>
> Key: AIRFLOW-1244
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1244
> Project: Apache Airflow
> Issue Type: Bug
> Components: ui
> Affects Versions: 1.8.0
> Reporter: Stanislav Kudriashev
> Assignee: Stanislav Kudriashev
> Fix For: 1.9.0, 1.8.2
>
>
> Currently creation of a pool with empty name fails with exception. This needs to be fixed.
> {code}
> Traceback (most recent call last):
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__
> return self.wsgi_app(environ, start_response)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app
> response = self.make_response(self.handle_exception(e))
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception
> reraise(exc_type, exc_value, tb)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
> response = self.full_dispatch_request()
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
> rv = self.handle_user_exception(e)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
> reraise(exc_type, exc_value, tb)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
> rv = self.dispatch_request()
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
> return self.view_functions[rule.endpoint](**req.view_args)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/base.py", line 69, in inner
> return self._run_view(f, *args, **kwargs)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/base.py", line 368, in _run_view
> return fn(self, *args, **kwargs)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/model/base.py", line 1900, in index_view
> return_url=self._get_list_url(view_args),
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/base.py", line 308, in render
> return render_template(template, **kwargs)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template
> context, ctx.app)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask/templating.py", line 116, in _render
> rv = template.render(context)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
> return self.environment.handle_exception(exc_info, True)
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
> reraise(exc_type, exc_value, tb)
> File "/home/stas/Work/incubator-airflow/airflow/www/templates/airflow/model_list.html", line 18, in top-level template code
> {% extends 'admin/model/list.html' %}
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html", line 6, in top-level template code
> {% import 'admin/model/row_actions.html' as row_actions with context %}
> File "/home/stas/Work/incubator-airflow/airflow/www/templates/admin/master.html", line 18, in top-level template code
> {% extends 'admin/base.html' %}
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/base.html", line 30, in top-level template code
> {% block page_body %}
> File "/home/stas/Work/incubator-airflow/airflow/www/templates/admin/master.html", line 104, in block "page_body"
> {% block body %}
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html", line 62, in block "body"
> {% block model_list_table %}
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html", line 110, in block "model_list_table"
> {% block list_row scoped %}
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html", line 138, in block "list_row"
> {{ get_value(row, c) }}
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/model/base.py", line 1742, in get_list_value
> self.column_type_formatters,
> File "/home/stas/Work/incubator-airflow/.venv/lib/python2.7/site-packages/flask_admin/model/base.py", line 1707, in _get_list_value
> value = column_fmt(self, context, model, name)
> File "/home/stas/Work/incubator-airflow/airflow/www/views.py", line 187, in pool_link
> url = '/admin/taskinstance/?flt1_pool_equals=' + m.pool
> TypeError: cannot concatenate 'str' and 'NoneType' objects
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)