Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6399

Serialization: DAG access_control field should be decorated field in DAG serialization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.7, 1.10.8
    • Fix Version/s: 1.10.10
    • Component/s: DAG, scheduler, webserver
    • Labels:
      None

      Description

      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 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.

        Attachments

          Activity

            People

            • Assignee:
              codenamelxl Xich Long Le
              Reporter:
              codenamelxl Xich Long Le
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: