Captcha sometimes fails to render

XMLWordPrintable

    • 22
    • Severity 3 - Minor
    • 5

      Issue Summary

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Enable Spam Prevention in /admin/configurecaptcha.action
      2. 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.

            Assignee:
            Manonmani Muthukrishnan
            Reporter:
            Jiri Hronik
            Votes:
            15 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: