There are 2 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-281f9490-6654-4c74-9b65-5d73725e26e2 XWIKI-24240 Open

500 Error during registration caused by CAPTCHA store size limitation

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-effbb23d-3b3c-436a-8e80-c525098e3e5a Changes by slauriere on 12/May/26 09:46
 
Summary: 500 Error during registration caused by CAPTHCA CAPTCHA store size limitation
Description: Users receive 500 HTTP Server error when trying to register if the CAPTHCA CAPTCHA is configured on their server.  The issue occurs across multiple CAPTHCA CAPTCHA types (sound, image, etc).

Error identified in the stack trace:

{code :java }
com.octo.captcha.service.CaptchaServiceException: Store is full, try to increase CaptchaStore Size orto decrease time out, or to decrease CaptchaStoreSizeBeforeGrbageCollection
{code}

The issue seems to happen because the CAPTCHA service can't handle many requests well.
 
 

1 comment

 
cid:jira-generated-image-avatar-effbb23d-3b3c-436a-8e80-c525098e3e5a slauriere on 12/May/26 09:41
 
The default captcha service is initialized with a maximum store size of 100k and a garbage collection trigger set at 75k (reference:[CaptchaServiceManager.java|https://github.com/xwiki/xwiki-platform/blob/3e8e6ed34588bc4d54c465455714f28228846670/xwiki-platform-core/xwiki-platform-captcha/xwiki-platform-captcha-jcaptcha/xwiki-platform-captcha-jcaptcha-api/src/main/java/org/xwiki/captcha/internal/CaptchaServiceManager.java]). There is no reason for the store size to grow that large under normal usage , which suggests that the . The fix may lie lies in blocking invalid requests either at XWiki or at the HTTP server levels level .