Issue with Index Permissions for role

I have an Index pattern named msgwh*, and I’m trying to restrict who can access the data per index, so I created a role with index permission to msgwh*: data_access and search, but when the user in that role goes to discover, it shows nothing.

However, if I add an index permission like b* (totally random) the user login and go to discover and everything works like expected.

Seems like some kind off bug to me.

I’m using version 1.6.0

I found out that the problem is when I add a Tennant pattern to the role, if the Tennant name happens to have special characters it will cause this kind of issues. My tenant was named: ABC-DEF, and this was happening, changed it to ABCDEF and its working as expected.