Skip to content

N°8890 - Add detection of iTop API versions 1.3 and 1.4.#60

Merged
accognet merged 3 commits intoCombodo:masterfrom
jbostoen:new_api_versions
Mar 27, 2026
Merged

N°8890 - Add detection of iTop API versions 1.3 and 1.4.#60
accognet merged 3 commits intoCombodo:masterfrom
jbostoen:new_api_versions

Conversation

@jbostoen
Copy link
Copy Markdown
Contributor

Base information

Question Answer
Related to a SourceForge thread / Another PR / Combodo ticket? No
Type of change? Enhancement

Symptom (bug) / Objective (enhancement)

Enhancement: Ability to detect iTop API versions 1.3 and 1.4 ( https://www.itophub.io/wiki/page?id=latest:advancedtopics:rest_json#changes_history )

It also changes the logic to try most recent versions of the API first.

Proposed solution (bug and enhancement)

Just add the missing values.

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

Checklist of things to do before PR is ready to merge

Comment thread core/restclient.class.inc.php Outdated
@jf-cbd jf-cbd changed the title Add detection of iTop API versions 1.3 and 1.4. N°8890 - Add detection of iTop API versions 1.3 and 1.4. Nov 6, 2025
- Improve error message: Include hints on what to validate.
@jbostoen
Copy link
Copy Markdown
Contributor Author

The exception now also contains hints on what can go wrong (invalid URL, invalid credentials, missing profile, ... ).

Before the patch; it would just try all versions; then assume iTop API version 1.0 and fail later on.

@jf-cbd
Copy link
Copy Markdown
Member

jf-cbd commented Nov 28, 2025

Thanks for your PR, it got functionally accepted. We'll perform technical review in the upcoming days/weeks.

@jf-cbd jf-cbd moved this from First review needed to Pending technical review in Combodo PRs dashboard Nov 28, 2025
Copy link
Copy Markdown
Collaborator

@Hipska Hipska left a comment

Choose a reason for hiding this comment

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

Approved.

The weirdest part is that this method is only used purely for log message, so actually it doesn't add much value.

@Hipska
Copy link
Copy Markdown
Collaborator

Hipska commented Mar 27, 2026

@accognet Why are 1.3 and 1.4 removed and replaced by 2.0 (which doesn't exist?)

Comment thread core/restclient.class.inc.php Outdated
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
@accognet
Copy link
Copy Markdown
Contributor

@accognet Why are 1.3 and 1.4 removed and replaced by 2.0 (which doesn't exist?)

That's a mistake. I started a review to correct it, but you're faster than me.

@accognet accognet merged commit ce3174a into Combodo:master Mar 27, 2026
@github-project-automation github-project-automation Bot moved this from Pending technical review to Finished in Combodo PRs dashboard Mar 27, 2026
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.

6 participants