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

jli pushed a commit to branch fix-app-prefix-export
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 0fce64559aba6eef531e9a9b1a8aa57ebd13e7df
Author: Joe Li <[email protected]>
AuthorDate: Thu Dec 18 21:37:28 2025 -0800

    fix(sqllab): apply makeUrl to streaming export URL for subdirectory 
deployments
    
    When Superset is deployed under a subdirectory (e.g., /app or /superset),
    the streaming CSV export was failing because the URL was not prefixed
    with the application root.
    
    Apply makeUrl() to the streaming export URL to ensure proper prefixing,
    matching the pattern used by other export functionality.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
---
 superset-frontend/src/SqlLab/components/ResultSet/ResultSet.test.tsx | 1 -
 superset-frontend/src/SqlLab/components/ResultSet/index.tsx          | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/superset-frontend/src/SqlLab/components/ResultSet/ResultSet.test.tsx 
b/superset-frontend/src/SqlLab/components/ResultSet/ResultSet.test.tsx
index ad9a39f6e1..2c3dbf382e 100644
--- a/superset-frontend/src/SqlLab/components/ResultSet/ResultSet.test.tsx
+++ b/superset-frontend/src/SqlLab/components/ResultSet/ResultSet.test.tsx
@@ -747,7 +747,6 @@ describe('ResultSet', () => {
     async ({ appRoot, expectedUrl }) => {
       // This test validates that streaming export startExport receives the 
correct URL
       // based on the applicationRoot configuration.
-      // Without the fix, all cases will receive 
'/api/v1/sqllab/export_streaming/' without prefix.
       applicationRootMock.mockReturnValue(appRoot);
 
       // Create a query with enough rows to trigger streaming export (>= 
threshold)
diff --git a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx 
b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
index 8198bd2587..921f9f0d31 100644
--- a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
+++ b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
@@ -420,7 +420,7 @@ const ResultSet = ({
                     setShowStreamingModal(true);
 
                     startExport({
-                      url: '/api/v1/sqllab/export_streaming/',
+                      url: makeUrl('/api/v1/sqllab/export_streaming/'),
                       payload: { client_id: query.id },
                       exportType: 'csv',
                       expectedRows: rows,

Reply via email to