Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@xiaoxiangyeyu0
Copy link
Contributor

@xiaoxiangyeyu0 xiaoxiangyeyu0 commented Jan 15, 2025

…x will not be checked. remove starting with "fe80:"

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

fixes #7110

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.19%. Comparing base (6799dc9) to head (e04e76f).

Files with missing lines Patch % Lines
...che/seata/common/util/NetAddressValidatorUtil.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #7112      +/-   ##
============================================
- Coverage     53.19%   53.19%   -0.01%     
- Complexity     6799     6800       +1     
============================================
  Files          1133     1133              
  Lines         40302    40301       -1     
  Branches       4721     4723       +2     
============================================
- Hits          21440    21439       -1     
+ Misses        16820    16817       -3     
- Partials       2042     2045       +3     
Files with missing lines Coverage Δ
...che/seata/common/util/NetAddressValidatorUtil.java 76.47% <75.00%> (+10.75%) ⬆️

... and 4 files with indirect coverage changes

String ipPart = input.substring(ZERO, lastIndex);
return isIPv6StdAddress(ipPart) || isIPv6HexCompressedAddress(ipPart);
}
int lastIndex = input.lastIndexOf(PERCENT);
Copy link
Contributor

Choose a reason for hiding this comment

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

请增加一个测试用例
Please add a test case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

新增isLinkLocalIPv6WithZoneIndex方法测试用例

@funky-eyes funky-eyes changed the title local IPv6 address containing a zone index with "%xxx". The zone inde… bugfix: remove the condition that IPv6 must start with fe80: Jan 15, 2025
@funky-eyes funky-eyes added type: bug Category issues or prs related to bug. module/common common module labels Jan 15, 2025
@funky-eyes funky-eyes requested a review from slievrly January 15, 2025 08:36
Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM
请将pr登记至2.x.md的中英两版文件中

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM

@xingfudeshi xingfudeshi merged commit dd94d71 into apache:2.x Jan 16, 2025
7 checks passed
YvCeung pushed a commit to YvCeung/incubator-seata that referenced this pull request Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/common common module type: bug Category issues or prs related to bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2409:8a5c:6730:4490:f0e8:b9ad:3b3d:e739%br0 should be a valid ipv6

3 participants