owncloud / product

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

[OCIS] groups with special characters cannot be deleted/listed #284

Open dpakach opened 4 years ago

dpakach commented 4 years ago

create a group with special character eg. %

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

Now try to delete the group

~ 
❯ curl -XDELETE https://localhost:9200/ocs/v2.php/cloud/groups/50%25pass -u admin:admin -k
<?xml version="1.0" encoding="UTF-8"?>
<ocs><meta><status>error</status><statuscode>998</statuscode><message>The requested group could not be found</message></meta></ocs>%      

similar example in oc10


❯ curl -XDELETE http://localhost/core/ocs/v2.php/cloud/groups/50%25pass -u admin:admin -k
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>200</statuscode>
  <message/>
 </meta>
 <data/>
</ocs>