Skip to content

Fix: Fatal error on redirection after ticket transfer (GLPI 11) - #32

Open
Windayz wants to merge 2 commits into
pluginsGLPI:masterfrom
Windayz:patch-1
Open

Fix: Fatal error on redirection after ticket transfer (GLPI 11)#32
Windayz wants to merge 2 commits into
pluginsGLPI:masterfrom
Windayz:patch-1

Conversation

@Windayz

@Windayz Windayz commented Aug 20, 2026

Copy link
Copy Markdown

Describe the bug
In GLPI 11, when a user transfers a ticket to an entity where they do not have READ access, the plugin attempts to redirect back to the ticket form (Html::redirect). The new Symfony kernel strictly intercepts this missing right and throws an AccessDeniedHttpException / Fatal Error.

To Reproduce

  1. Transfer a ticket to an entity where the active profile has no access.
  2. The transfer succeeds in the database, but the UI crashes with a "Missing READ right" fatal error.

Expected behavior
As in GLPI 10, the user should be redirected to the tickets list (Ticket::getSearchURL()) with an information message.

Solution
Added a check using $ticket->can($ticket->getID(), READ) right before the final redirection in launchTicketTransfer().

@tsmr

tsmr commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Please resolve conflict

@Windayz

Windayz commented Aug 23, 2026

Copy link
Copy Markdown
Author

It's good

@tsmr

tsmr commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Please lauch cs fixer

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