-
Notifications
You must be signed in to change notification settings - Fork 5
sharing fails with error searching recipient
#64
Comments
The behaviour changed Steps to reproduce the current issue in CI manually:all steps done using LDAP. Reva started with this command:
Resultswith with 2b2e7f0in every case the result is:
with ac3381e
|
some response codes got better with #113 |
I think this ticket is outdated. Propfind on the |
I suggest to enable tests that are tagged with this issue and retest, if PROPFIND only work on one endpoint tests should be split and also the issue |
The behaviour changed again Steps to reproduce:
Results
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>error</status>
<statuscode>998</statuscode>
<message>not found</message>
</meta>
</ocs> ocis log:
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
<id>c99b869f-0830-424e-85b3-bd115ced6682</id><share_type>0</share_type><uid_owner>user0</uid_owner><displayname_owner>One</displayname_owner><permissions>19</permissions><stime>1591354468</stime><parent></parent><expiration></expiration><token></token><uid_file_owner>user0</uid_file_owner><displayname_file_owner>One</displayname_file_owner><additional_info_owner></additional_info_owner><additional_info_file_owner></additional_info_file_owner><state>0</state><path>/textfile0.txt</path><item_type>file</item_type><mimetype>text/plain</mimetype><storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id><storage>0</storage><item_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</item_source><file_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</file_source><file_parent></file_parent><file_target>/textfile0.txt</file_target><share_with>user1</share_with><share_with_displayname>One</share_with_displayname><share_with_additional_info></share_with_additional_info><mail_send></mail_send><name></name>
</data>
</ocs>
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
<id>be914aab-9c8c-4285-80b9-67928a8ec1fa</id><uid_owner>user0</uid_owner><share_type>0</share_type><displayname_owner>One</displayname_owner><permissions>19</permissions><stime>1591354676</stime><parent/><expiration/><token/><uid_file_owner>user0</uid_file_owner><displayname_file_owner>One</displayname_file_owner><additional_info_owner/><additional_info_file_owner/><state>0</state><path>/textfile0.txt</path><item_type>file</item_type><mimetype>text/plain</mimetype><storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id><storage>0</storage><item_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</item_source><file_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</file_source><file_parent/><file_target>/textfile0.txt</file_target><share_with>user2</share_with><share_with_displayname>Two</share_with_displayname><share_with_additional_info/><mail_send/><name/>
</data>
</ocs> PROPFIND for reciever for shared resource:
Response:
Response: get shares for user0:
Response: HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
<element>
<id>c99b869f-0830-424e-85b3-bd115ced6682</id><share_type>0</share_type><uid_owner>user0</uid_owner><displayname_owner>One</displayname_owner><permissions>19</permissions><stime>1591354468</stime><parent></parent><expiration></expiration><token></token><uid_file_owner>user0</uid_file_owner><displayname_file_owner>One</displayname_file_owner><additional_info_owner></additional_info_owner><additional_info_file_owner></additional_info_file_owner><state>0</state><path>/textfile0.txt</path><item_type>file</item_type><mimetype>text/plain</mimetype><storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id><storage>0</storage><item_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</item_source><file_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</file_source><file_parent></file_parent><file_target>/textfile0.txt</file_target><share_with>user1</share_with><share_with_displayname>One</share_with_displayname><share_with_additional_info></share_with_additional_info><mail_send></mail_send><name></name>
</element>
<element>
<id>be914aab-9c8c-4285-80b9-67928a8ec1fa</id><share_type>0</share_type><uid_owner>user0</uid_owner><displayname_owner>One</displayname_owner><permissions>19</permissions><stime>1591354676</stime><parent></parent><expiration></expiration><token></token><uid_file_owner>user0</uid_file_owner><displayname_file_owner>One</displayname_file_owner><additional_info_owner></additional_info_owner><additional_info_file_owner></additional_info_file_owner><state>0</state><path>/textfile0.txt</path><item_type>file</item_type><mimetype>text/plain</mimetype><storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id><storage>0</storage><item_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</item_source><file_source>46e810dc-309a-49f0-ba68-d182fa12b1c5</file_source><file_parent></file_parent><file_target>/textfile0.txt</file_target><share_with>user2</share_with><share_with_displayname>Two</share_with_displayname><share_with_additional_info></share_with_additional_info><mail_send></mail_send><name></name>
</element>
</data>
</ocs> Configurations: export REVA_STORAGE_HOME_DATA_TEMP_FOLDER='/var/tmp/'
export REVA_STORAGE_LOCAL_ROOT='/var/tmp/reva/root'
export REVA_STORAGE_OWNCLOUD_DATADIR='/var/tmp/reva/data'
export REVA_STORAGE_OC_DATA_TEMP_FOLDER='/var/tmp/'
export REVA_OIDC_ISSUER=https://172.17.0.1:9130
export REVA_USERS_DRIVER='ldap'
export REVA_LDAP_HOSTNAME='localhost'
export REVA_STORAGE_HOME_EXPOSE_DATA_SERVER=1
export REVA_STORAGE_OC_EXPOSE_DATA_SERVER=1
export REVA_STORAGE_OWNCLOUD_REDIS_ADDR=localhost:6379
export REVA_LDAP_PORT=636
export REVA_LDAP_BIND_DN='cn=admin,dc=owncloud,dc=com'
export REVA_LDAP_BIND_PASSWORD='admin'
export REVA_LDAP_BASE_DN='dc=owncloud,dc=com'
export REVA_LOG_PRETTY='true'
export REVA_LOG_COLOR='true'
$HOME/www/ocis-reva/bin/ocis-reva gateway &
$HOME/www/ocis-reva/bin/ocis-reva users &
$HOME/www/ocis-reva/bin/ocis-reva auth-basic &
$HOME/www/ocis-reva/bin/ocis-reva auth-bearer &
$HOME/www/ocis-reva/bin/ocis-reva sharing &
$HOME/www/ocis-reva/bin/ocis-reva storage-home &
$HOME/www/ocis-reva/bin/ocis-reva storage-home-data &
$HOME/www/ocis-reva/bin/ocis-reva storage-oc &
$HOME/www/ocis-reva/bin/ocis-reva storage-oc-data &
$HOME/www/ocis-reva/bin/ocis-reva frontend |
After the behavior change, now the bug is in shares responses which shows The issue has been created describing the behavior at #250 |
The fact that @C0rby do you want to have a new ticket or keep this open? |
IMO we can keep this open. |
let's check with EOS first. please check using docker-compose |
closing in favour of #243 |
since 11816f7 its impossible to share
to reproduce:
bin/ocis micro & bin/ocis phoenix
curl -X PUT http://localhost:9140/remote.php/webdav/home/textfile0.txt -d "123" -u einstein:relativity
curl -X PROPFIND http://localhost:9140/remote.php/webdav/home -u einstein:relativity
curl -X POST http://localhost:9140/ocs/v1.php/apps/files_sharing/api/v1/shares -u einstein:relativity -d "permissions=31&path=%2Fhome%2Ftextfile0.txt&shareType=0&shareWith=richard"
result:
<ocs><meta><status>error</status><statuscode>996</statuscode><message>error searching recipient</message></meta></ocs>
reva console output
The text was updated successfully, but these errors were encountered: