This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch 7.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 44008373645db8d5052c6ac9aabc150445eaba44
Author: Ville Brofeldt <[email protected]>
AuthorDate: Sat Nov 14 10:51:30 2026 -0800

    chore(deps): bump flask-appbuilder from 5.2.2 to 5.3.0 (#44400 and #45922)
    
    7.0 was on 5.2.2, so this takes master's two bumps together, including
    #44400's SQL Lab test update for FAB answering an authenticated user without
    permission with 403 instead of a login redirect.
    
    (cherry picked from commit 4c3a890d8b61e5929c6d2936c708909f8188e68e, 
reduced)
    (cherry picked from commit 966104b93f05370ac14ed172b6a6f1fa99943441, 
reduced)
---
 pyproject.toml                          |  2 +-
 requirements/base.txt                   |  2 +-
 requirements/development.txt            |  2 +-
 tests/integration_tests/sqllab_tests.py | 13 ++++++++++++-
 4 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 6f3a2bd90f6..178757b7f17 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -53,7 +53,7 @@ dependencies = [
     "cryptography>=50.0.1, <51.0.0",
     "deprecation>=2.1.0, <2.2.0",
     "flask>=2.2.5, <4.0.0",
-    "flask-appbuilder>=5.2.2, <6.0.0",
+    "flask-appbuilder>=5.3.0, <6.0.0",
     "flask-caching>=2.5.0, <3",
     "flask-compress>=1.13, <2.0",
     "flask-talisman>=1.0.0, <2.0",
diff --git a/requirements/base.txt b/requirements/base.txt
index 0be57ff35cc..1a3d9584c9d 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -120,7 +120,7 @@ flask==3.1.3
     #   flask-session
     #   flask-sqlalchemy
     #   flask-wtf
-flask-appbuilder==5.2.2
+flask-appbuilder==5.3.0
     # via
     #   apache-superset (pyproject.toml)
     #   apache-superset-core
diff --git a/requirements/development.txt b/requirements/development.txt
index 3b5ac329ca9..10bbe9885ed 100644
--- a/requirements/development.txt
+++ b/requirements/development.txt
@@ -303,7 +303,7 @@ flask==3.1.3
     #   flask-sqlalchemy
     #   flask-testing
     #   flask-wtf
-flask-appbuilder==5.2.2
+flask-appbuilder==5.3.0
     # via
     #   -c requirements/base-constraint.txt
     #   apache-superset
diff --git a/tests/integration_tests/sqllab_tests.py 
b/tests/integration_tests/sqllab_tests.py
index 00045cc774e..ca627c2848f 100644
--- a/tests/integration_tests/sqllab_tests.py
+++ b/tests/integration_tests/sqllab_tests.py
@@ -266,8 +266,19 @@ class TestSqlLab(SupersetTestCase):
         self.login(GAMMA_USERNAME)
         for endpoint in ("/sqllab/", "/sqllab/history/"):
             resp = self.client.get(endpoint)
-            # Redirects to the main page
+            # An authenticated user missing the permission is forbidden. 
Sending
+            # them to the login view would be wrong: they are authenticated, 
the
+            # failure is one of authorization.
+            assert 403 == resp.status_code
+
+    def test_sqllab_no_access_anonymous(self):
+        self.logout()
+        for endpoint in ("/sqllab/", "/sqllab/history/"):
+            resp = self.client.get(endpoint)
+            # The unauthenticated case is the other half of that distinction 
and
+            # still redirects to the login view.
             assert 302 == resp.status_code
+            assert "/login/" in resp.headers["Location"]
 
     def test_sql_json_schema_access(self):
         examples_db = get_example_database()

Reply via email to