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

Bruno parses incorrectly URL used to make ServiceNow JSON API request #1363

Closed
JC001010 opened this issue Jan 10, 2024 · 0 comments · Fixed by #1370
Closed

Bruno parses incorrectly URL used to make ServiceNow JSON API request #1363

JC001010 opened this issue Jan 10, 2024 · 0 comments · Fixed by #1370

Comments

@JC001010
Copy link

Discovered issue while using the ServiceNow JSONv2 API (link)

In short, bruno does not parse correctly request URLs that have empty Query params or params whose value look like Query params. For instance, the following URL is used in ServiceNow to update a ticket whose number us INC00123.

https://your_instance.service-now.com/incident.do?JSONv2&sysparm_action=update&sysparm_query=number=INC00123

If I add that URL to bruno and then save the request or add a new 'Query' param, bruno will try to parse the URL and it will not parse the 'sysparm_query=number=INC00123' section of the URL correctly. It will also add 'JSONv2' as an empty param, which is expected, but it will then remove that param from the request URL any time it tries to re-parse the URL (see screenshots)

When I add the URL to a bruno request:
before request

After I change anything in the request and bruno re-parses the URL:
after any request modification

Thank you

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 a pull request may close this issue.

1 participant