Activities of "maxim@kolychev.msk.ru"

  • ABP Framework version: v7.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: No Exception

Code In DocManager Class:

`

    private readonly IBlobContainer _docContainer;   
    ...

    public async Task SaveFileAsync(string fileName, Stream stream, bool overrideExisting)
    {
        //await _docContainer.SaveAsync(fileName, stream, overrideExisting: overrideExisting);
        //Work fine with abp v7.2.2
        //After upgrade to abp v7.3 save 0 bytes

        var content = await stream.GetAllBytesAsync();
        await _docContainer.SaveAsync(fileName, content, overrideExisting: overrideExisting);
        //Work fine!
    }`

Code in DomainModule class

    Configure<AbpBlobStoringOptions>(options =>
    {
        options.Containers.ConfigureDefault(container =>
        {
            container.UseFileSystem(fileSystem =>
            {
                fileSystem.BasePath = configuration["App:BlobBasePath"] ?? DocumentConsts.DefaultBlobBasePath;
            });
        });
    });
  • ABP Framework version: v7.1.0
  • UI type: MVC

After update to abp v7.1 soft badges looks wrong

Even on demo LepthonX site https://x.leptontheme.com/side-menu/components/bootstrap/badge

This event handler don't work

public class TenantUpdatedHandler : IDistributedEventHandler<EntityUpdatedEto<TenantEto>>, ITransientDependency
    {
        public async Task HandleEventAsync(EntityUpdatedEto<TenantEto> eto)
        {
            //Not triggered
        }
    }

Code was copied from Blazor project Client name changed to new New client was added to identity setver clients via origin blazor porject https://sportoteka.info/

I've always get UNAUTHORIZED_CLIENT error. https://bb.sportoteka.online/

What's wrong?

We can't configure TenantResolver for a project with Blazor separated IdentityServer

There are no sample for Blazor. Sample code for MVC-Tiered we found here https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver/MVC-TIERED

This code was added to IdentityServerModule:

context.Services.AddAbpStrictRedirectUriValidator(); 
context.Services.AddAbpClientConfigurationValidator();  
context.Services.AddAbpWildcardSubdomainCorsPolicyService();  
Configure<AbpTenantResolveOptions>(option => { 
    option.AddDomainTenantResolver("{0}.sportoteka.online"); 
});

to BlazorModule:

Configure<AbpTenantResolveOptions>(options => {  
    options.TenantResolvers.InsertAfter( 
        r => r is CurrentUserTenantResolveContributor, 
        new DomainTenantResolveContributor("{0}.sportoteka.info"));  
});

sportoteka.info – client domain, sportoteka.online – Api and IdentityServer

  1. No problems with connection to host
  2. Adding *.sportoteka.info to appsetting and/or IdentitiServer.. Cors/Uris tables leads to 500 error Unauthorized Client
  3. Without this record we’ve got message in console Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin' and on login 500 error INVALID_REQUEST (see here https://test-sh.sportoteka.info )
  4. If I add real tenant – no errors but connection to host, not to tenant (https://test-vb.sportoteka.info)

What’s wrong? Could you add TenantResolver Blazor sample

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.1.0-RC2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace: The following errors were detected during validation. - The SocialSecurityNumber field is required.
  • Steps to reproduce the issue:

Uncomment rows in _ModuleExtensionConfigurator.ConfigureExtraProperties

    private static void ConfigureExtraProperties()
    {
           ObjectExtensionManager.Instance.Modules()
              .ConfigureIdentity(identity =>
              {
                  identity.ConfigureUser(user =>
                  {
                      user.AddOrUpdateProperty<string>( //property type: string
                          "SocialSecurityNumber", //property name
                          property =>
                          {
                              //validation rules
                              property.Attributes.Add(new RequiredAttribute());
                              property.Attributes.Add(new StringLengthAttribute(64) {MinimumLength = 4});
                          }
                      );
                  });
              });
    }

No changes in UI (no columns or fields SocialSecurityNumber like https://docs.abp.io/en/abp/latest/Module-Entity-Extensions) After press Save button in Edit form we see error message: The following errors were detected during validation. - The SocialSecurityNumber field is required.

Showing 1 to 6 of 6 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11