Issue 1:
Apache Airflow version

2.4.0

What happened

When I want to view logs of a task using the webserver, I get the following error:

*** Log file does not exist: /opt/airflow/logs/dag_id=<dag_id>/run_id=manual__2022-09-25T07:01:05.868611+00:00/task_id=get_new_batch_id/attempt=1.log
*** Fetching from: http://<pod_name>.<cluster_info>:8793/dag_id=<dag_id>/run_id=manual__2022-09-25T07:01:05.868611+00:00/task_id=get_new_batch_id/attempt=1.log
*** !!!! Please make sure that all your Airflow components (e.g. schedulers, webservers and workers) have the same 'secret_key' configured in 'webserver' section and time is synchronized on all your machines (for example with ntpd) !!!!!
****** See more at https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#secret-key
****** Failed to fetch log file from worker. Client error '403 FORBIDDEN' for url 'http://<pod_name>.<cluster_info>:8793/dag_id=<dag_id>/run_id=manual__2022-09-25T07:01:05.868611+00:00/task_id=get_new_batch_id/attempt=1.log'
For more information check: https://httpstatuses.com/403

When I checked the worker logs, I saw the following:

9/25/2022, 2:05:14 PM
fruits360-worker-1
a8605871a22add46d78ba98798e60a2d181364f0554c9427b479b5447354b744
[2022-09-25T11:05:14.765+0000] {serve_logs.py:104} WARNING - Unknown error

9/25/2022, 2:05:14 PM
fruits360-worker-1
a8605871a22add46d78ba98798e60a2d181364f0554c9427b479b5447354b744
Traceback (most recent call last):

9/25/2022, 2:05:14 PM
fruits360-worker-1
a8605871a22add46d78ba98798e60a2d181364f0554c9427b479b5447354b744
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/serve_logs.py", line 64, in validate_pre_signed_url

9/25/2022, 2:05:14 PM
fruits360-worker-1
a8605871a22add46d78ba98798e60a2d181364f0554c9427b479b5447354b744
request_filename = request.view_args['filename']

9/25/2022, 2:05:14 PM
fruits360-worker-1
a8605871a22add46d78ba98798e60a2d181364f0554c9427b479b5447354b744
TypeError: 'NoneType' object is not subscriptable

What you think should happen instead

I'm not sure why request.view_args is not subscriptable.

How to reproduce

No response

Operating System

linux vm from Azure

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

helm 1.6.0 with a custom docker image. Dockerfile is:

FROM apache/airflow:2.4.0

RUN pip install --no-cache-dir --user apache-airflow-providers-microsoft-mssql==3.2.0

COPY ./dags/ /opt/airflow/dags

Anything else

Deployed in Azure Kubernetes Cluster. Everything is in one node except for the metadata db, which runs in an Azure Database for PostgreSQL flexible server.

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Body

We have a kind request for all the contributors to the latest Apache Airflow RC 2.2.5rc3.

Could you please help us to test the RC versions of Airflow?

Please let us know in the comment if the issue is addressed in the latest RC.

