-
Notifications
You must be signed in to change notification settings - Fork 436
Embedding a password (for scheduling an extract) does not work #1062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jog-ioki When you run the |
sorry. should have mentioned that. i tried to explicitly set the username/pwd as well. Problem was always that valueembed_password never switched to
|
@jog-ioki I am able to in my testing successfully update the connection. I have a suspicion as to what is happening. After you update the attributes of Try this, and let us know if it works. from copy import deepcopy
workbook = server.workbooks.get_by_id('xyz')
server.workbooks.populate_connections(workbook)
connection1 = deepcopy(workbook.connections[0])
datasource1 = server.datasources.get_by_id(connection1.datasource_id)
server.datasources.populate_connections(datasource1)
connection1.username='jhdsfga'
connection1.password=''
connection1.embed_password=True
server.workbooks.update_connection(workbook, connection1) |
i am very sorry to get back to You so late! It does not work in my setup. Some things that might be special:
Sorry maybe those question are totally irrelevant, i am just thinking out loud what might be the difference here. |
@jog-ioki Looking at the code, it evaluates the password in the I can put in a pull request to do an identity comparison to |
Okay cool. That explains it. Thanks for checking! Thanks again for taking the time to look into it!! Appreciate that! |
Resolves #1062 - cannot set empty password
Resolves #1062 - cannot set empty password
Describe the bug
We are currently trying to automate the creation of workbooks on the server via Tableau APIs. Version is:
All our workbooks have an embedded connection string to a PostgreSQL database (no published datasource!) All workbooks contain their own and a custom SQL is “contained” in each of datasource per workbook)
Uploading with a live connection works
We now try to get some workbooks and create an Extract for them. Here is example code (note that this is unrelated to TSC)
Running this will give us an error like:
The action seem to be clear – we need to embed the password.
Problem: We are not able to embed the password to start the extract.
Here is the code - we tried using TSC for it:
Versions
Details of your environment, including:
To Reproduce
see code last snipped
Results
Fails silently (no error message, but embed_password flag remains false)
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
The text was updated successfully, but these errors were encountered: