Generic agent vs. UI search behaves differently

Moderator: crythias

Post Reply
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Generic agent vs. UI search behaves differently

Post by hkais »

hi there,

having a very strange error here since upgraded to 6.1 (from 6.0)
(both on Ubuntu 20.04 / source install / MariaDB-Ubuntu package)

if I search for

Code: Select all

TO: *info+*@example*something*
via standard search I am getting the results in TicketOverview

If I use exactly the same search in GenericAgent in TO field I am getting no results back.
Had also tried in GA, but with no success

Code: Select all

TO: %info+%@example%something%

Any Idea what the issue is here? And far more how to solve it?


PS: upgrade to 6.2 and 6.3 are planned, but unsure to progress if having such issues, which may come from perl changes or config issues on my end.
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Generic agent vs. UI search behaves differently

Post by skullz »

Try to include " " as well

Code: Select all

TO: "info.*@abc.com"
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Generic agent vs. UI search behaves differently

Post by hkais »

skullz wrote: 01 Jun 2022, 00:02 Try to include " " as well

Code: Select all

TO: "info.*@abc.com"
TO: "*info+*@example*something*"

did the trick, but no clue why. Thank you
Looks for me like a bug?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Generic agent vs. UI search behaves differently

Post by hkais »

shall I file a bug for this?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Generic agent vs. UI search behaves differently

Post by root »

hkais wrote: 03 Jun 2022, 15:22 shall I file a bug for this?
Why? Because you did not knew the correct notation?

- Roy
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 ?
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Generic agent vs. UI search behaves differently

Post by hkais »

so surrounding with double quotes is the correct notation and it was before?

For years my GAs have been working without double quotes. Therefore it sounds like a bug for me.
But if the correct notation was double quoted already the years before, I am fine to not isuse a bug
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Generic agent vs. UI search behaves differently

Post by root »

hkais wrote: 03 Jun 2022, 18:48 so surrounding with double quotes is the correct notation and it was before?
Yes, it prevents the ticket search from splitting up the search term into multiple strings.
hkais wrote: 03 Jun 2022, 18:48 For years my GAs have been working without double quotes. Therefore it sounds like a bug for me.
But if the correct notation was double quoted already the years before, I am fine to not isuse a bug
If I would file a bug for everything I do not know I'd had a busy time. Look at the description in the Generic Agent, the examples terms showing also double quotes.

- Roy
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 ?
Post Reply