Captchas give random symbols instead of letters

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

この記事はアトラシアンのサーバー製品にのみ適用されます。クラウドとサーバー製品の違いについてはこちらをご確認ください。



問題

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

原因

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

ソリューション

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


最終更新日 2018 年 7 月 24 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.