You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-04-28 14:05:19

mps
Member
Registered: 2022-10-04
Posts: 32

Inline-Images are added to Ticket, even when in "ignore area".

Hello!

We've included an image in the ticket notification template. When a user answers that mail, the image is appended to that message (as seen in timeline), even tough the image is within the "ignore area". This is not an expected behavior.

Mail:

=-=-=-= To answer by email, write above this line =-=-=-=
[inline image]
[text from template]
=_=_=_= To answer by email, write under this line =_=_=_=

User answers above the upper line.
The timeline in the ticket view displays only the text entered above the line. That's OK.
But the newly created entry in the timeline also has the inline image attached from the original mail. That's unexpected, a bug.


Environment:

GLPI 10.0.7 ( => /var/www/html/glpi)
Installation mode: TARBALL
Current language:en_GB

Operating system: Linux xxx 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
PHP 8.1.17 fpm-fcgi (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, 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, pspell, readline, session, shmop, snmp, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm, tidy,
    tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
    upload_max_filesize="2M"
Software: nginx/1.18.0
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.48
Server Software: Debian 11
    Server Version: 10.5.18-MariaDB-0+deb11u1-log
    Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
    Parameters: xxx@xxx/xxx
    Host info: Localhost via UNIX socket

Offline

#2 2023-04-29 01:54:57

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: Inline-Images are added to Ticket, even when in "ignore area".

It sounds like the email client/server is adding the image as an attachment and GLPI doesn't distinguish it from any document a user meant to attach.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB