Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-25 Thread via GitHub
potiuk merged PR #36829: URL: https://github.com/apache/airflow/pull/36829 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.a

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-23 Thread via GitHub
amoghrajesh commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1464286997 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -97,7 +99,30 @@ export const parseLogs = ( line.includes(fileSourceFilter)

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-23 Thread via GitHub
amoghrajesh commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1464286997 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -97,7 +99,30 @@ export const parseLogs = ( line.includes(fileSourceFilter)

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-23 Thread via GitHub
amoghrajesh commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1464284504 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -21,6 +21,8 @@ import { defaultFormatWithTZ } from "src/datetime_utils"; +const saniti

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-23 Thread via GitHub
bbovenzi commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1463605227 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -97,7 +99,30 @@ export const parseLogs = ( line.includes(fileSourceFilter) )

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-23 Thread via GitHub
bbovenzi commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1463599836 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -21,6 +21,8 @@ import { defaultFormatWithTZ } from "src/datetime_utils"; +const sanitizeH

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-22 Thread via GitHub
amoghrajesh commented on PR #36829: URL: https://github.com/apache/airflow/pull/36829#issuecomment-1905273903 @bbovenzi pushed the changes using the sanitize-html library, can you take a look? -- This is an automated message from the Apache Git Service. To respond to the message, please l

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-22 Thread via GitHub
amoghrajesh commented on PR #36829: URL: https://github.com/apache/airflow/pull/36829#issuecomment-1905262526 @bbovenzi attempted it and for the same log messages as the description, these are the results: ![image](https://github.com/apache/airflow/assets/35884252/d302f916-66ef-43ce-9cd0

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-22 Thread via GitHub
amoghrajesh commented on PR #36829: URL: https://github.com/apache/airflow/pull/36829#issuecomment-1905262527 @bbovenzi attempted it and for the same log messages as the description, these are the results: ![image](https://github.com/apache/airflow/assets/35884252/d302f916-66ef-43ce-9cd0

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-22 Thread via GitHub
amoghrajesh commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1462697843 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -97,6 +101,17 @@ export const parseLogs = ( line.includes(fileSourceFilter)

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-22 Thread via GitHub
bbovenzi commented on code in PR #36829: URL: https://github.com/apache/airflow/pull/36829#discussion_r1462169646 ## airflow/www/static/js/dag/details/taskInstance/Logs/utils.ts: ## @@ -97,6 +101,17 @@ export const parseLogs = ( line.includes(fileSourceFilter) )

Re: [PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-16 Thread via GitHub
amoghrajesh commented on PR #36829: URL: https://github.com/apache/airflow/pull/36829#issuecomment-1894915438 @jedcunningham @bbovenzi tried fixing it properly this time, let me know what you think. @jedcunningham: I used the cases that you had used to test, many thanks :D -- This

[PR] Making links in task logs as hyperlinks by preventing HTML injection [airflow]

2024-01-16 Thread via GitHub
amoghrajesh opened a new pull request, #36829: URL: https://github.com/apache/airflow/pull/36829 We had to revert the change https://github.com/apache/airflow/pull/36826 due to the potential risk of HTML injection. To fix that properly, I have added a fix which does the foll