Move Ticket Broken in 5.0.8 ?

Moderator: crythias

Locked
fisettec
Znuny newbie
Posts: 5
Joined: 23 Oct 2015, 20:03
Znuny Version: OTRS5
Real Name: Christian Fisette
Company: UQAM

Move Ticket Broken in 5.0.8 ?

Post by fisettec »

Is it me or moving ticket is broken in OTRS 5.0.8 ? If you have only the move_into permission in a queue, the move action is denied even if it should be ok.

Looking in the code, in AgentTicketMove.pm, this part is added in 5.0.8:

# check if destination queue is restricted by ACL
my %QueueList = $TicketObject->TicketMoveList(
TicketID => $Self->{TicketID},
UserID => $Self->{UserID},
);
if ( $GetParam{DestQueueID} && !exists $QueueList{ $GetParam{DestQueueID} } ) {
return $LayoutObject->NoPermission( WithHeader => 'yes' );
}

Adding the type argument to the function call seem to correct the problem:
my %QueueList = $TicketObject->TicketMoveList(
TicketID => $Self->{TicketID},
UserID => $Self->{UserID},
Type => 'move_into'
);
if ( $GetParam{DestQueueID} && !exists $QueueList{ $GetParam{DestQueueID} } ) {
return $LayoutObject->NoPermission( WithHeader => 'yes' );
}

This seem to be a bug in 5.0.8...
Charmacas
Znuny advanced
Posts: 103
Joined: 18 Jan 2016, 10:27
Znuny Version: 5.0.26 on Debian 8

Re: Move Ticket Broken in 5.0.8 ?

Post by Charmacas »

Great finding! Thanks for sharing!
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Move Ticket Broken in 5.0.8 ?

Post by wurzel »

Hi,

for this there is a move permission. So please do not publish this as a bug.

Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
fisettec
Znuny newbie
Posts: 5
Joined: 23 Oct 2015, 20:03
Znuny Version: OTRS5
Real Name: Christian Fisette
Company: UQAM

Re: Move Ticket Broken in 5.0.8 ?

Post by fisettec »

Well, the problem was precisely with the move permission. An agent with only this permission in a queue (and not full rw access) could not move a ticket in that queue: it worked prior to 5.0.8 but OTRS v5.0.8 return this message: "We are sorry, you do not have permissions anymore to access this ticket in its current state."

Notice the past tense; it's corrected now for OTRS 5.0.9. Many thanks to the OTRS Team!! :D
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Move Ticket Broken in 5.0.8 ?

Post by root »

fisettec wrote:it's corrected now for OTRS 5.0.9.
You should say for the upcoming, there is no information about a release date.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked