[MGRENTITLE-30] ("evrk" env) Responses to "mgr-entitlements" endpoints fail with "Bad request" message when using Kong base URL Created: 06/Feb/24  Updated: 08/Feb/24

Status: Open
Project: mgr-tenant-entitlements
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Yauhen Viazau Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: back-end, epam-eureka, eureka-phase4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified
Environment:

“evrk“


Attachments: File MGRENTITLE-30_ok_after_removing_tenants.mp4     PNG File image-20240207-135148.png    
Issue links:
Relates
relates to MGRENTITLE-6 PLACEHOLDER - mgr-tenant-entitlements... In Review
Sprint:
Story Points: 2
Development Team: Eureka
RCA Group: TBD

 Description   

Overview: Responses to "mgr-entitlements" endpoints fail with "Bad request" message when using Kong base URL

Steps to Reproduce:

  1. For following requests, use “evrk“ environment URLs
  2. Get all entitlements using Kong base URL:
    1. GET <Kong URL>/entitlements
  3. Entitle “minimal“ application for a tenant which does not have it entitled:
    1. POST <Kong URL>/entitlements
    2. body:
      {
          "tenantId": "<tenant UUID>",
          "applications": [
              "app-platform-minimal-0.0.7"
          ]
      }
  4. Get application flows:
    1. GET <Kong URL>/application-flows

Expected Results: All requests finished successfully, “2XX“ statuses returned in response

Actual Results: For all requests: “400“ status in response. Response body: “Bad request“

Additional information:

  • Not reproducible when using “tenant-entitlement“ base URL
  • Issue may not reproduce every single time


 Comments   
Comment by Craig McNally [ 07/Feb/24 ]

Pavel Filippov suggests that this may be related to the size of the access token.

Comment by Pavel Filippov [ 07/Feb/24 ]

This is related to the authorization token size

Comment by Yauhen Viazau [ 08/Feb/24 ]

Tested after removing most of the tenants - issue no longer reproducible

Requests to mgr-entitlements endpoints are successful when using Kong base URL. See example:

Underlying issue with token size limitations will be addressed in a separate ticket

Generated at Thu Feb 08 22:18:35 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.