[enh] exclude .well-known subpaths from conflict checks

This commit is contained in:
tituspijean 2023-04-17 13:18:10 +02:00 committed by GitHub
parent 9a585f03c6
commit bc30805c7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2869,7 +2869,7 @@ def _get_conflicting_apps(domain, path, ignore_app=None):
for p, a in apps_map[domain].items(): for p, a in apps_map[domain].items():
if a["id"] == ignore_app: if a["id"] == ignore_app:
continue continue
if path == p or path == "/" or p == "/": if path == p or ( not path.startswith("/.well-known/") and path == "/" ) or ( not path.startswith("/.well-known/") and p == "/" ):
conflicts.append((p, a["id"], a["label"])) conflicts.append((p, a["id"], a["label"]))
return conflicts return conflicts