Set X-Frame-Options header to DENY unless X_FRAME_ENABLED is set to true (#19491): @subkanthi @planoe-cloudera

Linked issues:

x_frame_enabled logic broken in Airflow 2 (#17255)

Fix: Do not render undefined graph edges (#19684): @bbovenzi

Fix Tasks getting stuck in scheduled state (#19747): @vapiravfif @tanelk

Linked issues:

Tasks get stuck in "scheduled" state and starved when dags with huge amount of tasks is scheduled (#19622)

Rename to_delete to to_cancel in TriggerRunner (#20658): @dstandish

Fix duplicate trigger creation race condition (#20699): @MatrixManAtYrService @dstandish

Linked issues:

TriggerEvent fires, and then defers a second time (doesn't fire a second time though). (#18392)

Track completed triggers until deleted from database (#19546)

Truncate stack trace to DAG user code for exceptions raised during execution (#20731): @malthe

fix: Update custom connection field processing (#20883): @mike-mcdonald

Linked issues:

Cannot edit custom fields on provider connections (#20839)

Ensure clear_task_instances sets valid run state (#21116): @uranusjr @uplsh580

Linked issues:

Running airflow dags backfill --reset-dagruns <dag_id> -s <execution_start_dt> -e <execution_end_dt> results in error when run twice. (#21058)

Fix 'airflow dags backfill --reset-dagruns' errors when run twice (#21062)

Update ExternalTaskSensorLink to handle templated external_dag_id (#21192): @csp98 @josh-fell

Linked issues:

Webserver "External DAG" button on ExternalTaskSensor not working when dag_id is templated (#21183)

A trigger might use a connection; make sure we mask passwords (#21207): @malthe

Log traceback in trigger excs (#21213): @malthe

Fix trigger dag redirect from task instance log view (#21239): @dstandish

Fix race condition between triggerer and scheduler (#21316): @malthe

Reduce DB load incurred by Stale DAG deactivation (#21399): @SamWheating

Fix max_active_runs=1 not scheduling runs when min_file_process_interval is high (#21413): @ephraimbuddy

Fix Resources eq check (#21442): @pingzh

Filter out default configs when overrides exist. (#21539): @xyu @ashb

Linked issues:

PR #18772 breaks sql_alchemy_conn_cmd config (#20092)

Don't bake ENV and _cmd into tmp config for non-sudo (#18772)

Fix logging JDBC SQL error when task fails (#21540): @stijn-meersman @hubert-pietron @jyotsa09

Linked issues:

No SQL error shown when using the JDBC operator (#18482)

JDBC operator not logging errors (#16295)

Dispose not used connection pool (#21565): @pingzh

FIX: extends typing-extensions to be installed with python 3.8+ #21566 (#21567): @frankcash

Linked issues:

typing_extensions package isn't installed with apache-airflow-providers-amazon causing an issue for SqlToS3Operator (#21566)

Disable default_pool delete on web ui (#21658): @chenglongyan

Log exception in local executor (#21667): @uranusjr

Correctly handle multiple '=' in LocalFileSystem secrets. (#21694): @kadai0308 @joeyberkovitz

Linked issues:

LocalFileSystem Secret Backend Bug (#21625)

Fix stray order_by(TaskInstance.execution_date) (#21705): @uranusjr @TidesMind

Linked issues:

Airflow >= 2.2.0 execution date change is failing TaskInstance get_task_instances method and possibly others (#21656)

Fix filesystem sensor for directories (#21729): @mixilchenko

Fix graph autorefresh on page load (#21736): @bbovenzi

Fix triggerer --capacity parameter (#21753): @thesuperzapper @msumit

Linked issues:

triggerer --capacity parameter does not work (#21752)

Fix assignment of unassigned triggers (#21770): @jkramer-ginkgo

Fix incorrect data provided to tries & landing times charts (#21928): @millin

Fixed dask executor and tests (#22027): @subkanthi @potiuk

Linked issues:

Removes limitations from Dask dependencies (#22017)

Add the new Airflow Trove Classifier to setup.cfg (#22241): @potiuk

Fix broken links to celery documentation (#22364): @davidhagens

Add back celery intersphinx mapping (#22370): @kaxil

Replace timedelta.max with year long timdelta in test_manager (#22527): @potiuk

Check and disallow a relative path for sqlite (#22530): @yenchenLiu

Thanks to all who contributed to the release (probably not a complete list!):

@frankcash @yenchenLiu @bbovenzi @SamWheating @ephraimbuddy @csp98 @joeyberkovitz @planoe-cloudera @hubert-pietron @dstandish @stijn-meersman @jyotsa09 @kadai0308 @chenglongyan @pingzh @TidesMind @josh-fell @potiuk @ashb @mike-mcdonald @vapiravfif @thesuperzapper @msumit @xyu @uplsh580 @tanelk @subkanthi @uranusjr @jkramer-ginkgo @millin @malthe @mixilchenko @davidhagens @MatrixManAtYrService @kaxil

Committer

I acknowledge that I am a maintainer/committer of the Apache Airflow project.