View Issue Details

IDProjectCategoryView StatusLast Update
0030934mantisbtattachmentspublic2022-09-14 03:22
Reporternosek1969 Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.25.5 
Summary0030934: internal application error in adding cases with jpeg image
Description

internal application error in adding cases with jpeg image
When add case with added jpg image, after send, generated error.
Case is added but without jpg file

System OpenSuse leap 15.4
Wersja MantisBT 2.25.5
Wersja schematu 211
Wersja PHP 8.0.10
Sterownik bazy danych mysqli
Wersja bazy danych, opis 10.6.8, 10.6.8-MariaDB

Steps To Reproduce
  1. add case
  2. put file or select with explorer
TagsNo tags attached.

Activities

dregad

dregad

2022-08-30 05:52

developer   ~0066958

INTERNAL APPLICATION ERROR means some unexpected PHP error or uncaught Exception occurred.

Please check your server's log for details about the error. You may also try to set $g_show_detailed_errors = ON;

nosek1969

nosek1969

2022-09-13 08:58

reporter   ~0066990

INTERNAL APPLICATION ERROR

Class "finfo" not found
Proszę użyć przycisku „Wstecz” w przeglądarce by powrócić do poprzedniej strony. Tam można poprawić to co spowodowało błąd lub wybrać inną operację. Można również kliknąć opcję w górnym menu, aby przejść bezpośrednio do innej sekcji.
Detailed error information

Full path: /srv/www/htdocs/core/error_api.php
Line number: 92

Stack trace

| Filename | Line | Class | Type | Function | Args

0 | /srv/www/htdocs/core/file_api.php | 1177 | - | - | file_create_finfo | -
1 | /srv/www/htdocs/core/file_api.php | 850 | - | - | file_get_mime_type | -
2 | /srv/www/htdocs/core/file_api.php | 76 | - | - | file_add | -
3 | /srv/www/htdocs/core/commands/IssueNoteAddCommand.php | 255 | - | - | file_attach_files | -
4 | /srv/www/htdocs/core/commands/Command.php | 137 | IssueNoteAddCommand | -> | process | -
5 | /srv/www/htdocs/bugnote_add.php | 64 | Command | -> | execute | -

dregad

dregad

2022-09-14 03:22

developer   ~0066991

You need to install the PHP fileinfo extension on your server, as stated in the Admin Guide:
https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.install.requirements.software

Fileinfo - required for file attachments and most of the plugins
Without this extension, file attachment previews and downloads do not work as MantisBT won't be able to send the Content-Type header to a browser requesting an attachment.