One user cannot upload files

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
FKR_div_09
Posts: 6
Joined: 08 Nov 2021, 07:43

One user cannot upload files

Post by FKR_div_09 »

Mantis version 2.21.1
209
PHP 7.3.33

Hello everyone,

I've created a new user lately and he's the first who cannot upload docs, pics or whatever on tickets. My entire user community never faced that issue.

He's got a reporter role and can create tickets and write notes without issue, but when trying to upload files, he's got "le serveur a répondu avec le code 0" which translates to "server responded with code 0" (see pic attached).

I tried on the same tickets he did, I can upload files, including the files he tried to unsuccessfully.

Would anyone understand what it means?
Thanks a lot!
Attachments
upload_code0.jpg
upload_code0.jpg (82.62 KiB) Viewed 13988 times
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: One user cannot upload files

Post by atrol »

Does this user use the same browser like you?
Please use Search before posting and read the Manual
FKR_div_09
Posts: 6
Joined: 08 Nov 2021, 07:43

Re: One user cannot upload files

Post by FKR_div_09 »

Yes, Chrome, that I can use without issue to upload files on Mantis tickets.
On probably 200 users for more than 3 years it's the first time someone can't upload files on Mantis. Weird.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: One user cannot upload files

Post by atrol »

Maybe this user has installed a Chrome plugin that is not installed in your browser.
Please use Search before posting and read the Manual
Phroobar
Posts: 37
Joined: 13 Dec 2022, 16:14

Re: One user cannot upload files

Post by Phroobar »

We are seeing this problem ramp up lately in our organization. Today we had over 500 out of 2500 uploads fail. It just freezes up. Looking at the history it seems to have always had this problem (with avg of 50 out of 3000 failing per day) but it has ramped up recently. We've rebooted servers and taken them off line. Users report that it comes and goes. Sometimes it will work in the morning and then fail in the afternoon. It is extremely random per user but consistent when a user encounters the problem.

From our traces, it looks like no data is being sent when the upload happens. Isn't there any kind of logging we can do or error handling time out? Could it be new security added to chrome/edge recently? We are on the latest version and haven't changed anything in months. Over the last two days MantisBT has been unusable.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: One user cannot upload files

Post by atrol »

Do you have installed latest stable version 2.25.7?
Did you check web server / PHP logs for errors and warnings?
Are there any errors in the brwoser console?
Please use Search before posting and read the Manual
Phroobar
Posts: 37
Joined: 13 Dec 2022, 16:14

Re: One user cannot upload files

Post by Phroobar »

We are on 2.25.7. There are no errors in the web server / php logs that we can find. The browser console just shows it sitting there waiting.
Phroobar
Posts: 37
Joined: 13 Dec 2022, 16:14

Re: One user cannot upload files

Post by Phroobar »

We still have this problem when there are multiple columns on the load balancer. Right now we are only running one and the problem doesn't happen. When we run more than one and someone tries to upload a file, mantisbt will freeze up when uploading files. Here are from the log:


[09-Oct-2023 09:09:37 America/Tegucigalpa] Class "finfo" not found
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 1177: - - - - file_create_finfo()
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 850: - - - - file_get_mime_type()
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 75: - - - - file_add()
D:\Applications\MantisBT\MantisBT_wwwroot\core\commands\IssueAddCommand.php: 379: - - - - file_attach_files()
D:\Applications\MantisBT\MantisBT_wwwroot\core\commands\Command.php: 137: IssueAddCommand - -> - process()
D:\Applications\MantisBT\MantisBT_wwwroot\bug_report.php: 260: Command - -> - execute()
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: One user cannot upload files

Post by atrol »

Phroobar wrote: 09 Oct 2023, 16:51 [09-Oct-2023 09:09:37 America/Tegucigalpa] Class "finfo" not found
finfo is a mandatory extension when using file uploads, e.g. for some more information see https://www.mantisbt.org/bugs/view.php?id=24501#c59975
You should always run admin/check/index.php after installation
Please use Search before posting and read the Manual
Phroobar
Posts: 37
Joined: 13 Dec 2022, 16:14

Re: One user cannot upload files

Post by Phroobar »

That did the trick. Thank You!
Post Reply