This is a follow-up of owncloud/client#5658, reproduction steps with the Desktop client can be found there, as well as the reason behind this issue.
Server version:
ownCloud version: 10.0 beta1
Steps to reproduce
curl -H 'Ocs-APIREQUEST:true'
-H 'Content-Type:application/x-www-form-urlencoded'
-H 'Authorization:Basic [...]'
-H 'User-Agent:Mozilla/5.0 (Macintosh) mirall/2.3.2-nightly20170328 (build 4154) (testpilotcloud)'
-H 'Accept:*/*'
-H 'Cookie:oc_sessionPassphrase=[...]'
-H 'Content-Length:21'
-H 'Connection:Keep-Alive'
-H 'Accept-Encoding:gzip, deflate'
-H 'Accept-Language:en-US,*'
-H 'Host:server.tld'
-X PUT 'http://server.tld/ocs/v1.php/apps/files_sharing/api/v1/shares/1?format=json'
--data-binary 'expireDate=2017-04-13'
Expected behavior
If the field name is not provided in the body of the request, it should not change.
Actual behavior
The default shared link's name is restored.
This is a follow-up of owncloud/client#5658, reproduction steps with the Desktop client can be found there, as well as the reason behind this issue.
Server version:
ownCloud version: 10.0 beta1
Steps to reproduce
Expected behavior
If the field
nameis not provided in the body of the request, it should not change.Actual behavior
The default shared link's name is restored.