[maliming] said: hi
This exception doesn't happen in the .NET CLI and the Rider IDE, so it's related to Visual Studio.
You can eliminate it in VS or catch the exception.
try { var accessToken = ctx.Request.Query["access_token"]; var path = ctx.Request.Path; if (!string.IsNullOrEmpty(accessToken) && path.StartsWithSegments("/signalr-hubs/chat")) { ctx.Request.Headers["Authorization"] = "Bearer " + accessToken; } await next(); } catch (IOException ex) when (ctx.RequestAborted.IsCancellationRequested) { // Read stream exceptions caused by the client disconnecting or canceling the request can usually be ignored. } catch (OperationCanceledException) when (ctx.RequestAborted.IsCancellationRequested) { // Same as above. }Thanks.
Thanks, but we are aware how to either change the code or the settings of Visual Studio to avoid this but we believe we shouldn't have to and that the ABP code should instead be updated to handle this unless there is a good reason for not handling this?
[maliming] said: hi
I think there will be no exception if you run the api by
dotnet runcommand.If so, you can ignore this exception in VS.
Thanks.
I believe this is something that should be handled better in the code, as this would require manual configuration in every project using the Chat module which should not be needed.
Thanks.
[maliming] said: hi
We will adjust Angular to display
nameandsurnamein the next patch version.Also, how could we disable/hide everything but the logout button in this absurdly complicated user menu that make it seem like you are logged in as an admin even though it is a normal user?
Our Angular team will guide you in removing the menu items.
For MVC:
You can add a new
MyUserMenuContributorto remove them.PostConfigure<AbpNavigationOptions>(options => { options.MenuContributors.Add(new MyUserMenuContributor()); }); public class MyUserMenuContributor : IMenuContributor { public virtual Task ConfigureMenuAsync(MenuConfigurationContext context) { if (context.Menu.Name != StandardMenus.User) { return Task.CompletedTask; } context.Menu.TryRemoveMenuItem("Account.LinkedAccounts"); context.Menu.TryRemoveMenuItem("Account.AuthorityDelegation"); context.Menu.TryRemoveMenuItem("Account.ExternalLogins"); return Task.CompletedTask; } }Thanks.
Thanks you.
Please consider refunding this ticket as it seems it identified a problem.
At least with the Angular UI, if you install and enable the Chat module, it will throw exceptions at every page load
This goes away if you disable chat module so the source of the error is quite obvious.
Not sure what real user impact this has but at least it makes debugging much more complex as you will constantly have it break here (or have to put in rules for ignoring exceptions)
Thanks.
This seem to be related
https://abp.io/support/questions/5889/Use-user-first-name-and-last-name-on-the-menu-profile--instead-of-user-name-in-ABPUSer-table
but seems complicated and will probably break if LeptonX theme is updated.
We would ideally just want to his the username below the profile picture, and then have all UIs show Firstname Lastname when you go into the user accont menu (like with the MVC UI)
Ai instructions seems wrong here, referring to non existent files etc
Hi,
It seems like ABP breaks when you are using longer usernames like "reallylongusername"
there also seems to be inconsistencies between UIs, above is angular UI, below is the same page in My Account for API (which I think is MVC)
One displays name, the other one displays username.
<br> Why is different UIs showing different things (username vs firstname and lastname) for same page?
How can we modify/change this so that a truncated username is not shown and also which properties are shown (username, firstname, lastname etc)
Thanks.
Please fix the servicebot closing unresolved issues
ABP support team answer please