This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-2-test by this push:
new 1a3b14fb17d [v3-2-test] Fix ConnectionForm crashing when connection
has invalid extra JSON (#66593) (#66831)
1a3b14fb17d is described below
commit 1a3b14fb17dac8fa7f261a2432ba87eb96d5cebe
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue May 12 17:48:42 2026 -0400
[v3-2-test] Fix ConnectionForm crashing when connection has invalid extra
JSON (#66593) (#66831)
(cherry picked from commit bd2c948498aa403c18468f86e2a8912addd2dbbb)
Co-authored-by: Shashwati Bhattacharyaa
<[email protected]>
Co-authored-by: Shashwati <[email protected]>
---
.../src/airflow/ui/src/pages/Connections/ConnectionForm.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/src/airflow/ui/src/pages/Connections/ConnectionForm.tsx
b/airflow-core/src/airflow/ui/src/pages/Connections/ConnectionForm.tsx
index 55194ed3a23..af46f0ae3d4 100644
--- a/airflow-core/src/airflow/ui/src/pages/Connections/ConnectionForm.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Connections/ConnectionForm.tsx
@@ -82,7 +82,11 @@ const ConnectionForm = ({
setValue("conn_type", selectedConnType, {
shouldDirty: true,
});
- setConf(JSON.stringify(JSON.parse(initialConnection.extra), undefined, 2));
+ try {
+ setConf(JSON.stringify(JSON.parse(initialConnection.extra), undefined,
2));
+ } catch {
+ setConf(initialConnection.extra);
+ }
}, [selectedConnType, initialConnection, setConf, setValue]);
// Automatically reset form when conf is fetched