Repository navigation
Fix duplicated query parameters during HAR validation - #189
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HAR requests that include query parameters in both the URL and queryString metadata currently produce corrupted query values and false validation errors. Adopt Harific's merged fix and its queryString-only compatibility follow-up by pinning v0.0.7-0.20261021212734-e3736d6b7824 (e3736d6b7824d36b8b02fcde0303561b2340d42d). v0.0.6 remains the latest release, so this uses a reproducible pseudo-version without publishing a release.
Adds a regression through ValidateHARWithResult covering URL plus metadata, queryString-only input, repeated URL parameters, and rejection of an invalid enum value. The first two cases fail with v0.0.6 and pass with the new dependency.
Validation: go test ./har -count=1; go test ./...; npm ci and npm run build in ui; go build; go mod verify; git diff --check. All passed. Full tests were rerun with localhost listener access after the sandbox blocked a proxy test.
Related: pb33f/harific#9