Skip to content

DagRuns page renders the state column with artifacts #8717

@voroninman

Description

@voroninman

Apache Airflow version: 1.10.10

Environment:

Docker image python:3.7-slim.

How to reproduce it:

Navigate to /admin/dagrun/.

Screenshot 2020-05-05 at 15 05 26

Other:

The web server returns HTML that consists of:

<a
	data-csrf=""
	data-pk="1150737"
	data-role="x-editable"
	data-source="[{&#34;text&#34;: &#34;&#34;, &#34;value&#34;: &#34;__None&#34;}, {&#34;text&#34;: &#34;success&#34;, &#34;value&#34;: &#34;success&#34;}, {&#34;text&#34;: &#34;running&#34;, &#34;value&#34;: &#34;running&#34;}, {&#34;text&#34;: &#34;failed&#34;, &#34;value&#34;: &#34;failed&#34;}]"
	data-type="select2"
	data-url="./ajax/update/"
	data-value="<span class="label" style="background-color:green;">success</span>" 
	href="#" 
	id="state" 
	name="state"
>
	<span class="label" style="background-color:green;">success</span>
</a>

Flask-Admin version is 1.5.4.
After a brief investigation, the problem seems to be related to using HTML as a value for an editable widget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:webserverWebserver related Issueskind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions