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

422 Could not parse: Unknown operator ")" #39

Closed
Tigenzero opened this issue Oct 24, 2014 · 2 comments
Closed

422 Could not parse: Unknown operator ")" #39

Tigenzero opened this issue Oct 24, 2014 · 2 comments

Comments

@Tigenzero
Copy link

When trying to query a defect from Rally, I received this error (in the title).
I managed to do testing and determine the issue.
This is the code: rally.get('Defect', fetch=True, query='Name="value"')

The Behavior as I saw it is this:
Pyral cannot handle queries that have the equal sign next to the name of the field. There has to be a space in between the field name and the equal sign.
Example:
query='Name = "value"' - does not throw the error because there are spaces between Name, the equal sign, and "value"
query='Name="value"' - throws the error because there are no spaces

Please fix or place better responses as this will impact any new users.

@dvolvox
Copy link

dvolvox commented Oct 24, 2014

Do it like this and test it:

query_c = "Name = Value"
response = rally.get('Defect', fetch=True, query=query_c)

@klehman-rally
Copy link
Member

Given that the error response is from the Rally WSAPI which will accept query criteria that is supplied (in quasi BNF form..) as [attribute_specifier] [whitespace] [relation_operator] [whitespace] [condition_expression], I'm inclined to classify this as 'not a defect' and also not an enhancement. The upside is that using the supported existing syntax also makes your code more readable :-)

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

No branches or pull requests

3 participants