Closed andrei-tyk closed 1 week ago
:broken_heart: The detected issue is not in one of the allowed statuses :broken_heart:
Detected Status | DoD Check | :x: |
---|---|---|
Allowed Statuses | In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review | :heavy_check_mark: |
Please ensure your jira story is in one of the allowed statuses
Here are some key observations to aid the review process:
β±οΈ Estimated effort to review: 2 π΅π΅βͺβͺβͺ |
π§ͺ No relevant tests |
π No security concerns identified |
β‘ Recommended focus areas for review Domain Sorting Logic The change from length-based to lexicographical domain sorting may introduce issues with domain matching where subdomains are involved. This needs thorough testing to ensure no regression or unexpected behavior in domain matching. |
Explore these optional code suggestions:
Category | Suggestion | Score |
Best practice |
Ensure domain comparison is case-insensitive to avoid inconsistencies___ **Replace the string comparison for domains with a case-insensitive comparison toensure consistent behavior regardless of case variations.** [gateway/api_loader.go [938]](https://github.com/TykTechnologies/tyk/pull/6705/files#diff-cdf0b7f176c9d18e1a314b78ddefc2cb3a94b3de66f1f360174692c915734c68R938-R938) ```diff -return specs[i].Domain > specs[j].Domain +return strings.ToLower(specs[i].Domain) > strings.ToLower(specs[j].Domain) ``` Suggestion importance[1-10]: 7Why: The suggestion to make domain comparison case-insensitive is valid and improves the robustness of the sorting logic by ensuring consistent behavior across different case variations. | 7 |
Possible issue |
Check compatibility of the specified platform with deployment environments___ **Verify the compatibility of the specified platform 'linux/amd64' with all potentialdeployment environments to ensure there are no runtime issues on different architectures.** [docker/services/httpbin.yml [5]](https://github.com/TykTechnologies/tyk/pull/6705/files#diff-1a1b1d8bf4798076a41ca5f3bba0d465dc387e58b6593adbb28a4d5fe60eb810R5-R5) ```diff -platform: linux/amd64 +platform: linux/amd64 # Ensure compatibility with deployment environments ``` Suggestion importance[1-10]: 1Why: The suggestion is a general reminder to check compatibility, which is a good practice but does not directly improve or modify the code. It's more of a cautionary note than a code improvement. | 1 |
API Changes
no api changes detected
Failed conditions
0.0% Coverage on New Code (required β₯ 80%)
C Reliability Rating on New Code (required β₯ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE
/release to release-5.7
Working on it! Note that it can take a few minutes.
@andrei-tyk Seems like there is conflict and it require manual merge.
/release to release-5.7.0
Working on it! Note that it can take a few minutes.
@andrei-tyk Seems like there is conflict and it require manual merge.
User description
Actual fix for domain matching edge case related to substring listen paths. Fixed the sorting function for the listen paths and added some unit tests.
Extra: httpbin service not working on macos with apple silicon; now it does
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Bug fix, Configuration changes
Description
linux/amd64
, addressing compatibility issues on macOS with Apple Silicon.Changes walkthrough π
api_loader.go
Fix domain sorting logic in API loader
gateway/api_loader.go
httpbin.yml
Specify platform for httpbin service in Docker configuration
docker/services/httpbin.yml - Added platform specification for httpbin service.