Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

share_with field in response after sharing has an extra @localhost attached to the username #20

Closed
individual-it opened this issue Jan 22, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@individual-it
Copy link
Member

sharing a file with a user e.g. curl 'http://localhost:9140/ocs/v1.php/apps/files_sharing/api/v1/shares' -u user1:1234 --data 'shareType=0&shareWith=user0&path=%2Fhome%2Ftextfile.txt&permissions=1'
returns this a response with the share_with field having a @localhost postfix attached to the user-name. oC10 reports only the username

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
   <meta>
      <status>ok</status>
      <statuscode>100</statuscode>
      <message>OK</message>
   </meta>
   <data>
      <id>10</id>
      <share_type>0</share_type>
      <uid_owner>user1</uid_owner>
      <displayname_owner>User One</displayname_owner>
      <permissions>1</permissions>
      <stime>1579672511</stime>
      <parent />
      <expiration />
      <token />
      <uid_file_owner>user1</uid_file_owner>
      <displayname_file_owner>User One</displayname_file_owner>
      <path>/home/textfile.txt</path>
      <item_type />
      <mimetype />
      <storage_id />
      <storage>0</storage>
      <item_source />
      <file_source />
      <file_parent />
      <file_target />
      <share_with>user0@localhost</share_with>
      <share_with_displayname>User Zero</share_with_displayname>
      <share_with_additional_info />
      <mail_send />
   </data>
</ocs>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants