Skip to content

Fix: restore GLPI 11 install and CI checks - #36

Open
Rom1-B wants to merge 3 commits into
mainfrom
fix/ci
Open

Rom1-B wants to merge 3 commits into
mainfrom
fix/ci

Conversation

@Rom1-B

@Rom1-B Rom1-B commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes #N/A
  • The plugin could not be installed on GLPI 11 and every CI lint step failed.
  • Installation queries, rights method signatures, deprecated error display calls and lint configurations are now compatible with GLPI 11.
In DBmysqlIterator.php line 935:
  Building and executing raw queries with the `DBmysqlIterator::execute()` method is prohibited.

Screenshots (if appropriate):

@Rom1-B
Rom1-B requested review from a team, Herafia, Lainow and jdurand-teclib and removed request for a team October 23, 2026 09:39
Comment thread front/package.php Outdated
Search::show('GlpiPlugin\Deploy\Package');
} else {
Html::displayRightError();
throw new AccessDeniedHttpException();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The AccessDeniedHttpException is thrown after Html::header(). As a result, the HTML header has already been sent, and the error page may appear within the layout or display incorrectly. It would be better to check canView() before calling Html::header()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@Rom1-B
Rom1-B requested a review from Herafia October 23, 2026 13:35
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.

2 participants