-
Notifications
You must be signed in to change notification settings - Fork 5
Edit user share response might be missing file ids #332
Comments
Steps
Expected resultIds are present Actual resultMany fields are missing values like "item_source", "file_source", "file_target". <?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
<id>4db43c34-183e-45e0-b859-712cac6436e4</id>
<share_type>0</share_type>
<uid_owner>einstein</uid_owner>
<displayname_owner>Einstein</displayname_owner>
<permissions>15</permissions>
<stime>1594022584</stime>
<parent/>
<expiration/>
<token/>
<uid_file_owner>einstein</uid_file_owner>
<displayname_file_owner>Einstein</displayname_file_owner>
<additional_info_owner/>
<additional_info_file_owner/>
<state>0</state>
<path/>
<item_type/>
<mimetype/>
<storage_id/>
<storage>0</storage>
<item_source/>
<file_source/>
<file_parent/>
<file_target/>
<share_with>marie</share_with>
<share_with_displayname>Curie</share_with_displayname>
<share_with_additional_info/>
<mail_send>0</mail_send>
<name/>
</data>
</ocs> I believe we already have some tests that indirectly use share updates when testing. I wonder if maybe we already have some but they might be disabled for other reasons. |
diff of oc10 response (left) and OCIS response (right) when changing permissions of a share
|
test PR |
|
and now to enable the tests again... or do we need to wait for the ocis PR update as well ?? |
We can enable the tests anytime, in cs3org/reva owncloud/ocis and owncloud/ocis-reva the tests are all pinned to a specific commit id, so as long as that is not advanced it will not use the new (enabled) tests |
Yes... but if someone feels the need to advance it for another ticket 💥 anyway, let's take the risk and update the test right now |
damn, first need to fix the issue... I mixed this one up with the oder "update share ticket" where we are done |
@individual-it seems none of the tests in owncloud/core#37656 were tagged with this issue 332 ? |
PR for the fix: cs3org/reva#958 |
See https://github.com/cs3org/reva/blob/master/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go#L883
It seems to be missing a call to
stat()
andaddFileInfo()
.Maybe we should refactor that logic of
userShare2ShareData
to automatically do the stat to avoid forgetting in further places...@individual-it FYI might be nice to add tests beforehand
The text was updated successfully, but these errors were encountered: