View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023791 | mantisbt | attachments | public | 2018-01-08 11:50 | 2018-02-04 07:01 |
Reporter | sbordoni | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 2.10.0 | ||||
Summary | 0023791: Cannot download or view attachments (bis) | ||||
Description | Passing from v2.8.x to v2.9.0, I experience the very same problem reported into 0023737. I decided to give a new chance to v2.10, … but it seems to have the very same problem. After few investigations, I discovered that during the previous tests I installed the wrong PHP edition (TS), while IIS_exp + php_wincache need the NTS one. This resolved almost every related item into the event log, but the problem was still present. The happy end is that I had to enable php_fileinfo extension to fix it. Without it, everytime I try to download any MBT uploaded file, the problem occurs logging the following error (into php log file): [08-Jan-2018 16:06:33 Europe/Rome] PHP Fatal error: I hope it may help to fix the problem. | ||||
Steps To Reproduce | remove php_fileinfo extension and try to download an attached file. | ||||
Additional Information | PHP 7.1.13 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
The Admin Guide tells to run admin/check/index.php after upgrading. |
|
I disabled the php extension and I ran the check script in v2.8.1 and v2.10.0. Both reports contain the following warning: Fileinfo extension is available for determining file MIME types Since it's only a warning, I suppose it should not have any critical impact. According to the logged php error, the difference is that v2.9.x & v2.10.x seems to trigger an exception whenever they call: finfo_get_if_available() Then I compared the versions of the utility_api.php... v2.8.1 function finfo_get_if_available() { v2.10.0 function finfo_get_if_available() { ... and I found that the newer one seems to have a regression. The following one is a safer function version for the v2.10.x. function finfo_get_if_available() { I tested it on my system (without the extension), and everything is returned to work fine as usual. Regards |
|