Translated message

A translation of this page exists in English.

EPP 5 または JPP 6 において、exoadmin UI のユーザー名バリデーションは設定可能か?

Solution Unverified - Updated -

Issue

  • ユーザーをグループに追加すると、Users and Groups Management ポートレットの Groups Management タブで問題が発生します。ユーザー名が数字で構成されている場合もあります。画面で [Save] をクリックすると、以下のようなバリデーションの警告ダイアログが表示されます。

    'The field "User Name" can only contain alpha, digit, comma, dash characters. 
    The first and last character must be a letter.'
    

詳細に調べると、ハードコードの正規表現がバリデーションに使用されていることが分かります。たとえば、以下のコードは org.exoplatform.organization.webui.component.UIGroupMembershipForm クラスです。

  addUIFormInput(new UIFormStringInput(USER_NAME, USER_NAME, null)
                     .addValidator(MandatoryValidator.class)
                     .addValidator(ExpressionValidator.class, 
                        "^\\p{L}[\\p{L}\\d._\\-,]+$", "UIGroupMembershipForm.msg.Invalid-char"
                     )
                );

バリデーション表現を設定することはできませんか?

Environment

  • JBoss Enterprise Portal Platform (EPP)
    • 5.0.x
    • 5.1.x
    • 5.2.0
  • Red Hat JBoss Portal (JPP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content