Unplanned
Last Updated: 09 Mar 2023 07:33 by Softwarehouse

Bug report

Adding the [Authorize] attribute to a controller does not hide the action methods when SecurityTrimming is enabled.

Reproduction of the problem

  1. Create an application with authorization and add an [Authorize] attribute to a controller:
    [Authorize]
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult About()
        {
            return View();
        }
  1. Add a Menu
        @(Html.Kendo().Menu()
          .Name("menu")
          .SecurityTrimming(st=>{
              st.Enabled(true);
          })
          .Items(i=>{
              i.Add().Action("Index", "Home").Text("Index");
              i.Add().Action("About", "Home").Text("About");
          })
          )

Current behavior

The Index and About menu items will not be hidden.

Expected/desired behavior

The Index and About menu items should be hidden when the [Authorize] attribute is added to the controller.

Environment

  • Kendo UI version: 2023.1.117
  • Browser: [all]
Unplanned
Last Updated: 29 Sep 2022 06:26 by Colin M

Bug report

Security trimming returns incorrect items when there are two controllers with the same name but located in different areas.

Reproduction of the problem

With the following Menu configuration

@(Html.Kendo().Menu()
    .Name("menu")
    .SecurityTrimming(st=>{
        st.Enabled(true);
    })
    .Items(i=>{
        i.Add().Action("MyAction","Home",new {area = "Area1"}).Text("Accessible Item");
        i.Add().Action("MyAction","Home",new {area = "Area2"}).Text("Authorized Item");
    })
)

and the following area/controller/action structure the MyAction Action in Area2 will not be trimmed.

Areas
|--Area1
|   |--Controllers
|       |--HomeController
|           |--MyAction
|--Area2
    |--Controllers
        |--HomeController
            |--[Authorize]MyAction

Expected/desired behavior

MyAction Action in Area2 should be trimmed.

Environment

  • Kendo UI version: 2022.3.913
  • Browser: [all]
Completed
Last Updated: 09 Sep 2022 08:23 by ADMIN
Release 2022.R3

Bug report

Security Trimming does not work with custom authorization attributes

Reproduction of the problem

When custom authorization attribute is used it is not evaluated and the menu item not hidden, if authorization has failed.

Expected/desired behavior

Security Trimming does not work with custom authorization attributes.

Environment

  • Kendo UI version: 2022.2.802
  • Browser: [all]
Unplanned
Last Updated: 02 May 2022 16:32 by Barry Burton
Created by: Barry Burton
Comments: 0
Category: Menu
Type: Bug Report
1

### Bug report

The Menu flickers on page load (i.e., when reloading the page, when navigating through the application pages).

### Reproduction of the problem

Attached is a demo that replicates the issue.

### Expected/desired behavior

The Menu should be rendered smoothly.

### Environment

* **Kendo UI version: 2022.1.412
* **jQuery version: 3.5.1
* **Browser: [all]

Unplanned
Last Updated: 17 Jan 2022 16:35 by Scott
Created by: Scott
Comments: 0
Category: Menu
Type: Bug Report
1

Bug report

A Menu submenu sometimes detaches from its parent when the root element is hovered.

Reproduction of the problem

This issue is difficult to reproduce. Multiple tries are needed.

  1. Open the Menu Orientation Demo
  2. Hover over a Menu item to expand it and its subitems
  3. Hover back over the root item

Current behavior

image

Expected/desired behavior

The subitem should not detach from its parent

Environment

  • Kendo UI version: 2021.3.1207 and 2021.3.1109
  • Browser: [all]
Unplanned
Last Updated: 25 Mar 2020 14:14 by ADMIN
Created by: Stephane
Comments: 1
Category: Menu
Type: Bug Report
1

Hello,

On Chrome for Android, the dropdown menu appears offscreen. With Firefox for Android or Chrome desktop, it works well.
This sample reproduces the problem : https://runner.telerik.io/fullscreen/@kakone/azuPAHuy. If you click on the right item (user icon), the dropdown appears offscreen.

Unplanned
Last Updated: 18 Feb 2020 11:30 by ADMIN

Bug report

Reproducible in Chrome and Firefox. Not reproducible in IE11.

Reproduction of the problem

Dojo example.
There are two Menus. In the first one navigation is triggered from the function passed to the "Sub Item 2" item's url option. In the second Menu navigation is triggered in the Menu's select event handler.

  1. Hover "Item 2" and click "Sub Item 2"
    The wiki page will open in a new tab.
  2. Check the Menu in the original tab with the dojo.

Current behavior

Doing this in the first Menu, results in the submenu remaining open.

Expected/desired behavior

The submenu should close in both scenarios, since closeOnClick is enabled by default and the select event fires before triggering the navigation.

Environment

  • Kendo UI version: 2020.1.114
  • jQuery version: x.y
  • Browser: [Chrome XX | Firefox XX]