Skip to content
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

Unable to update password in DBCP controller service #300

Open
silverbullet1 opened this issue Jan 12, 2022 · 1 comment
Open

Unable to update password in DBCP controller service #300

silverbullet1 opened this issue Jan 12, 2022 · 1 comment

Comments

@silverbullet1
Copy link

silverbullet1 commented Jan 12, 2022

  • Nipyapi version: latest
  • NiFi version: 1.13.2
  • NiFi-Registry version: not using
  • Python version: 3.8
  • Operating System: linux

Description

So I am trying to automate the creation of DBCP controller service from a Jenkins job where I take params as database name, table, host etc..and then inside my script, I create a new empty DBCP, get its peroperties and then update all the keys with respective values. For the values part I am using parameters. Here's a small snippet to demonstrate what I mean :

properties = controller_service_entity.to_dict()['component']['properties']
properties['Database Connection URL'] = "jdbc:postgresql://{}:{}/{}".format(host, port, db)
properties['Database User'] = "#{my_user}"
properties['Password'] = "#{my_pass}"

(and other misc properties)

Now the problem is that everything is created correctly except for the password..It does not refer the parameter which I have hardcoded by name. I can see that because the connection fails due to wrong auth and secondly, when I open the controller settings, I don't see the small arrow icon next to the password field which should take me to the parameter..and when I open param context, I don't see it being referred by the newly created DBCP either(obviously).

What I Did

Don't know how to tackle this.

Urgency

Very urgent.

@Chaffelson
Copy link
Owner

We chatted on slack; I have been unable to reproduce this with NiPy 0.18 on NiFi 1.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants