Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase max header size #8069

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Increase max header size #8069

merged 1 commit into from
Apr 11, 2024

Conversation

steven-sheehy
Copy link
Member

Description:

  • Fix rest module Gradle tasks not working when node directory was missing
  • Increase max header size from 1KB to 2KB
  • Remove legacy /web3 routing

Related issue(s):

Fixes #8068

Notes for reviewer:

After switching from Reactor Netty to Tomcat, suddenly our 1KB max header restriction apparently started taking effect and causing 400 errors for browser-based clients with really verbose headers added implicitly by the browser.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
@steven-sheehy steven-sheehy added bug Type: Something isn't working web3 Area: Web3 API labels Apr 11, 2024
@steven-sheehy steven-sheehy added this to the 0.103.0 milestone Apr 11, 2024
@steven-sheehy steven-sheehy requested a review from a team April 11, 2024 00:09
@steven-sheehy steven-sheehy self-assigned this Apr 11, 2024
Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

sonarcloud bot commented Apr 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.33%. Comparing base (c05dd82) to head (2b6ec40).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8069   +/-   ##
=========================================
  Coverage     92.32%   92.33%           
- Complexity     7181     7182    +1     
=========================================
  Files           893      893           
  Lines         29100    29100           
  Branches       3508     3508           
=========================================
+ Hits          26868    26870    +2     
+ Misses         1448     1447    -1     
+ Partials        784      783    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jascks jascks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy merged commit 844b4f3 into main Apr 11, 2024
29 checks passed
@steven-sheehy steven-sheehy deleted the 8068-increase-max-header branch April 11, 2024 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clients getting 400 for /api/v1/contracts/call
4 participants