Skip to content

airflow.api_connexion.endpoints.dag_endpoint.patch_dag -->> Property is read-only - '****' #10479

@xu-xiang

Description

@xu-xiang

Apache Airflow version:

master-python3.8-ci
docker pull apache/airflow:master-python3.8-ci
DIGEST:sha256:a4cf33bdbde82b6db6a89b967f4d51ba20101ef815b8bc504cbd9ac1cb659018
Last updated4 days agobypotiuk

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:
API(airflow.api_connexion.endpoints.dag_endpoint.patch_dag) update any DAG info response are:
400 Property is read-only - '****'

➜ ~ curl -v -H "Content-Type: application/json" -X PATCH --data '{ "description": null, "is_paused": true, "schedule_interval": { "__type": "CronExpression", "value": "0 0 * * *" }, "tags": [ { "name": "example" } ]}' http://******/api/v1/dags/example_bash_operator


*   Trying 118.*****...
* TCP_NODELAY set
* Connected to* (#0)
> PATCH /api/v1/dags/example_bash_operator HTTP/1.1
> Host: *
> User-Agent: curl/7.64.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 325
>
* upload completely sent off: 325 out of 325 bytes
< HTTP/1.1 400 BAD REQUEST
< Server: gunicorn/19.10.0
< Date: Sat, 22 Aug 2020 09:29:08 GMT
< Connection: close
< Content-Type: application/problem+json
< Content-Length: 119
< X-Frame-Options: DENY
< Vary: Cookie
< Set-Cookie: session=eyJfcGVybWFuZW50Ijp0cnVlfQ.X0DlZA.1F_VrxgrmOQWHSaA9d_b1czM9SU; Expires=Mon, 21-Sep-2020 09:29:08 GMT; HttpOnly; Path=/
<
{
  "detail": "Property is read-only - 'description'",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}
* Closing connection 0

What you expected to happen:

How to reproduce it:

Anything else we need to know:

Metadata

Metadata

Assignees

Labels

kind:bugThis is a clearly a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions