-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 8.6.1, 8.5.4, 7.19.26, 9.0.2, 8.5.14, 8.5.18, 9.3.1, 9.2.2, 8.5.21
-
Component/s: Editor - Front end - Page / Comment
-
22
-
Severity 3 - Minor
-
5
Issue Summary
This is reproducible on Data Center: (yes) / (no)
Steps to Reproduce
- Enable Spam Prevention in /admin/configurecaptcha.action
- Go to a page and type a new comment (don't save)
Expected Results
Sometimes, the captcha image is not displayed.
To reproduce the issue, try saving a few times without entering captcha - it will reload the image.
Actual Results
Image fails to render.
The network request returns 500 with HTML containing:
Cause
word is too tall: try to use less letters, smaller font or bigger background: text bounds = {text=powden java.awt.geom.Rectangle2D$Float[x=0.0,y=-36.34082,w=20.237305,h=46.301758] ascent=36.34082 descent=9.9609375 leading=0.0 java.awt.geom.Rectangle2D$Float[x=40.237305,y=-27.84668,w=20.610352,h=34.921875] ascent=27.84668 descent=7.0751953 leading=0.0 java.awt.geom.Rectangle2D$Float[x=80.84766,y=-28.774902,w=25.354004,h=36.085938] ascent=28.774902 descent=7.311035 leading=0.0 java.awt.geom.Rectangle2D$Float[x=126.20166,y=-35.271973,w=19.110352,h=44.93994] ascent=35.271973 descent=9.667969 leading=0.0 java.awt.geom.Rectangle2D$Float[x=165.31201,y=-27.84668,w=20.34668,h=34.921875] ascent=27.84668 descent=7.0751953 leading=0.0 java.awt.geom.Rectangle2D$Float[x=205.65869,y=-27.84668,w=21.357422,h=34.921875] ascent=27.84668 descent=7.0751953 leading=0.0 } with fonts {java.awt.Font[family=SansSerif,name=SansSerif,style=bold,size=31] java.awt.Font[family=DialogInput,name=DialogInput,style=bolditalic,size=34] java.awt.Font[family=SansSerif,name=SansSerif,style=bolditalic,size=30] java.awt.Font[family=Dialog,name=Dialog,style=italic,size=31] java.awt.Font[family=DialogInput,name=DialogInput,style=italic,size=33] java.awt.Font[family=DialogInput,name=DialogInput,style=bold,size=30] } versus image width = 200, height = 50
Workaround
Reload the captcha image until it successfully loads.