Invalid unquoting of shell brackets when importing from curl

Example fetch:

fetch("https://localhost/_search?source=%7B%22query%22:%7B%22bool%22:%7B%22must%22:[%7B%22match%22:%7B%22POSTCODE%22:%222067%22%7D%7D,%7B%22match%22:%7B%22PREMISES_DWELLING_TYPE%22:%22F%22%7D%7D,%7B%22match%22:%7B%22BEDROOMS%22:%223%22%7D%7D]%7D%7D,%22from%22:0,%22size%22:1,%22fields%22:[%22EXTRACTION_DATE%22,%22MEDIAN_RENT_LOWER%22,%22MEDIAN_RENT_UPPER%22]%7D")

The same as cURL (from Chrome dev tools β†’ copy as cURL)

curl 'https://localhost/_search?source=%7B%22query%22:%7B%22bool%22:%7B%22must%22:\[%7B%22match%22:%7B%22POSTCODE%22:%222067%22%7D%7D,%7B%22match%22:%7B%22PREMISES_DWELLING_TYPE%22:%22F%22%7D%7D,%7B%22match%22:%7B%22BEDROOMS%22:%223%22%7D%7D\]%7D%7D,%22from%22:0,%22size%22:1,%22fields%22:\[%22EXTRACTION_DATE%22,%22MEDIAN_RENT_LOWER%22,%22MEDIAN_RENT_UPPER%22\]%7D'

After importing to yaak from cURL we get:

With the query param being:

Notice the extra backslashes for \[ \]

Please authenticate to join the conversation.

Upvoters
Status

Needs Triage

Board

Feedback

Tags

Bug

Date

9 months ago

Author

Arthur Bodera

Subscribe to post

Get notified by email when there are changes.