You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Wido den Hollander (JIRA)" <ji...@apache.org> on 2013/02/06 20:35:15 UTC

[jira] [Created] (CLOUDSTACK-1179) API searches for names should not be fuzzy / wildcards

Wido den Hollander created CLOUDSTACK-1179:
----------------------------------------------

             Summary: API searches for names should not be fuzzy / wildcards
                 Key: CLOUDSTACK-1179
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1179
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: API
    Affects Versions: 4.0.0, 4.0.1, 4.1.0
            Reporter: Wido den Hollander
             Fix For: 4.2.0


During some API work I found that when you query for a 'name' with
ListDomains, ListAccounts and/or ListVolumes this search is fuzzy (with
a wildcard).

For example when listing domains:

        if (domainName != null) {
            sc.setParameters("name", "%" + domainName + "%");
        }

Or when listing volumes:

        if (name != null) {
            sc.setParameters("name", "%" + name + "%");
        }

This search is always a wildcard.

So if you want to know if domain 'customerX' exists you query for that,
but your results can also contain 'customerXY' and 'customerXX'.

command=listDomains&name=customerX

I'm taking the listing of domains again and you can also use the
'keyword' parameter like:

command=listDomains&name=customerX&keyword=customerX

On the mailinglist it seems that we agree that these queries should not be fuzzy but should be exact matches.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira