Skip to content

Conversation

cedric-anne
Copy link
Member

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.

Description

Building the name of a method to execute using request inputs is not safe. There is currently no security issue with this, in both GLPI and in public plugins downloadable from the plugin catalog, but it is still preferable to deprecate this way to do and remove it in a future GLPI version.

Also, we do not use it in GLPI. It was used before #17203, but if we restore a similar controller action in #21180 to fix the corresponding form, the best way would be to create a dedicated controller that extends the DropdownController to implement a specific action.

@cedric-anne cedric-anne added this to the 11.0.0 milestone Sep 30, 2025
@cedric-anne cedric-anne self-assigned this Sep 30, 2025
@cedric-anne cedric-anne merged commit 4b09b06 into glpi-project:11.0/bugfixes Oct 1, 2025
10 checks passed
@cedric-anne cedric-anne deleted the 11.0/deprecate-execute-method branch October 1, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants