Hi gterdem ,
Any update?
Hi EngincanV,
This is not working.
Reproducing steps .
Open Web site. shows 500 with go back home option.
Click Go back home. redirects to Login page
Login now all claims are displaying in ID server home page
Change the url directly in id to web in browser. Able to see the dashboard
The issue is in redirection,
2021-10-11 11:18:53.860 +00:00 [INF] Request starting HTTP/1.1 GET http://cozywebqa.azurewebsites.net/ - - 2021-10-11 11:18:53.867 +00:00 [INF] Executing endpoint '/Index' 2021-10-11 11:18:53.870 +00:00 [INF] Route matched with {page = "/Index", action = "", controller = "", area = ""}. Executing page /Index 2021-10-11 11:18:53.871 +00:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2021-10-11 11:18:53.877 +00:00 [INF] Executing handler method GenieERP.Web.Pages.IndexModel.OnGet - ModelState is "Valid" 2021-10-11 11:18:53.878 +00:00 [INF] AuthenticationScheme: oidc was challenged. 2021-10-11 11:18:53.878 +00:00 [INF] Executed handler method OnGet, returned result . 2021-10-11 11:18:53.878 +00:00 [INF] Executing an implicit handler method - ModelState is "Valid" 2021-10-11 11:18:53.878 +00:00 [INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. 2021-10-11 11:18:53.966 +00:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: SettingManagement.Emailing 2021-10-11 11:18:53.966 +00:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpAccount.SettingManagement 2021-10-11 11:18:53.966 +00:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpIdentity.SettingManagement 2021-10-11 11:18:53.966 +00:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: LeptonThemeManagement.Settings 2021-10-11 11:18:53.966 +00:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement 2021-10-11 11:18:53.992 +00:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: Forms.Form 2021-10-11 11:18:54.028 +00:00 [INF] Executed page /Index in 158.33ms 2021-10-11 11:18:54.028 +00:00 [INF] Executed endpoint '/Index' 2021-10-11 11:18:54.029 +00:00 [INF] Request finished HTTP/1.1 GET http://cozywebqa.azurewebsites.net/ - - - 302 - text/html;+charset=utf-8 169.3132ms
can u share ur mail to share logs?
public async Task <IActionResult> OnPostAsync() {
var files = Documents;
var purchaseOrder = PurchaseOrder;
purchaseOrder.StatusName = _settings.StatusSetting.Open;
//Validate
var validateResult = purchaseOrder.Validate();
if (!validateResult.IsSuccess) {
throw new UserFriendlyException("Model is not valid");
}
foreach(var fileExtension in files) {
if (!fileExtension.ContentType.Contains("pdf") && !fileExtension.ContentType.Contains("doc") && !fileExtension.ContentType.Contains("docx") && !fileExtension.ContentType.Contains("msword")) {
throw new UserFriendlyException("File is not in valid format");
}
}
var result = await _purchaseOrdersAppService.CreateAsync(PurchaseOrder);
if (files != null && files.Count() > 0) {
foreach(var file in files) {
var documentsPath = _blobStorage.UplodPurchaseOrderFile(file, result.Id).Result;
var documentInput = new DocumentCreateDto {
FileName = file.FileName,
FilePath = documentsPath,
FileSize = (int) file.Length,
FileType = file.ContentType,
RecordId = result.Id,
TypeName = _settings.DocTypeSetting.PurchaseOrder
};
await _documentAppService.CreateAsync(documentInput);
}
}
return Redirect("/PurchaseOrders");
}