-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in V8. Get errors when clicking settings or Permission Menu after creating a new tenant #18679
Comments
I will check it |
@realLiangshiwei , what was the solution to this problem? You have closed the case but the issue still exists. I've just created a new solution and added a tenant and the probblem still there as reported as above. Thanks |
Hi, You can try to replace the MyPermissionManagementModal @using Volo.Abp.DependencyInjection
@using Microsoft.Extensions.Localization
@using Volo.Abp.PermissionManagement.Localization
@using Volo.Abp.PermissionManagement.Blazor.Components
@inherits PermissionManagementModal
@attribute [ExposeServices(typeof(PermissionManagementModal))]
@attribute [Dependency(ReplaceServices = true)]
<Modal @ref="_modal" Closing="@ClosingModal">
<ModalContent Size="ModalSize.Large" Centered="true">
<ModalHeader>
<ModalTitle>@L["Permissions"] - @_entityDisplayName</ModalTitle>
<CloseButton Clicked="CloseModal" />
</ModalHeader>
<ModalBody MaxHeight="50">
<Field>
<Check Disabled="_selectAllDisabled" Cursor="Cursor.Pointer" @bind-Checked="@GrantAll" TValue="bool">
@L["SelectAllInAllTabs"]
</Check>
</Field>
<Divider />
@if (_groups != null)
{
<Tabs TabPosition="TabPosition.Start" Pills="true" @bind-SelectedTab="@_selectedTabName">
<Items>
@foreach (var group in _groups)
{
<Tab Name="@GetNormalizedGroupName(group.Name)">
@if (group.Permissions.Any(x => x.IsGranted))
{
<span>
<b>@group.DisplayName ( @(group.Permissions.Count(x => x.IsGranted)) )</b>
</span>
}
else
{
<span>
@group.DisplayName ( @(group.Permissions.Count(x => x.IsGranted)) )
</span>
}
</Tab>
}
</Items>
<Content>
@foreach (var group in _groups)
{
<TabPanel Name="@GetNormalizedGroupName(group.Name)">
<h4>@group.DisplayName</h4>
<Divider />
<Field>
<Check
Disabled="@(IsPermissionGroupDisabled(group))"
Checked="@(group.Permissions.All(x => x.IsGranted))"
Cursor="Cursor.Pointer"
CheckedChanged="@(b => GroupGrantAllChanged(b, group))"
TValue="bool">
@L["SelectAllInThisTab"]
</Check>
</Field>
<Divider />
@foreach (var permission in group.Permissions)
{
<Field Style="@($"margin-inline-start: {_permissionDepths.GetValueOrDefault(permission.Name, 0) * 20}px")">
<Check
Disabled="@(IsDisabledPermission(permission))"
Cursor="Cursor.Pointer"
Checked="@permission.IsGranted"
CheckedChanged="@(b => PermissionChanged(b, group, permission))"
TValue="bool">
@GetShownName(permission)
</Check>
</Field>
}
</TabPanel>
}
</Content>
</Tabs>
}
</ModalBody>
<ModalFooter>
<Button Color="Color.Secondary" Clicked="CloseModal">@L["Cancel"]</Button>
<Button Color="Color.Primary" Clicked="SaveAsync">@L["Save"]</Button>
</ModalFooter>
</ModalContent>
</Modal> |
Why is this closed? We are getting the same problem. Is this going to be fixed? |
Is there any fix about this issiue? |
the problem has been fixed |
what was the solution to this problem? if you do this you will still have same error.
and if you also mean this it didn't solve anything for me:
so what was the fix? where is you solution? Could you please send it please? |
I could not reproduce the problem
|
What could be the problem in that case? i just created an App with |
Is there an existing issue for this?
Description
Encountering an issue in V8. Errors occur when attempting to access settings or the permission menu after creating a new tenant.
Reproduction Steps
Create new tenant
Expected behavior
able to use permission settings
Actual behavior
When I click Users meny in Administration > Identity Management > Users> Permissions. I get the following error
https://localhost:44361/identity/users
[2024-01-03T09:53:37.445Z] Error: System.Collections.Generic.KeyNotFoundException: The given key 'SettingManagement.Emailing.Test' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Volo.Abp.PermissionManagement.Blazor.Components.PermissionManagementModal.<>c__DisplayClass42_1.b__18(RenderTreeBuilder __builder6)
at Blazorise.TabPanel.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
log @ blazor.server.js?_v=638343977580000000:1
unhandledError @ blazor.server.js?_v=638343977580000000:1
(anonymous) @ blazor.server.js?_v=638343977580000000:1
_invokeClientMethod @ blazor.server.js?_v=638343977580000000:1
_processIncomingData @ blazor.server.js?_v=638343977580000000:1
Yt.connection.onreceive @ blazor.server.js?_v=638343977580000000:1
s.onmessage @ blazor.server.js?_v=638343977580000000:1
Regression?
NO
Known Workarounds
None
Version
8.0
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: