Bug #1245
closed
API bug with search a dot in front of domain when pulling a host list returns the full hostlist of all hosts rather than matching the domain string
Added by Brian Gupta about 13 years ago.
Updated about 13 years ago.
- Category changed from API to Search
- Status changed from New to Feedback
Will try updating and report back.
Upgraded tonight and the issue is still there.
- Target version deleted (
0.4)
not sure that I follow, but i can you confirm the search syntax? (e.g. your original query might be wrong).
A little background: Since the search API isn't super well documented, while working on Foremancli, I just used trial and error and found that host/search?domain.com does return a list of hosts in domain.com. Don't know if this is a bug, but from a foremancli point of view being able to type the following is a win:
foremancli --host domain.com
How does the API handle non-paramaterized query strings that don't have an equals sign?
Thanks,
Brian
Some more further notes: From my observation, at least for hosts, it appears to be a simple pattern match (with some caveats like the leading dot issue) against FQDN. Not sure what it is supposed to be doing. -Brian
it does a full text search on all fields which are enabled for full text search.... :(
Also available in: Atom
PDF