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

[Filter][Response Body] Search "Prettified" JSON, Not Just Raw #2007

Open
mylesbarros opened this issue Apr 25, 2024 · 2 comments
Open

[Filter][Response Body] Search "Prettified" JSON, Not Just Raw #2007

mylesbarros opened this issue Apr 25, 2024 · 2 comments
Assignees
Labels
✅ Done Ticket is addressed and fixed. enhancement New feature or request

Comments

@mylesbarros
Copy link

mylesbarros commented Apr 25, 2024

Description

When filtering requests using the Response Body filter the filter only matches against the RAW response. It would be nice to either search both or to add an additional filter criteria to differentiate between prettified and RAW.

Repro Steps for Current Behavior

  1. Load the following page in a browser... https://api.artic.edu/api/v1/artworks/search?q=cats
  2. The response body begins with a pagination object whose first property is "total":7432.
  3. The response in the Response's Body pane will appear as follows:
Screenshot 2024-04-25 at 10 54 34
  1. If a filter is added such that Response Body Not Contains total": 7432 the response will still be included in the results as it is matching against the RAW response body, which is total":7432

Why this feature/change is important?

This causes confusion at least for me as it will not match against the content of the Response pane's Body tab. In my case I bought Proxyman to filter out all responses where a specific property was null. I believed it didn't work and was about to request a refund until I realized that the filters appeared not to match any property in the response body at all, which made me realize that the actual RAW response had whitespace stripped.

@mylesbarros mylesbarros added the enhancement New feature or request label Apr 25, 2024
@NghiaTranUIT NghiaTranUIT self-assigned this Apr 25, 2024
@NghiaTranUIT
Copy link
Member

Thanks, let me fix it 👍

@NghiaTranUIT NghiaTranUIT added this to the Proxyman 5.3.0 milestone Apr 25, 2024
@NghiaTranUIT
Copy link
Member

@mylesbarros you can try this Beta build: https://download.proxyman.io/beta/Proxyman_5.2.0_Fix_Filter_with_Body.dmg

Changelog

  • Proxyman nows filters on the RAW and the Prettified Body.
  • Fix the issue when using negative filters, such as Not Contain, not equal, ...

@NghiaTranUIT NghiaTranUIT added the ✅ Done Ticket is addressed and fixed. label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Done Ticket is addressed and fixed. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants