anasatzemoso commented on code in PR #55262:
URL: https://github.com/apache/airflow/pull/55262#discussion_r2354310859
##########
airflow-core/src/airflow/api_fastapi/app.py:
##########
@@ -185,6 +188,12 @@ def init_plugins(app: FastAPI) -> None:
if url_prefix is None:
log.error("'url_prefix' key is missing for the fastapi app: %s",
name)
continue
+ if url_prefix == "":
+ log.error("'url_prefix' key is empty string for the fastapi app:
%s", name)
+ continue
+ if url_prefix in RESERVED_URL_PREFIXES:
+ log.error("Plugin %s attempted to use reserved url_prefix '%s'",
name, url_prefix)
+ continue
Review Comment:
Have fixed this.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]