hi
This error message is coming from the OpenIddict/OAuth2 server.
You can't localize it. But you can check it in your app and show an ABP localization message.
Can you share the logs of this error request?
Thanks.
hi
It would be best if you could share a project that reproduces the problem.
I will find out the reason.
liming.ma@volosoft.com
Thanks.
hi
If you haven't changed any of the abp filter code, it is enabled by default. That's why I want you to provide a project.
Thanks
如果你想禁用这个行为
你可以从DefinitionProviders移除你不需要的权限定义提供者.
services.PostConfigure<AbpPermissionOptions>(options =>
{
options.DefinitionProviders.Remove...
});
hi
If your package version is 9.2.3 then there should be no AND (@__ef_filter__p_0 = 1 OR [IsDeleted] = 0) query.
Can you share a simple project?
liming.ma@volosoft.com
Thanks.
hi
Can you create a new project and create a private GitHub repository?
I will add some code.
My GitHub: https://github.com/maliming
Thanks
hi
What is your ABP version?
We added a new feature after 8.3.0
see https://abp.io/community/articles/use-userdefined-function-mapping-for-global-filter-pht26l07
Thanks
hi
Can you share the console output of dotnet run command?
There should be an error message.
[11:00:06 ERR] ABP-LIC-ERROR - License check failed for 'Volo.Abp.Account.Pro.Public.Application-v10.0.1.0'.
You need to log in using the command `abp login <username>`.
For more information, contact to license@abp.io.
Thanks.
hi
Can you try code below:
using System.Collections.Generic;
using System.Linq;
using Riok.Mapperly.Abstractions;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Mapperly;
using Volo.Abp.ObjectMapping;
using Volo.Forms.Choices;
using Volo.Forms.Forms;
using Volo.Forms.Questions;
using Volo.Forms.Questions.ChoosableItems;
namespace DefaultNamespace;
public class MyFormWithQuestionsToFormWithDetailsDto : IObjectMapper<FormWithQuestions, FormWithDetailsDto>, ITransientDependency
{
private MyFormWithQuestionsToFormWithDetailsDtoMapper _mapper;
public MyFormWithQuestionsToFormWithDetailsDto(MyFormWithQuestionsToFormWithDetailsDtoMapper mapper)
{
_mapper = mapper;
}
public FormWithDetailsDto Map(FormWithQuestions source)
{
var dto = _mapper.Map(source);
_mapper.AfterMap(source, dto);
return dto;
}
public FormWithDetailsDto Map(FormWithQuestions source, FormWithDetailsDto destination)
{
_mapper.Map(source, destination);
_mapper.AfterMap(source, destination);
return destination;
}
}
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
public partial class MyFormWithQuestionsToFormWithDetailsDtoMapper : MapperBase<FormWithQuestions, FormWithDetailsDto>
{
public override partial FormWithDetailsDto Map(FormWithQuestions source);
public override partial void Map(FormWithQuestions source, FormWithDetailsDto destination);
public partial QuestionDto Map(QuestionBase source);
public partial List<QuestionDto> Map(IEnumerable<QuestionBase> source);
public partial ChoiceDto Map(Choice source);
public partial List<ChoiceDto> Map(IEnumerable<Choice> source);
public override void AfterMap(FormWithQuestions source, FormWithDetailsDto destination)
{
destination.Description = source.Form.Description;
destination.Title = source.Form.Title;
destination.Id = source.Form.Id;
destination.CreationTime = source.Form.CreationTime;
destination.TenantId = source.Form.TenantId;
destination.DeleterId = source.Form.DeleterId;
destination.CreatorId = source.Form.CreatorId;
destination.DeletionTime = source.Form.DeletionTime;
destination.IsDeleted = source.Form.IsDeleted;
destination.LastModificationTime = source.Form.LastModificationTime;
destination.LastModifierId = source.Form.LastModifierId;
destination.IsQuiz = source.Form.IsQuiz;
destination.IsCollectingEmail = source.Form.IsCollectingEmail;
destination.CanEditResponse = source.Form.CanEditResponse;
destination.IsAcceptingResponses = source.Form.IsAcceptingResponses;
destination.HasLimitOneResponsePerUser = source.Form.HasLimitOneResponsePerUser;
destination.RequiresLogin = source.Form.RequiresLogin;
foreach (var question in destination.Questions)
{
var sourceQuestion = source.Questions.FirstOrDefault(q => q.Id == question.Id);
if (sourceQuestion == null)
{
continue;
}
question.IsRequired = (sourceQuestion as IRequired)?.IsRequired ?? false;
question.HasOtherOption = (sourceQuestion as IHasOtherOption)?.HasOtherOption ?? false;
question.Choices = Map((sourceQuestion as IChoosable)?.GetChoices().OrderBy(t => t.Index).ToList()) ?? [];
question.QuestionType = sourceQuestion.GetQuestionType();
}
}
}
hi
I changed some code in https://github.com/franciscosl-fnet/abp-app-domain-based/pull/2
Can you apply them to your project and reproduce the error and share the API logs.txt to liming.ma@volosoft.com
Thanks.