[CLOSE] OTRS error in log

Moderator: crythias

Locked
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

[CLOSE] OTRS error in log

Post by klausneil »

Hi anybody can tell me why say this error?

Mon Dec 10 17:56:08 2012 error OTRS-otrs.PostMasterMailbox.pl-10 Need UserID or CustomerUserID params for permission check!
Mon Dec 10 17:56:08 2012 notice OTRS-otrs.PostMasterMailbox.pl-10 Filter: 'Selección de tipos - Soporte Técnico' Stopped filter processing because of used 'StopAfterMatch' (Message-ID: <CABBqpSvgkKbGTwxyAoUfa+hfpK5y56ddm7kH++Pw97230QPbww@mail.gmail.com>)
Mon Dec 10 17:56:08 2012 notice OTRS-otrs.PostMasterMailbox.pl-10 Filter: 'Selección de tipos - Soporte Técnico' Set param 'X-OTRS-Type' to 'Soporte Técnico' (Message-ID: <CABBqpSvgkKbGTwxyAoUfa+hfpK5y56ddm7kH++Pw97230QPbww@mail.gmail.com>)
Last edited by klausneil on 17 Dec 2012, 23:24, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS error in log

Post by crythias »

An api call lacks the logged information.
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
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: OTRS error in log

Post by klausneil »

ok, but is there any way to solve it?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS error in log

Post by crythias »

Yes, provide what it lacks.

(Hint: You're only going to get information based upon what you provide. We can do this for weeks.)

Hint number two: PostMasterMailbox is doing something with a permission check

Hint number three: It's something you introduced.

Hint number four: It's code you're using

Hint number five: It's a subroutine/function in the code you introduced that is calling without credentials.

"But where?"
Beats me. it's code you put in.
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
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS error in log

Post by reneeb »

It's probably the postmaster filter for the "duplicated mails". Pass "UserID => 1," in the ticket search:

Code: Select all

my @TicketIDs = $Self->{TicketObject}->TicketSearch(
From => $MailParam{From},
Subject => $MailParam{Subject},
Body => $MailParam{Body},
UserID => 1,
);
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: OTRS error in log

Post by klausneil »

the last thing I did before I say this error was this:

From => $MailParam{From},
Subject => $MailParam{Subject},
Body => $MailParam{Body},

All the "MailParam" should be "MailParams" (note the "s" at the end)

this was to avoid duplicate mails
Locked