View Issue Details

IDProjectCategoryView StatusLast Update
0032022mantisbtbugtrackerpublic2023-03-20 13:57
Reporterhsmailhari Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionunable to reproduce 
Product Version2.24.1 
Summary0032022: Image upload issue
Description

We are using mantis for bug & issues tracking. We recently redeployed mantis bug tracker to a new aws cluster as pod. We didn't faced any
issues before but after migrating to the new aws kubernetes cluster we faced a issue.
We are able to add notes and after attaching image the uploading got stuck and later shows server responded with 0 code.
After just refreshing and attaching again the image upload will works. This will not happen every time but several time the users experience this issue

On checking the google chrome console I found failed to load resource: net:ERR_CONNECTION_RESET error

also Uncaught (in promise) Error: A listener indicated an asynchronous view.php:1 response by returning true, but the message channel closed before a response was received.

After refreshing we are able to upload image successfully but this causing inconvenience to several users. Please help

Steps To Reproduce

add notes
attach image
upload-fail(only note will add on submit)

Then refresh
Image will upload

TagsNo tags attached.

Relationships

related to 0029336 acknowledged session died due to Cloudflare proxy 

Activities

dregad

dregad

2023-02-09 07:22

developer   ~0067377

This seems to be quite specific to your environment, and moreover considering that it's not consistently repeatable, I'm afraid there is not much that we could do to help.

hsmailhari

hsmailhari

2023-02-15 02:11

reporter   ~0067389

Last edited: 2023-02-15 02:12

I think this related to the session timeout.
But I didn't found anything good from the logs and only thing I found in error log is

php warning 2702 in /srv/matiscbt/core/session_api.php on line 218

Also something to note is that we are using ALB here so the IP will change randomly. Do you think this will cause any issues. Also any way to disable the session timeout?

dregad

dregad

2023-02-15 03:40

developer   ~0067390

I don't think it's related to a session timeout; in that case you would more likely get an error 2800. But feel free to adjust your session settings (refer to PHP documentation for details).

Error 2702 (ERROR_SESSION_NOT_VALID) is triggered when the user's session IP address changed, so indeed if your system will randomly change IP addresses it will be a problem when you also use validated sessions ($g_session_validation = ON , which is the default) AND the user has opted for a secure session (i.e. checked the Only allow your session to be used from this IP address box at login time).

Note that setting $g_session_validation = OFF introduces a security risk (session hijacking).

Please refer to 0029336 which I believe is a similar issue.

dregad

dregad

2023-03-05 05:01

developer   ~0067451

hsmailhari,

You did not provide any feedback; I am therefore resolving this issue as "unable to reproduce".

Feel free to reopen the issue at a later time and provide the requested information.