tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
647 stars 417 forks source link

Datasource / Workbook downloaded doesn't have spaces in filenames #1274

Open swaroop4593 opened 10 months ago

swaroop4593 commented 10 months ago

I'm using python 3.9 , tableauserverclient = v0.26 to download a datasource named "Athena datasource.tdsx"

But the downloaded file has the name "Athenadatasource.tdsx" without spaces.

Code: server.datasources.download(ds.id, output_dir, include_extract=False)

Cristian-CATO commented 5 months ago

Confirm having the same issue after I upgraded Tableau Server from v2022.1.14 to v2022.1.20 (to get the security patch at v2022.1.19), was using the API successfully all throughout last week until the upgrade on Friday and been failing since due to whitespaces been stripped from the downloaded datasource file names, haven't tested workbooks I assume same applies.

tableauserverclient==0.15.0 Python 3.6.9

Datasources before

'DS BI Applications.tdsx' 'DS BI Bundle Enrollments.tdsx' 'DS BI Certificate Enrollments.tdsx' 'DS BI Conference Enrollments.tdsx' 'DS BI Course Section Enrollments.tdsx' 'DS BI Facilities.tdsx' 'DS BI Instructors.tdsx' 'DS BI Program Offering Enrollments.tdsx' 'DS BI Revenue.tdsx'

Datasources current

DSBIApplications.tdsx DSBIBundleEnrollments.tdsx DSBICertificateEnrollments.tdsx DSBIConferenceEnrollments.tdsx DSBICourseSectionEnrollments.tdsx DSBIFacilities.tdsx DSBIInstructors.tdsx DSBIProgramOfferingEnrollments.tdsx DSBIRevenue.tdsx

annamalaikasi commented 5 months ago

I have the same issue as well. Is there a fix in place to get the spaces back?