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

Second parameter of Substring is wrong in HeaderFindAndReplaceCreator #1424

Merged
merged 7 commits into from
Sep 30, 2023

Conversation

fku-
Copy link
Contributor

@fku- fku- commented Jan 27, 2021

Second parameter of Substring was wrong: calculation of value for the int length parameter was wrong.
Existing implementation works only for replacements at the beginning of a string startOfPlaceholder = 0.

Proposed Changes

  • Allow replacements inside a header, not only at the beginning
  • Update 1 (Sep 30, 2023). Allow replacements inside of placeholder pattern, not only at the beginning
  • Add unit test to check this fix

stefancruz pushed a commit to stefancruz/Ocelot that referenced this pull request Dec 22, 2022
Second parameter of Substring was wrong. Existing implementation works only for replacements at the beginning of a string (startOfPlaceholder = 0)

Cherry picked from ThreeMammals#1424
@raman-m raman-m changed the title Update HeaderFindAndReplaceCreator.cs Second parameter of Substring is wrong in HeaderFindAndReplaceCreator Jul 11, 2023
@raman-m raman-m self-requested a review July 11, 2023 14:50
@raman-m raman-m added the bug Identified as a potential bug label Jul 11, 2023
@raman-m
Copy link
Member

raman-m commented Jul 11, 2023

@raman-m
Copy link
Member

raman-m commented Aug 23, 2023

@fku- Hi Freddy!
Thanks for interest in Ocelot!

The feature branch has been rebased onto ThreeMammals:develop!
Welcome to code review!


I see that develop branch in your fork is old.
Could you Sync fork please? So, develop branch will be updated with all top commits!
Could you add me as collaborator to your forked repo please? I will update develop branch.


Is the PR related to an issue in backlog?

@raman-m raman-m added the needs feedback Issue is waiting on feedback before acceptance label Aug 23, 2023
RaynaldM
RaynaldM previously approved these changes Aug 23, 2023
fku- and others added 5 commits September 30, 2023 18:26
Second parameter of Substring was wrong. Existing implementation works only for replacements at the beginning of a string (startOfPlaceholder = 0)
raman-m
raman-m previously approved these changes Sep 30, 2023
@raman-m raman-m merged commit 5a81cce into ThreeMammals:develop Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identified as a potential bug needs feedback Issue is waiting on feedback before acceptance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants