You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Diederik Perdok (JIRA)" <ji...@apache.org> on 2019/02/24 16:48:00 UTC

[jira] [Updated] (AIRFLOW-3945) Row of NULLs inserted when not changing permission views

     [ https://issues.apache.org/jira/browse/AIRFLOW-3945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diederik Perdok updated AIRFLOW-3945:
-------------------------------------
    Description: 
When creating new permission views in AirflowSecurityManager.create_custom_dag_permission_view in file airflow/www/security.py, the list of permission views to update might be empty because everything is still up to date. In that case, a row in which only the id is not NULL will still be inserted in table ab_permission_view_role.

This is a minor bug when using PostgreSQL. When using a SQL Server backend, this causes the webserver to crash as SQL Server disallows multiple NULLs in a unique constraint (by default).

 

  was:
When creating new permission views in AirflowSecurityManager.create_custom_dag_permission_view in file airflow/www/security.py, the list of permission views to update might be empty because everything is still up to date. In that case, a row of NULLs will still be inserted in table ab_permission_view_role.

This is a minor bug when using PostgreSQL. When using a SQL Server backend, this causes the webserver to crash as SQL Server disallows multiple NULLs in a unique constraint (by default).

 


> Row of NULLs inserted when not changing permission views
> --------------------------------------------------------
>
>                 Key: AIRFLOW-3945
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3945
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>    Affects Versions: 1.10.2
>            Reporter: Diederik Perdok
>            Assignee: Diederik Perdok
>            Priority: Minor
>             Fix For: 1.10.3
>
>
> When creating new permission views in AirflowSecurityManager.create_custom_dag_permission_view in file airflow/www/security.py, the list of permission views to update might be empty because everything is still up to date. In that case, a row in which only the id is not NULL will still be inserted in table ab_permission_view_role.
> This is a minor bug when using PostgreSQL. When using a SQL Server backend, this causes the webserver to crash as SQL Server disallows multiple NULLs in a unique constraint (by default).
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)