Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0036303mantisbtattachmentspublic2025-09-21 06:41
ReporterDebdutta Assigned Todregad  
PrioritynormalSeverityminorReproducibilitysometimes
Status assignedResolutionopen 
PlatformwebOSmacOS VersionmacOS 10.15
Product Version2.27.1 
Target Version2.27.2 
Summary0036303: Uploading a file when $g_antispam_max_event_count has been reached causes Dropzone to display HTML code
Description

Sometimes attachment section shows error(actually and html content) when upload a file

Steps To Reproduce

happens sometimes so could not reproduce intensionally

Additional Information

video
https://drive.google.com/file/d/1ZfTChvBAjHda6oyoks__mMIPgXYDh5gP/view?usp=sharing

TagsNo tags attached.

Relationships

related to 0036353 assigneddregad When dropzone file upload finishes, progress bar keeps spinning 

Activities

dregad

dregad

2025-09-17 09:23

developer   ~0070502

Is the problem always occurring with the same specific file or file type ?
Do you see errors in the browser's console or in the server's log ?
What is happening with the dropzone.js AJAX request when the problem occurs (status code, response)?
Can you provide the complete HTML code that appears on screen in your video.

dregad

dregad

2025-09-17 09:41

developer   ~0070503

Last edited: 2025-09-17 09:48

Actually I just noticed that you scrolled down 6-7 seconds into your video, and captured a screenshot which allowed me to identify the error message I was looking for:

APPLICATION ERROR 27: You have reached the allowed activity limit of 10 events within the last 3600 seconds; your action has been blocked to avoid spam, please try again later

So the problem is caused by MantisBT's antispam settings, which are possibly too low to accommodate your user's activity. As a workaround I suggest you adjust those as appropriate ($g_antispam_max_event_count, $g_antispam_time_window_in_seconds) or wait until the antispam delay expires and try again.

That being said, I would expect the AJAX to fail gracefully in such case, and not display HTML code on the screen.

image.png (628,387 bytes)
dregad

dregad

2025-09-21 06:41

developer   ~0070512

PR https://github.com/mantisbt/mantisbt/pull/2150