Bug Report T699967
Visible to All Users

Security - The My Details action is not available in the My Account menu with AuthenticationActiveDirectory

created 6 years ago

Hi, I have upgrade my projects from 18.1.6 to 18.2.3. After the changes, the "My Details" menu at the upper right corner of the xaf web application never show.

I have try to create a fresh application from the template, choosing authentication AD and default permission "Allow/Deny".
Same problem, the menu "My detail" never show when hover the "My account" link.

Comments (2)
Anatol (DevExpress) 6 years ago

    Hello Sebastien,

    Since the LogOff action is not available in the Active Directory authentication, only the My Details action is added to the Security Action Container (My Account menu). This Action Container is in DropDown mode. In this mode, the dropdown list is displayed only when there is more than one visible item. It is supposed that when there is a single item, it should be executed by a simple click on the root menu. However, this functionality does not work in the Security menu, since it has the DefaultItemCaption property specified. The combination of these factors (a single action, DropDown = "true" and DefaultItemCaption = "My Account") makes the My Account menu unclickable.
    We will discuss the best way to fix this issue on our side. Currently, you can resolve it as follows:

    1. Add the Default Vertical Template Content to your application.
    2. Customize the Security Action Container from its "SAC" ActionContainerHolder in one of the following ways:
       - Set the IsDropDown property to false to display the My Details action;
       - Remove the DefaultItemCaption and DefaultItemImageName attributes and set the DefaultActionID property to MyDetails to execute the MyDetails action when the My Account item is clicked:
    ASPx
    <xaf:WebActionContainer IsDropDown="true" DropDownMenuItemCssClass="accountItem" ContainerId="Security" DefaultActionID="MyDetails" />
    1. Use the created Default Vertical Template Content in your application:
    C#
    protected void Session_Start(Object sender, EventArgs e) { Tracing.Initialize(); WebApplication.SetInstance(Session, new Web181ADAuthAspNetApplication()); WebApplication.Instance.Settings.DefaultVerticalTemplateContentPath = "DefaultVerticalTemplateContent1.ascx"; DefaultVerticalTemplateContent1.ClearSizeLimit();
    SV SV
    Sebastien Veilleux 6 years ago

      Thanks Anatol,

      in either solution, the image beside "My Account" is not displayed anymore.

      To fix it, I've done the following:
      - set IsDropDown="false"
      - Edit the MyDetails action in the model and set it PaintStyle to "CaptionAndImage".

      Answers approved by DevExpress Support

      created 6 years ago (modified 6 years ago)

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Additional information:

      To support this scenario, we've changed WebActionContainer's behavior as follows:
      - Menus with IsDropDown="True" should have either DefaultItemCaption or DefaultActionID parameters defined'
      - Menus with DefaultItemCaption will always show their dropdown'
      - Menus with DefaultActionID will show the dropdown only when more than one item is available.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.