Captchas give random symbols instead of letters

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible



Problem

When presented with a CAPTCHA during login symbols that can't be typed are presented instead of common characters that can be typed.

Cause

This looks like an issue with font mapping on the OS. CAPTCHA library uses three fonts: nyalaBell MT and Credit valley. If Java cannot find given font, it falls to the dialog font - an abstract one, which is mapped to some default system font.

Diagnostic

  • check if given fonts (nyalaBell MTCredit valley) are present on the Crucible instance - upload them if not present. Fonts are typically stored as .ttf files and finding which fonts are installed differs depending on the OS:

    - Mac OS - https://support.apple.com/en-us/HT201722
    - Linux - command fc-list should work ( As it depends on the distro, please consult the relevant documentation for your distro)
    Windows - Have a look under Control Panel -> Fonts -> View installed fonts



  • check what font Java uses as default - configuration should be present under $JAVA_HOME/jre/lib/fontconfig.properties.src; lines responsible for mapping should look like:

    dialog.plain.alphabetic=Arial
    dialog.plain.chinese-ms950=MingLiU
    dialog.plain.hebrew=David
    dialog.plain.japanese=MS Gothic
    dialog.plain.korean=Gulim
    
    dialog.bold.alphabetic=Arial Bold
    dialog.bold.chinese-ms950=PMingLiU
    dialog.bold.hebrew=David Bold
    dialog.bold.japanese=MS Gothic
    dialog.bold.korean=Gulim
    
    dialog.italic.alphabetic=Arial Italic
    dialog.italic.chinese-ms950=PMingLiU
    dialog.italic.hebrew=David
    dialog.italic.japanese=MS Gothic
    dialog.italic.korean=Gulim

Resolution

Ensure that the instance's host machine has those fonts available and they can be accessed by Java.


Last modified on Jul 24, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.