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

Fix N°7338 to actually use "itop_login" #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hipska
Copy link
Collaborator

@Hipska Hipska commented Jun 13, 2024

Base information

Question Answer
Related to a SourceForge thread / Another PR / Combodo ticket? N°7338
Type of change? Bug fix

Symptom

Since #43, the documentation said it would use itop_login as fallback if no synchro_user was set. But this is wrong and it does not set any synchro_user.

Reproduction procedure

  1. With any collector
  2. Do not set a value for synchro_user
  3. Run exec.php --configure_only
  4. Observe on iTop the User field of the Synchro Data Source to be empty.

Cause

The problem exists because the Parameters::Get method only checks if the key exists and then returns it, but since <synchro_user></synchro_user> is present in the params.distrib.xml file, it never tries to get the value for itop_login.

Proposed solution

See code

Checklist before requesting a review

  • I have performed a self-review of my code, and that it's compliant with Combodo's guidelines
  • I have tested all changes I made on an iTop instance
  • I have added a unit test, otherwise I have explained why I couldn't
  • I have made sure the PR is clear and detailled enough so anyone can understand the real purpose without digging in the code

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

Successfully merging this pull request may close these issues.

1 participant