Skip to content

Fix/issue 1148 - #1257

Merged
jvherweg merged 5 commits into
versions/4.0.0from
fix/issue-1148
Apr 8, 2022
Merged

jvherweg merged 5 commits into
versions/4.0.0from
fix/issue-1148

Conversation

@wkerckho

@wkerckho wkerckho commented Apr 7, 2022

Copy link
Copy Markdown
Contributor

📁 Related issues

#1148

✍️ Description

OriginalUrlExtractor now uses an IdentifierStrategy to check the incoming request URL and warns when an out of scope URL is accessed.

I've modified the constructor of OriginalUrlExtractor to use an OriginalUrlExtractorArgs instance as input argument (which contains properties for the configured IdentifierStrategy to use, and the includeQueryString option that existed before).

✅ PR check list

Before this pull request can be merged, a core maintainer will check whether

  • this PR is labeled with the correct semver label
    • semver.patch: Backwards compatible bug fixes.
    • semver.minor: Backwards compatible feature additions.
    • semver.major: Breaking changes. This includes changing interfaces or configuration behaviour.
  • the correct branch is targeted. Patch updates can target main, other changes should target the latest versions/* branch.
  • the RELEASE_NOTES.md document in case of relevant feature or config changes.
  • any relevant documentation was updated to reflect the changes in this PR.

@wkerckho
wkerckho requested a review from jvherweg April 7, 2022 10:01
@wkerckho

wkerckho commented Apr 7, 2022

Copy link
Copy Markdown
Contributor Author

Test coverage is not 100%
I forgot to add a unit test for the error case itself.
Also, by introducing a utility method for creating the extractor, I removed coverage for the case where includeQueryString is null.

I will add the necessary changes asap!

@jvherweg jvherweg 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.

Looks good, thanks.

@jvherweg
jvherweg merged commit d42125a into versions/4.0.0 Apr 8, 2022
@jvherweg
jvherweg deleted the fix/issue-1148 branch April 8, 2022 07:33
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.

2 participants