[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869542#comment-15869542
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9748:
--------------------------------------------

Github user ustcweizhou commented on the issue:

    https://github.com/apache/cloudstack/pull/1910
  
    @Ashadeepa I just tested it. It seems it is not working as I expected if 
username and keyword are both set.
    I suggest to use the following
    ```
            sb.and("username", sb.entity().getUsername(), SearchCriteria.Op.EQ);
            sb.and("keyword", sb.entity().getUsername(), 
SearchCriteria.Op.LIKE);
    ...
            if (keyword!= null) {
                 sc.setParameters("keyword",  "%" + keyword + "%");
             }
    ```


> VPN Users search functionality broken
> -------------------------------------
>
>                 Key: CLOUDSTACK-9748
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9748
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API
>            Reporter: Ashadeepa Debnath
>
> VPN Users search functionality broken
> If you try to search VPN users with it’s user name, you will not be able to 
> search.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to