Activities of "saad.aldulaijan"

Try adding it to the AdministrationService.Host please. SettingMagement is hosted by AdministrationService.

I did that already, it did not work

  • ABP Framework version: v7.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: AbpException: Setting value for 'Abp.Mailing.Smtp.Password' is null or empty!
  • Steps to reproduce the issue:"

I am using Microservices template, I am trying to send confirmation email to the user after registration from AuthServer:

appsettings.json

Commented nullable email sender:

Error:

Database:

hi

I am using Microservices template v7.0.1, should I upgrade ?

Can you test your code with the latest project template?

Hi, I tried the latest version, same issue

hi

I also tried to add on Auto Mapper Profile

Do not add this, The module will handle the mapper.

Is the ExtraProperties exists on database table?

Can you test your code with the latest project template?

If still not working please share the project. liming.ma@volosoft.com

Hi ,

I am using Microservices template v7.0.1, should I upgrade ?

The field exists on database

This is exactly what I want.

I also tried to add on Auto Mapper Profile

public class IdentityServiceApplicationAutoMapperProfile : Profile
{
    public IdentityServiceApplicationAutoMapperProfile()
    {
        CreateMap<OpenIddictApplication, ApplicationDto>().MapExtraProperties();     
    }
}

It throws an exception:

AutoMapper.AutoMapperConfigurationException: Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters

OpenIddictApplication -> ApplicationDto (Destination member list) Volo.Abp.OpenIddict.Applications.OpenIddictApplication -> Volo.Abp.OpenIddict.Applications.Dtos.ApplicationDto (Destination member list)

Unmapped properties: AllowPasswordFlow AllowClientCredentialsFlow AllowAuthorizationCodeFlow AllowRefreshTokenFlow AllowHybridFlow AllowImplicitFlow AllowLogoutEndpoint AllowDeviceEndpoint Scopes

  • ABP Framework version: v7.1.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am adding ExtraProperties to OpenIddictApplication entity, however, when I retrieve it, it is null always.

My AppService to update the property named "ServiceName" it is working fine.

public async Task<string> UpdateAsync(Guid applicationId, string serviceName)
    {
        var application = await _applicationRepo.GetAsync(x => x.Id == applicationId);
        application.SetServiceName(serviceName);
        await _applicationRepo.UpdateAsync(application);

        return serviceName;
    }

when i fetch in angular

this.applicationService.getList(input).subscribe(res => {
      console.log(res.items);
    })

I got this:

I added this block of code on Domain.Shared project:

private static void ConfigureExtraProperties()    {        
    ObjectExtensionManager.Instance.Modules()
        .ConfigureOpenIddict(openIddict => {                
            openIddict.ConfigureApplication(app => {
                app.AddOrUpdateProperty<string>("ServiceName");                
                });            
            });    
}

I got this:

What am I missing ?

I already tried it it didn't work, it returns 401 if not authenticated. It seems fileDescriptorAppService itself is secured.

  • ABP Framework version: v7.0.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am using FileManagementModule; and I want to allow anonymous uploads, how can i achieve this.

I tried overriding the following and it didn't work:

I tried to override the controller:

    [ExposeServices(typeof(FileDescriptorController))]
    [AllowAnonymous]
    public class MyFileDescriptorController : FileDescriptorController
    {
        public MyFileDescriptorController(IFileDescriptorAppService fileDescriptorAppService) : base(fileDescriptorAppService)
        {
        }


        [AllowAnonymous]
        [HttpPost]
        [Route("upload")]
        public override Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
        {
            return FileDescriptorAppService.CreateAsync(directoryId, inputWithStream);
        }

    }

overriding the app service


[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IFileDescriptorAppService), typeof(FileDescriptorAppService), typeof(MyFileDescriptorAppService))]

[AllowAnonymous]
public class MyFileDescriptorAppService : FileDescriptorAppService
{
    public MyFileDescriptorAppService(IFileManager fileManager,
        IFileDescriptorRepository fileDescriptorRepository,
        IBlobContainer<FileManagementContainer> blobContainer,
        IDistributedCache<FileDownloadTokenCacheItem, string> downloadTokenCache)
        : base(fileManager, fileDescriptorRepository, blobContainer, downloadTokenCache)
    {
    }


    [AllowAnonymous]
    public override async Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
    {
        await CheckSizeAsync(inputWithStream.File.ContentLength ?? 0);

        var fileDescriptor = await FileManager.CreateAsync(inputWithStream.Name, inputWithStream.File.ContentType, inputWithStream.File, directoryId, CurrentTenant.Id, overrideExisting: true);

        await CurrentUnitOfWork.SaveChangesAsync();

        fileDescriptor = await FileDescriptorRepository.FindAsync(fileDescriptor.Id);
        inputWithStream.MapExtraPropertiesTo(fileDescriptor);
        await FileDescriptorRepository.UpdateAsync(fileDescriptor);
        return ObjectMapper.Map<FileDescriptor, FileDescriptorDto>(fileDescriptor);

    }
}
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am trying to do: abp generate-proxy -m OrderService and it is showing the subjected error message.

I tried with --url , same thing.

Solution is to have shared library between the services. ETO must be exactly the same.

Showing 11 to 20 of 26 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13