Open Closed

401 error when trying to download GDPR information #4071


User avatar
0
Sturla created

Trying to download the GDPR information doesn´t work

  • ABP Framework version: v6.0.1
  • UI type: Blazor WASM
  • DB provider: EF Core
  • Identity Server Separated: yes

8 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @Sturla, thanks for the information. I'll check and write you back during the day.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I've reproduced the problem that you're facing and will create an issue for it. Thanks for letting us know. I'm refunding your credit. Best Regards.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @Sturla, I have seen your comment in our discord channel and created a new 7.0.1 app-pro template to check is there any problem on GDPR module, but it works as expected like in the gif below:

    I remember that you got this problem on your application and then you noticed it was related to your CDN and worked when you cleared:

    Your problem might be related to that, since I could not reproduce your problem on a newly created app-pro template (blazor - separated auth server - 7.0.1). Also, please check for redis is up and running, because it also gives 401 if could not require a mutex lock.

    Best Regards.

  • User Avatar
    0
    Sturla created

    OK looks like this works fine locally

    What could that mean? Everything else is working with authentication.. What can I check?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    OK looks like this works fine locally

    What could that mean? Everything else is working with authentication.. What can I check?

    Can you share logs with me? I could not reproduce the problem, it might be the CDN cache as you stated before. Also, check redis is up and running, 401 error is also given if the redis is not running.

  • User Avatar
    0
    Sturla created

    CDN cache got flushed and Redis is up and running (flushed that also)

    But I see in the log we are getting AuthenticationScheme: Bearer was challenged.

    2023-02-20 15:31:39.976 +00:00 [INF] CORS policy execution successful.
    2023-02-20 15:31:39.984 +00:00 [INF] Executing endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi)'
    2023-02-20 15:31:40.001 +00:00 [INF] Route matched with {controller = "GdprRequest", area = "gdpr", action = "GetDownloadToken", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Gdpr.DownloadTokenResultDto] GetDownloadTokenAsync(System.Guid) on controller Volo.Abp.Gdpr.GdprRequestController (Volo.Abp.Gdpr.HttpApi).
    2023-02-20 15:31:40.142 +00:00 [INF] Request starting HTTP/1.1 GET https://myAPI.azurewebsites.net/api/app/financial/get-payment-host?FilterDateTime=2023-02-20T15%3A31%3A33.8560000Z&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - -
    2023-02-20 15:31:40.143 +00:00 [INF] CORS policy execution successful.
    2023-02-20 15:31:40.144 +00:00 [INF] Executing endpoint 'BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi)'
    2023-02-20 15:31:40.144 +00:00 [INF] Route matched with {area = "app", controller = "Financial", action = "GetHostToTenantPaymentInfo", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[BSR.Beinni.Financials.Dto.FinancialInfoWithTenantOutputDto]] GetHostToTenantPaymentInfo(BSR.Beinni.Financials.Dto.FinancialPagedAndSortedInputDto) on controller BSR.Beinni.Controllers.Financials.FinancialController (BSR.Beinni.HttpApi).
    2023-02-20 15:31:40.174 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Gdpr.DownloadTokenResultDto'.
    2023-02-20 15:31:40.181 +00:00 [INF] Executed action Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi) in 180.7125ms
    2023-02-20 15:31:40.181 +00:00 [INF] Executed endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi)'
    2023-02-20 15:31:40.182 +00:00 [INF] Request finished HTTP/1.1 GET https://myAPI.azurewebsites.net/api/gdpr/requests/download-token?id=cc4b2bfc-8b1c-1f8c-60b7-3a077937f944&api-version=1.0 - - - 200 - application/json;+charset=utf-8 206.0568ms
    2023-02-20 15:31:40.325 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[BSR.Beinni.Financials.Dto.FinancialInfoWithTenantOutputDto, BSR.Beinni.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
    2023-02-20 15:31:40.326 +00:00 [INF] Executed action BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi) in 181.9332ms
    2023-02-20 15:31:40.326 +00:00 [INF] Executed endpoint 'BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi)'
    2023-02-20 15:31:40.326 +00:00 [INF] Request finished HTTP/1.1 GET https://myAPI.azurewebsites.net/api/app/financial/get-payment-host?FilterDateTime=2023-02-20T15%3A31%3A33.8560000Z&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - - - 200 - application/json;+charset=utf-8 183.6733ms
    2023-02-20 15:31:40.442 +00:00 [INF] Request starting HTTP/1.1 GET https://myAPI.azurewebsites.net/api/gdpr/requests/data/cc4b2bfc-8b1c-1f8c-60b7-3a077937f944?token=574ac128-3118-4bad-bee4-1173002415da - -
    2023-02-20 15:31:40.443 +00:00 [INF] Executing endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi)'
    2023-02-20 15:31:40.462 +00:00 [INF] Route matched with {controller = "GdprRequest", area = "gdpr", action = "GetUserData", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Content.IRemoteStreamContent] GetUserDataAsync(System.Guid, System.String) on controller Volo.Abp.Gdpr.GdprRequestController (Volo.Abp.Gdpr.HttpApi).
    2023-02-20 15:31:40.632 +00:00 [INF] AuthenticationScheme: Bearer was challenged.
    2023-02-20 15:31:40.633 +00:00 [INF] Executed action Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi) in 171.1934ms
    2023-02-20 15:31:40.633 +00:00 [INF] Executed endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi)'
    

    I can't see any other relavant logs in the Auth service or in these API logs...

  • User Avatar
    0
    Sturla created

    Based on this https://support.abp.io/QA/Questions/4513/Gdpr-Module-Unauthorized-to-download-Personal-Data#answer-3a098ab9-16d8-036d-f117-06e18b42d998, @EngincanV I updated to 7.0.2 but this has not fixed my issue.

    Is there anything I can try out?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I close the question since your problem is fixed now. (it was related to CDN not being up to date after the CDN cache got flushed it was fixed.)

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11