tag icon indicating copy to clipboard operation
tag copied to clipboard

Search problem with Tags plugin

Open altadeos opened this issue 1 year ago • 3 comments

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [X] I have searched the existing issues

GLPI Version

10.0.17

Plugin version

2.12.1

Bug description

Hi,

It seems there is a problem with the search function and the Tags plugin. If we add 2 tags on a ticket and want to search on the ticket list all tickets that does not have a specific tag the search function still return this ticket.

Example:

Create a ticket and add 2 tags : tag1

Go to the ticket list : tag2

Set filters to exclude tickets with TAG1, the ticket is still appearing in results : tag3

I tried also this filter because saw a bug with search function fixed for 10.0.18, same result : tag4

The problem also exists on 10.0.14 and 10.0.16 versions too.

Could you please fix it ? Regards,

Relevant log output

No response

Page URL

No response

Steps To reproduce

  1. Create a ticket and add 2 tags
  2. Go to the ticket list
  3. Set filters to exclude tickets with TAG1, the ticket is still appear in results

Your GLPI setup information

System informations :

GLPI 10.0.17 ( => /var/www/glpi)
Installation mode: TARBALL
Current language:fr_FR
Operating system: Linux XXXXXXXX 6.1.0-27-amd64 #​1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64
PHP 8.2.24 fpm-fcgi (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apcu, bz2, calendar, cgi-fcgi, ctype, curl,
	date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd,
	openssl, pcre, pdo_mysql, posix, random, readline, session, shmop, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm,
	tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
	upload_max_filesize="2M" disable_functions="" 
Software: Apache/2.4.62 (Debian) (Apache/2.4.62 (Debian) Server at XXX.XXX.XXX.XXX Port 80
)
	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Server Software: Debian 12
	Server Version: 10.11.6-MariaDB-0+deb12u1
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: [email protected]/GLPI
	Host info: 127.0.0.1 via TCP/IP
	
PHP version (8.2.24) is supported.PHP version (8.2.24) is supported.
Sessions configuration is OK.Sessions configuration is OK.
Allocated memory is sufficient.Allocated memory is sufficient.
mysqli extension is installed.mysqli extension is installed.
Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.
curl extension is installed.curl extension is installed.
gd extension is installed.gd extension is installed.
intl extension is installed.intl extension is installed.
zlib extension is installed.zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.11.6) is supported.Database engine version (10.11.6) is supported.
No files from previous GLPI version detected.No files from previous GLPI version detected.
The log file has been created successfully.The log file has been created successfully.
Write access to /var/lib/glpi//_cache has been validated. Write access to /var/lib/glpi//_cron has been validated. Write access to /var/lib/glpi/ has been validated. Write access to /var/lib/glpi//_dumps has been validated. Write access to /var/lib/glpi//_graphs has been validated. Write access to /var/lib/glpi//_lock has been validated. Write access to /var/lib/glpi//_pictures has been validated. Write access to /var/lib/glpi//_plugins has been validated. Write access to /var/lib/glpi//_rss has been validated. Write access to /var/lib/glpi//_sessions has been validated. Write access to /var/lib/glpi//_tmp has been validated. Write access to /var/lib/glpi//_uploads has been validated.Write access to /var/lib/glpi//_cache has been validated.
Write access to /var/lib/glpi//_cron has been validated.
Write access to /var/lib/glpi/ has been validated.
Write access to /var/lib/glpi//_dumps has been validated.
Write access to /var/lib/glpi//_graphs has been validated.
Write access to /var/lib/glpi//_lock has been validated.
Write access to /var/lib/glpi//_pictures has been validated.
Write access to /var/lib/glpi//_plugins has been validated.
Write access to /var/lib/glpi//_rss has been validated.
Write access to /var/lib/glpi//_sessions has been validated.
Write access to /var/lib/glpi//_tmp has been validated.
Write access to /var/lib/glpi//_uploads has been validated.

Web server root directory configuration seems safe.Web server root directory configuration seems safe.
Sessions configuration is secured.Sessions configuration is secured.
OS and PHP are relying on 64 bits integers.OS and PHP are relying on 64 bits integers.
exif extension is installed.exif extension is installed.
ldap extension is installed.ldap extension is installed.
openssl extension is installed.openssl extension is installed.
Following extensions are installed: bz2, Phar, zip.Following extensions are installed: bz2, Phar, zip.
Zend OPcache extension is installed.Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/glpi/marketplace has been validated.Write access to /var/www/glpi/marketplace has been validated.
Timezones seems loaded in database.Timezones seems loaded in database.

Plugin list :

	datainjection        Name: Data Injection                 Version: 2.14.0     State: Enabled                                 
		Install Method: Marketplace
	formcreator          Name: Form Creator                   Version: 2.13.9     State: Enabled                                 
		Install Method: Marketplace
	tag                  Name: Gestion des tags               Version: 2.12.1     State: Enabled                                 
		Install Method: Marketplace
	mreporting           Name: Plus de rapports               Version: 1.8.6      State: Enabled                                 
		Install Method: Marketplace
	vip                  Name: VIP                            Version: 1.8.2      State: Enabled                                 
		Install Method: Marketplace

Anything else?

No response

altadeos avatar Nov 15 '24 14:11 altadeos

Hi @altadeos

If a ticket has both TAG1 and TAG2, it makes sense that searching for tickets that "do not have the tag TAG1" still returns this ticket, because it is not exclusively limited to TAG1.

The search sees that the ticket also has TAG2, which is not TAG1, and therefore meets the conditions to be included in the results.

This is how the GLPI engine works; it’s not perfect, we agree, but it’s a complex case that would need to be implemented (even if it’s not urgent).

stonebuzz avatar Nov 15 '24 14:11 stonebuzz

Hi @stonebuzz,

Thanks for the quick answer. I will inform my colleagues and wait for a future solution.

altadeos avatar Nov 15 '24 15:11 altadeos

I am also facing the same issue. It is important to be able to filter if the list of tags contains certain values even if the ticket contain other values (it is an intersection).

ferstring avatar Mar 24 '25 18:03 ferstring

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

github-actions[bot] avatar May 21 '25 08:05 github-actions[bot]

It is a important issue to the tags funcionality be useful. Will it not be planned to be fixed when possible?

ferstring avatar May 26 '25 12:05 ferstring