[ https://issues.apache.org/jira/browse/AIRFLOW-6399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068630#comment-17068630 ]
ASF subversion and git services commented on AIRFLOW-6399: ---------------------------------------------------------- Commit c7a8a1d2309553d3930d0e204b978e372b9d307d in airflow's branch refs/heads/v1-10-test from Louis Simoneau [ https://gitbox.apache.org/repos/asf?p=airflow.git;h=c7a8a1d ] [AIRFLOW-6399] Serialization: DAG access_control field should be decorated field in DAG serialization (#7879) Co-authored by: Louis Simoneau <simoneau.lo...@gmail.com> Co-authored-by: Long Le Xich <codename...@users.noreply.github.com> (cherry picked from commit 2d0db948f0bffa7077b4dd581d32cae6ad1aee0e) > Serialization: DAG access_control field should be decorated field in DAG > serialization > -------------------------------------------------------------------------------------- > > Key: AIRFLOW-6399 > URL: https://issues.apache.org/jira/browse/AIRFLOW-6399 > Project: Apache Airflow > Issue Type: Bug > Components: DAG, scheduler, webserver > Affects Versions: 1.10.7, 1.10.8 > Reporter: Xich Long Le > Assignee: Xich Long Le > Priority: Major > Fix For: 1.10.10 > > > When DAG serialization is enabled, if any DAG contain field: "access_control": > - Scheduler will fail to schedule all jobs. > - Webserver cannot browse those DAG with "access_control" > Scheduler output: > ValidationError: Additional properties are not allowed ('_access_control' was > unexpected) > Failed validating u'additionalProperties' in > schema[u'allOf'][0][u'properties'][u'dag'] > Reason: > [https://github.com/apache/airflow/blob/1.10.7/airflow/serialization/schema.json|https://github.com/apache/airflow/blob/1.10.7/airflow/serialization/schema.json] > does not have access_control as a whitelisted field. > AIRFLOW-6425 added '_access_control' to JSON schema but does not define it as > decorated_fields making the field to serialized/deserialized incorrectly. -- This message was sent by Atlassian Jira (v8.3.4#803005)