Skip to content

fix method invocation automatically unescape#4020

Merged
artursouza merged 18 commits into
dapr:masterfrom
Taction:fix_invocation_decode
Feb 8, 2022
Merged

fix method invocation automatically unescape#4020
artursouza merged 18 commits into
dapr:masterfrom
Taction:fix_invocation_decode

Conversation

@Taction

@Taction Taction commented Dec 11, 2021

Copy link
Copy Markdown
Member

Description

Do not automatically unescape params in method invocation.

Issue reference

Please reference the issue this PR will close: #4008

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

@Taction
Taction requested review from a team as code owners December 11, 2021 08:03
@codecov

codecov Bot commented Dec 11, 2021

Copy link
Copy Markdown

Codecov Report

Merging #4020 (8761da3) into master (050c71a) will decrease coverage by 0.03%.
The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4020      +/-   ##
==========================================
- Coverage   63.55%   63.52%   -0.04%     
==========================================
  Files         102      102              
  Lines        9743     9751       +8     
==========================================
+ Hits         6192     6194       +2     
- Misses       3070     3073       +3     
- Partials      481      484       +3     
Impacted Files Coverage Δ
pkg/channel/http/http_channel.go 68.31% <66.66%> (-0.84%) ⬇️
pkg/http/api.go 79.92% <100.00%> (+0.01%) ⬆️
pkg/http/server.go 64.62% <100.00%> (ø)
pkg/actors/internal/placement.go 87.56% <0.00%> (-1.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 050c71a...8761da3. Read the comment docs.

Signed-off-by: zhangchao <[email protected]>
Signed-off-by: Taction <[email protected]>
@Taction
Taction force-pushed the fix_invocation_decode branch from 7f4ec5a to ff666d0 Compare December 11, 2021 08:11
@yaron2

yaron2 commented Dec 22, 2021

Copy link
Copy Markdown
Member

@Taction can you check why e2e tests are failing?

@Taction

Taction commented Dec 22, 2021

Copy link
Copy Markdown
Member Author

@Taction can you check why e2e tests are failing?

Sure, I'll look into it asap.

@Taction
Taction force-pushed the fix_invocation_decode branch from 0a10093 to d5c97e8 Compare December 25, 2021 14:59
@Taction
Taction force-pushed the fix_invocation_decode branch from d5c97e8 to e8a58ef Compare December 25, 2021 15:37
* master:
  Charts - Supports costomize livenessProbe and readinessProbe

Signed-off-by: Taction <[email protected]>
@Taction

Taction commented Dec 27, 2021

Copy link
Copy Markdown
Member Author

@yaron2 I have fixed the e2e. This code https://github.com/dapr/dapr/blob/master/pkg/channel/http/http_channel.go#L193 will format the URL to http://localhost:3000//method in some cases, if fasthttp don't parse it will cause an error.

The latest e2e is a connection error, I don't think it is related to this pr and will try to look into it later.

@yaron2

yaron2 commented Dec 27, 2021

Copy link
Copy Markdown
Member

Thanks @Taction.

@artursouza can you please look at this and share your opinion about the possibility of this being a breaking change in the encoding parsing format?

yaron2 and others added 3 commits December 26, 2021 21:41
* master:
  Saves 'describe' output of K8s resources for E2E tests. (dapr#4082)
  Fix flakiness on get metadata e2e. (dapr#4080)
  Return error instead of crashing when receiving grpc_proxy request on uninitialized daprd
  Fix actor reminder e2e tests + fixes to reminder partition (dapr#4021)
  Upgrading fasthttp to fix shutdown issue
  Fixed create timer duetime
  remove max graceful shutdown duration limit
  fix lint
  add more test case
  fix lint
  Make the grace period configurable

Signed-off-by: Taction <[email protected]>
@mcrio

mcrio commented Jan 13, 2022

Copy link
Copy Markdown

Hi, do you think this can be merged for the next release : )

@artursouza

Copy link
Copy Markdown
Contributor

Can we have E2E test for this?

Signed-off-by: zhangchao <[email protected]>
Signed-off-by: zhangchao <[email protected]>
@Taction
Taction force-pushed the fix_invocation_decode branch from fa56b46 to 71f61d7 Compare January 14, 2022 13:55
@Taction

Taction commented Jan 14, 2022

Copy link
Copy Markdown
Member Author

@artursouza e2e test added.

@mcrio

mcrio commented Feb 3, 2022

Copy link
Copy Markdown

Hi, do you think this can be merged for the next release? Cheers.

@BrianMcBrayer

Copy link
Copy Markdown

Tossing in my request for a merge too.

@yaron2 yaron2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@yaron2

yaron2 commented Feb 4, 2022

Copy link
Copy Markdown
Member

@artursouza please approve too. E2E are added.

@artursouza
artursouza merged commit a73e4de into dapr:master Feb 8, 2022
@yaron2

yaron2 commented Feb 8, 2022

Copy link
Copy Markdown
Member

Thanks for the fix @Taction!

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.

Method invocation / Dapr automatically decodes %2f in URL

6 participants