The FileManagement module with abp ver 5.0.0, when download the uploaded file Access the download link "https://localhost:44302/api/file-management/file-descriptor/download/580dc21e-c971-1ab1-d7ad-3a00f84c15bc?token=4f18829e-f70b-4088-b039-333b705a08d8" it says unauthorized "{"error":{"code":"Unauthorized","message":"Unauthorized","details":null,"data":null,"validationErrors":null}}" But all the permissions already assigned for file management module.
the audit logging recorded the download token is invalid.
Can you help me figure out is there special permission for the download api?
@maliming, I cann't reply this topic now, add the reproduce steps here:
The FileManagement module with abp ver 5.0.0, when download the uploaded file Access the download link "https://localhost:44302/api/file-management/file-descriptor/download/580dc21e-c971-1ab1-d7ad-3a00f84c15bc?token=4f18829e-f70b-4088-b039-333b705a08d8" it says unauthorized "{"error":{"code":"Unauthorized","message":"Unauthorized","details":null,"data":null,"validationErrors":null}}" But all the permissions already assigned for file management module.
Can you help me figure out is there special permission for the download api?
With 4.4.0-rc.2, when run db migrations from DbMigrator.project, encountered below errors:
[23:54:38 INF] Started database migrations... [23:54:38 INF] Migrating schema for host database... Unhandled exception. System.InvalidOperationException: The entity type 'IdentityUserLogin' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
I have to rollback to ver 4.3.3, lots of bugs in db migration
Is the app-pro template with version 4.4.0-rc.1 for commercial user released?
I am still cannot download a start template code with the 4.4.0-rc.1Hi @trendline, yes it's released. Could you specify the version (
--version 4.4.0-rc.1
) for downloading a startup template if you are using the CLI? (If you use Suite you can check the preview box while creating a project) Because otherwise, it might be using a cached template (with version 4.3.3)
Thanks, I forget the preview option, get the app-pro template as expected now.
Is the app-pro template with version 4.4.0-rc.1 for commercial user released? I am still cannot download a start template code with the 4.4.0-rc.1
With 4.3.0, the CMS-Kit public page controller not registered, cannot visit a page by slug from public site.
The error logs as below: 2021-04-10 15:30:18.186 +08:00 [INF] Executing endpoint 'Volo.CmsKit.Public.Pages.PagesPublicController.FindBySlugAsync (Volo.CmsKit.Public.HttpApi)' 2021-04-10 15:30:18.201 +08:00 [INF] Route matched with {area = "cms-kit", action = "FindBySlug", controller = "PagesPublic", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.CmsKit.Public.Pages.PageDto] FindBySlugAsync(System.String) on controller Volo.CmsKit.Public.Pages.PagesPublicController (Volo.CmsKit.Public.HttpApi). 2021-04-10 15:30:18.264 +08:00 [ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }
2021-04-10 15:30:18.265 +08:00 [ERR] The requested service 'Volo.CmsKit.Public.Pages.PagesPublicController' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency. Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'Volo.CmsKit.Public.Pages.PagesPublicController' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.`
With 4.3.0, this bug still not be fixed, please fix it.
It seems the commercial template still not updated
/identity-server/api-resources
No duplicate resources there, it really is a weird question
Use different names for API resources
can you check your
IdentityServerApiResources
table. I guess there are duplicate records. if so delete one.
I have checked, no duplicate records there, if rollback to verson 4.2.2, it works as expected
Upgraded identity server project to 4.3.0-rc.2, api resource with duplicated name issue in the store,
&response_type=code%20id_token&scope=openid%20profile%20role%20email%20phone%20School%20FM&response_mode=form_post&nonce=637539299648315756.NmMxZTMyN2EtZjFiOC00YTEzLTk1ZTUtNTg3ODI0ZjJiYTU4MzgwYjRlNzctMGNhOS00ZWU1LWIwZmQtZGU4YjQ0MDAwOGEy&state=CfDJ8KXRcooiqfRLnHfapkfMabZETbZS2HZ0x1fg-imyenT2TgiX-TElW5OkEnmFRSMLeIU0PqrbYYFeTffFpIQCN3j_jUCkWmI2fbcuwePKzJxmE-gvAMN8tG95Zy9-51iAN1kK9FvV0DIv7iEaWR_gYV6P_LC0JurxL7yUXfMLocsXMl8xOMpBnMPR_vwOp1JBqxie7fPZlpc9y6MaRYEhiJTtDrav_9A9F5QUQ64NZ4B-XZNZRVRlCMm5z9VX8mxW9UP297i44tIak0TqFV3t4kW_-WUs6QooYj2Aqt7qmmst6J6iTTMLqgWsMj_0gP_gSg&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=6.7.1.0 - - 2021-04-14 00:59:25.116 +08:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize 2021-04-14 00:59:25.149 +08:00 [INF] {"Details":"System.Exception: Duplicate api resources found. This is an invalid configuration. Use different names for API resources. Names found: School\r\n at IdentityServer4.Stores.IResourceStoreExtensions.Validate(IEnumerable
1 identity, IEnumerable1 apiResources, IEnumerable
1 apiScopes)\r\n at IdentityServer4.Stores.IResourceStoreExtensions.FindResourcesByScopeAsync(IResourceStore store, IEnumerable1 scopeNames)\r\n at IdentityServer4.Stores.IResourceStoreExtensions.FindEnabledResourcesByScopeAsync(IResourceStore store, IEnumerable
1 scopeNames)\r\n at IdentityServer4.Validation.DefaultResourceValidator.ValidateRequestedResourcesAsync(ResourceValidationRequest request)\r\n at IdentityServer4.Validation.AuthorizeRequestValidator.ValidateScopeAsync(ValidatedAuthorizeRequest request)\r\n at IdentityServer4.Validation.AuthorizeRequestValidator.ValidateAsync(NameValueCollection parameters, ClaimsPrincipal subject)\r\n at IdentityServer4.Endpoints.AuthorizeEndpointBase.ProcessAuthorizeRequestAsync(NameValueCollection paramet`Once rollback to ver 4.2.2, it works fine
hi, we don't have an issue about a duplicate endpoint. I see in the log
Names found: School\r\n at IdentityServer4.Stores.
School is not an ABP entity
Yes, it is the name of my project, my meaning is that after upgraded to 4.3.0-rc.2, encountered this error, roll back to 4.2.2 it works fine, same configuration and the same data in database, is there a reason caused this happened?