owncloud / product

ownCloud Product Backlog
GNU Lesser General Public License v3.0
0 stars 1 forks source link

[OCIS] creating a group with existing name doesn't gives error #282

Open dpakach opened 4 years ago

dpakach commented 4 years ago

trying to create group with existing name doesn't gives any error

❯ curl -XPOST https://localhost:9200/ocs/v2.php/cloud/groups -d groupid=helloworld -u admin:admin -ks 
<?xml version="1.0" encoding="UTF-8"?>
<ocs><meta><status>ok</status><statuscode>200</statuscode><message>OK</message></meta><data></data></ocs>%                                                                                                                                    

❯ curl -XPOST https://localhost:9200/ocs/v2.php/cloud/groups -d groupid=helloworld -u admin:admin -ks
<?xml version="1.0" encoding="UTF-8"?>
<ocs><meta><status>ok</status><statuscode>200</statuscode><message>OK</message></meta><data></data></ocs>%   
phil-davis commented 4 years ago

What happens if you try to create 2 groups with different case: helloworld and HelloWorld (2 different groups should exist - and maybe a a get request to groups endpoint for helloworld will return both groups?)

dpakach commented 4 years ago

@phil-davis creation works but listing doesn't works https://github.com/owncloud/product/issues/283