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

small int + workaround for credentials #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

frantiekm
Copy link

We would like to contribute 2 minor changes:

  • fix for small ints to be interpreted as int
  • workaround for credentials reset within self service, now you can with configuration property disable this options when you are not using password propagation on specific resource, which will omit the error

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please if possible do not use the word "Workaround" in a parameter name or method.

Integer columnType = meta.getColumnType(i);
String columnTypeName = meta.getColumnTypeName(i);

if(meta.getColumnType(i) == 5) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type interpretation is handled in a separate project, the DB table connector has a dependency on. Please do not use this code snipped in this place and rather port this part of the contribution to the "https://github.com/Evolveum/connector-legacy-libs/tree/master/dbcommon" repository. You can use parts of the commit "Evolveum/connector-legacy-libs@6a80de7" as a reference fo the modifications needed for this.

@matusmacik
Copy link
Contributor

Hello, thank you for the contribution. I added some comments to the code during the review. Please consider the changes and rebase and retest the changes. Thank you.

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

Successfully merging this pull request may close these issues.

3 participants