OTRS tried to run as .PL file when transfering owner

Moderator: crythias

Locked
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

OTRS tried to run as .PL file when transfering owner

Post by kmdot »

When i transfer ownership of a ticket to another agent, I hit submit and it tried to open the file as a .pl file, i hit cancel and nothing appears to of changed, but if you refresh the browser you see its changed.

I am wondering why this is?

There is no issue when you transfer ownership from someone else to you, only you to someone else?

Wondering what the issue is?

thanks
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

Re: OTRS tried to run as .PL file when transfering owner

Post by kmdot »

Hi

This is getting pretty critical now as I cant solve the issue.

I have had this issue a few times, but the fixes I used dont work with moving ques?

Its got to be something todo with permissions, but cant see what. Any ideas?

Thanks
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS tried to run as .PL file when transfering owner

Post by crythias »

Is this a translation issue?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

Re: OTRS tried to run as .PL file when transfering owner

Post by kmdot »

No, for some reason when I try and move from current owner to a new one. If i move from another owner to myself, then no error happens.

What happens is the script tries to open the file as a .pl script and save it?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS tried to run as .PL file when transfering owner

Post by crythias »

there might be a hint in System Log. is there?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
jgarcia
Znuny newbie
Posts: 5
Joined: 27 Jun 2011, 06:33
Znuny Version: 3.0.8
Real Name: John
Company: Pixels on IT
Contact:

Re: OTRS tried to run as .PL file when transfering owner

Post by jgarcia »

Has anyone figure out this behavior? I'm having the same problem. After assigning a new owner to the ticket, it tries to go back (redirect) to the index.pl. The only thing is that is trying to do it on the same pop-up window from where you transfer the owner. If I take the ownership of a ticket to my self or re-assigned to a previous owner it runs fine. Also, the page returns with a 404 error, like it cannot resolve the url its being redirected to.
John Garcia
Pixels on it | Dress up functionality.
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: OTRS tried to run as .PL file when transfering owner

Post by andylyc »

i have the same issue, and i find error message in log :
[Wed Oct 12 08:26:04 2011][Error][Kernel::System::Email::SMTP::Send][163] Can't send message: 550Start mail input; end with <CRLF>.<CRLF>
5.7.1 Client does not have permissions to send as this sender
! Enable Net::SMTP debug for more info!

SMTP related
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS tried to run as .PL file when transfering owner

Post by crythias »

The error message here indicates your SMTP configuration (SysConfig, Core, Sendmail) is invalid for sending email.
http://forums.otrs.org/viewtopic.php?f=53&t=11267

Basically, the Queue System email address isn't the same as the email address registered as a valid sender in the account authorizing SMTP. Chances are, you're using Exchange Server, and you want to enable the queue sender and possibly the notification sender as a valid send on behalf of in Exchange.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: OTRS tried to run as .PL file when transfering owner

Post by andylyc »

yes , i used exchange server. but in other cases, the mail system work well. i don't know what's wrong.
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: OTRS tried to run as .PL file when transfering owner

Post by andylyc »

i found SendCustomerNotification is ok , and SendAgentNotification fail , why
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: OTRS tried to run as .PL file when transfering owner

Post by andylyc »

i find the solution: modiy file ~/Kernel/System/Ticket/Article.pm

# send notify
$Self->{SendmailObject}->Send(
From => $Self->{ConfigObject}->Get('NotificationSenderName') . ' <'. $Self->{ConfigObject}->Get('NotificationSenderEmail') . '>',
To => $User{UserEmail},
Subject => $Notification{Subject},
MimeType => $Notification{ContentType} || 'text/plain',
Charset => $Notification{Charset},
Body => $Notification{Body},
Loop => 1,
);

==>

# send notify
$Self->{SendmailObject}->Send(
From => $Self->{ConfigObject}->Get('NotificationSenderName') . ' <otrs admin email adress>',
To => $User{UserEmail},
Subject => $Notification{Subject},
MimeType => $Notification{ContentType} || 'text/plain',
Charset => $Notification{Charset},
Body => $Notification{Body},
Loop => 1,
);

hard coding... not perfect
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS tried to run as .PL file when transfering owner

Post by jojo »

why did you not just change NotificationSenderEmail in Sysconfig?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: OTRS tried to run as .PL file when transfering owner

Post by andylyc »

thank you jojo, you are right
i change NotificationSenderEmail, issue fixed!!!
Locked