[ https://issues.apache.org/jira/browse/CLOUDSTACK-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13597748#comment-13597748 ]
ASF subversion and git services commented on CLOUDSTACK-1179: ------------------------------------------------------------- Commit e40ebcce8f73c76186a49778af3d7f096403aaec in branch refs/heads/master from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=e40ebcc ] CLOUDSTACK-1179: API searches for names should not be fuzzy. fuzzy search should be done through keyword. > 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 > Assignee: Min Chen > 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