insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

[Bug] Unable to add colon to XPath queries

Open vaknin opened this issue 4 years ago • 4 comments

Description While receiving an XML response and attempting to filter the response using XPath, if the path contains a colon inside of it, "Invalid XPath query" error will be thrown, although it is a valid path, for example //s:path

Example The following response is impossible to query: <s:Envelope> <s:Body> </s:Body> </s:Envelope>

If now I will query the following: //s:Envelope I will get the Invalid XPath query error.

Info According to the XPath 3.1 documentation and according to various desktop and online XML editors it is a valid query. Though from what I understand, the npm package xpath is using XPath1.0, might that be the issue?

vaknin avatar Nov 07 '19 15:11 vaknin

👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. If you're requesting a feature 🎁, please provide real use cases that would benefit. 👪

To help make this a smooth process, please be sure you have first read the contributing guidelines.

welcome[bot] avatar Nov 07 '19 15:11 welcome[bot]

Same Issue here.

variouslegend avatar Nov 08 '19 13:11 variouslegend

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 02 '21 00:06 stale[bot]

Thank you for reporting this @vaknin, this is indeed a bug. Happened to cross into it today. Marking internally as needing fix as soon as possible.

Feel free to report other issues you come across.

image

filfreire avatar Aug 29 '22 13:08 filfreire