[ 
https://issues.apache.org/jira/browse/AIRFLOW-4100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794087#comment-16794087
 ] 

ASF subversion and git services commented on AIRFLOW-4100:
----------------------------------------------------------

Commit 6eb2efd4da5cfd2c2ec7094558251a981d15dc1d in airflow's branch 
refs/heads/master from Ash Berlin-Taylor
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=6eb2efd ]

[AIRFLOW-4100] Correctly JSON escape data for tree/graph views (#4921)

It was possible to end up with invalid JS-in-script if you created
certain structures. This fixes it.

`|tojson|safe` is the method recommended by Flask of dealing with this
sort of case: http://flask.pocoo.org/docs/1.0/templating/#standard-filters

The json_ser function is not used anymore (Flask needs an encoder class)
so it and the tests have been removed. The AirflowJsonEncoder behaves
the same on dates, and has extra behaviour too.

> Possible to create invalid JS on dag pages
> ------------------------------------------
>
>                 Key: AIRFLOW-4100
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4100
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>            Reporter: Ash Berlin-Taylor
>            Assignee: Ash Berlin-Taylor
>            Priority: Major
>             Fix For: 1.10.3
>
>
> If you have odd dag/task/run ids it is possible to break the charts on the 
> various pages.



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

Reply via email to