hi
Please share the logs of this error.
Btw we have changed the
OnDelete(DeleteBehavior(DeleteBehavior.NoAction)
toOnDelete(DeleteBehavior.Cascade)
If you have similar code you can change it.
Hi maliming,
You are correct the default template had OnDelete(DeleteBehavior(DeleteBehavior.NoAction)
, once I change it to OnDelete(DeleteBehavior.Cascade)
, eveything is working perfectly.
When can we expect this to be fixed?
Also, can you please refund the ticket?
Thanks
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, and please first use the search on the homepage. Provide us with the following info:
Hello Team,
I am getting error while deleting items from Many to Many popup box. Looks like it is bug. After debugging I believe it is failing at
UI guide to produce error Delete one item Click on save
ProductVersion.json
{
"Id": "c9c0e8de-7201-48ad-985c-a15ea7a27a54",
"Name": "ProductVersion",
"OriginalName": "ProductVersion",
"NamePlural": "ProductVersions",
"DatabaseTableName": "ProductVersions",
"Namespace": "ProductVersions",
"Type": 1,
"MasterEntityName": null,
"MasterEntity": null,
"BaseClass": "FullAuditedAggregateRoot",
"MenuIcon": "file-alt",
"PrimaryKeyType": "Guid",
"PreserveCustomCode": true,
"IsMultiTenant": true,
"CheckConcurrency": true,
"ShouldCreateUserInterface": true,
"ShouldCreateBackend": true,
"ShouldExportExcel": false,
"ShouldAddMigration": true,
"ShouldUpdateDatabase": true,
"CreateTests": false,
"Properties": [
{
"Id": "a25033bf-ace9-48ac-b85b-0ca1b46aa93f",
"Name": "VersionName",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "1caed050-5639-4702-967e-7802e0772fbc",
"Name": "IsActive",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": "true",
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "902ce3e5-44df-4155-8e2f-f29db8b207bf",
"Name": "VersionNumber",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
}
],
"NavigationProperties": [],
"NavigationConnections": [],
"ChildEntities": [],
"PhysicalFileName": "ProductVersion.json"
}
ProductFeature.json
{
"Id": "473fe992-54e4-41d8-978a-a26be9ea5bb3",
"Name": "ProductFeature",
"OriginalName": "ProductFeature",
"NamePlural": "ProductFeatures",
"DatabaseTableName": "ProductFeatures",
"Namespace": "ProductFeatures",
"Type": 1,
"MasterEntityName": null,
"MasterEntity": null,
"BaseClass": "FullAuditedAggregateRoot",
"MenuIcon": "file-alt",
"PrimaryKeyType": "Guid",
"PreserveCustomCode": true,
"IsMultiTenant": true,
"CheckConcurrency": true,
"ShouldCreateUserInterface": true,
"ShouldCreateBackend": true,
"ShouldExportExcel": false,
"ShouldAddMigration": true,
"ShouldUpdateDatabase": true,
"CreateTests": false,
"Properties": [
{
"Id": "7ada5c2a-14d7-44d5-b115-ed2666e2fc8e",
"Name": "FeatureName",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "17a84907-6f5b-4104-a063-626fed74c59e",
"Name": "IsActive",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": "true",
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
}
],
"NavigationProperties": [],
"NavigationConnections": [
{
"Name": "ProductVersions",
"DisplayProperty": "VersionName",
"Namespace": "ABP.IO.Test.ProductVersions",
"EntityName": "ProductVersion",
"EntitySetName": "ProductVersions",
"DtoNamespace": "ABP.IO.Test.ProductVersions",
"DtoEntityName": "ProductVersionDto",
"Type": "Guid"
}
],
"ChildEntities": [],
"PhysicalFileName": "ProductFeature.json"
}
Thanks Nav
Hi gterdem and Nico,
Thank you both for giving me extensive help; it took me a little while to digest.
@gtendem: I agree with you that Authorization in Web API is not straight and after discussing with the client, we have decided that the client with handle Authorization by themself, I will be helping them only with Authentication. So, your above steps work perfectly to Authenticate.
@Nico: your suggestion to create an entity to assign User/Role to ~~Application or~~ Scope is perfect, as it supports the below scenario.
Is Controller right place to check if user/role has assigned scope?
Regards,
Hi gterdem,
Thanks for your response, after reading and researching your "You can not pre-authenticate" I now completely agree with you and apologise for this confusion.
Let me give you a little more info about what I am trying to achieve, I am working on a project for a client that has two WebApi for Stock Management and Currency Management designed in asp.net core (I cannot change and it is out of ABP Solution), so I have:
Everything is working fine, but I don't know how can I assign permission to users or roles to above-created application or scope so that not all users can access.
Can you please suggest which AppService or Domain Manager I can investigate or customize so that my clients can assign users/roles to scope/applications?
Regards, Bunty
Hello team,
Any update on my request please
Thx Navneet
Bug Report: IdentityClaimType Version: 7.4.1 App: MVC Application How to reproduce Bug:-
. . . Is there any quickfix I can use in my production server?
Hi gterdem,
Many thx for replying on behalf of Anjali, I will try your suggestions, however, I am still not sure how to pre-authenticated only selected users, if you look at the screenshot earlier, I want to control users' access to the application and in generating token via https://localhost:44359/connect/token
Regards, Navneet
Hi Anjali,
Hope you are doing well Any update on this
Thx, Navneet
Hi Anjali,
Just checking if there is any suggestion or help
Regards Navneet
Hi Anjali, any update?
Thx, Navneet