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

Fix #11767, restore the original parameter pair instead of giving default value when doing URL.parse. #11781

Merged
merged 2 commits into from
Mar 11, 2023

Conversation

chaoyoung
Copy link
Contributor

@chaoyoung chaoyoung commented Mar 10, 2023

What is the purpose of the change

When value has no value, make sure value is an empty string, rather than assigning the value of name to value

For key-value pair key_name=, the generated URL parameter should be 'key_name=' rather than key_name=key_ name

Brief changelog

Verifying this change

Checklist

@codecov-commenter
Copy link

Codecov Report

Merging #11781 (f81ac29) into 3.1 (16c61c5) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                3.1   #11781      +/-   ##
============================================
- Coverage     64.74%   64.73%   -0.01%     
  Complexity       14       14              
============================================
  Files          1431     1431              
  Lines         60034    60034              
  Branches       8827     8827              
============================================
- Hits          38867    38864       -3     
+ Misses        17100    17098       -2     
- Partials       4067     4072       +5     
Impacted Files Coverage Δ
...ain/java/org/apache/dubbo/common/URLStrParser.java 87.30% <100.00%> (+1.01%) ⬆️

... and 17 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@chickenlj chickenlj changed the title Fix bug #11767 Fix #11767, restore the original parameter pair instead of giving default value when doing URL.parse. Mar 10, 2023
Copy link
Contributor

@chickenlj chickenlj left a comment

Choose a reason for hiding this comment

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

LGTM.

@AlbumenJ AlbumenJ merged commit 34cc45f into apache:3.1 Mar 11, 2023
@chaoyoung chaoyoung deleted the 3.1 branch March 13, 2023 02:27
mytang0 added a commit to mytang0/dubbo that referenced this pull request Mar 14, 2023
* origin/3.2: (25 commits)
  Bump bytebuddy.version from 1.14.1 to 1.14.2 (apache#11814)
  Dynamically generate native image config (apache#11795)
  Remove redundant synchronized (apache#11811)
  fix remove unused param (apache#11787)
  Bump bytebuddy.version from 1.14.0 to 1.14.1 (apache#11808)
  Reuse qos port for metrics (apache#11719)
  🐛 fix thread pool metrics be gc recycle problem (apache#11793)
  Bump protobuf-java from 3.22.0 to 3.22.2 (apache#11802)
  Bump spring-security-bom from 5.8.1 to 5.8.2 (apache#11801)
  Bump byte-buddy from 1.14.0 to 1.14.1 (apache#11804)
  Cert npe bug fix (apache#11800)
  Fix uts
  Fix lock acquire blocked
  Fix hessian list
  Fix metrics publisher NPE
  Fix ut
  Fix bug apache#11767 (apache#11781)
  Fix uts
  Sync when destroy (apache#11783)
  Fix recreate client after destroy (apache#11780)
  ...
mytang0 added a commit to mytang0/dubbo that referenced this pull request Mar 14, 2023
* origin/3.2: (28 commits)
  Bump bytebuddy.version from 1.14.1 to 1.14.2 (apache#11814)
  Dynamically generate native image config (apache#11795)
  Remove redundant synchronized (apache#11811)
  fix remove unused param (apache#11787)
  Bump bytebuddy.version from 1.14.0 to 1.14.1 (apache#11808)
  Reuse qos port for metrics (apache#11719)
  🐛 fix thread pool metrics be gc recycle problem (apache#11793)
  Bump protobuf-java from 3.22.0 to 3.22.2 (apache#11802)
  Bump spring-security-bom from 5.8.1 to 5.8.2 (apache#11801)
  Bump byte-buddy from 1.14.0 to 1.14.1 (apache#11804)
  Cert npe bug fix (apache#11800)
  Fix uts
  Fix lock acquire blocked
  Fix hessian list
  Fix metrics publisher NPE
  Fix ut
  Fix bug apache#11767 (apache#11781)
  Fix uts
  Sync when destroy (apache#11783)
  Fix recreate client after destroy (apache#11780)
  ...
lcb11 pushed a commit to lcb11/dubbo that referenced this pull request Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants