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

Ugly error in SWQL Studio when verb argument contains malformed XML #107

Closed
tdanner opened this issue Jan 2, 2018 · 0 comments
Closed

Comments

@tdanner
Copy link
Contributor

tdanner commented Jan 2, 2018

Steps to reproduce:

  1. Launch SWQL Studio and connect to SWIS.
  2. Open an "invoke" tab for a verb with a complex parameter type, such as Orion.Containers.CreateContainer.
  3. Provide malformed XML, such as an unquoted & or < character or unbalanced XML tags, in the argument textarea.
  4. Click Invoke.

Expected results: a clear error message.
Actual results: unhandled exception.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 204.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseEntityName()
...

Reported by thwack user ryan.davis26 in https://thwack.solarwinds.com/message/382767.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants