Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OCIS-storage] Restoring an older version of a shared file deletes the share #765

Closed
individual-it opened this issue Oct 28, 2020 · 2 comments · Fixed by #5092
Closed

[OCIS-storage] Restoring an older version of a shared file deletes the share #765

individual-it opened this issue Oct 28, 2020 · 2 comments · Fixed by #5092
Labels
Category:Defect Existing functionality is not working as expected Type:Bug

Comments

@individual-it
Copy link
Member

  1. upload a file
  2. upload it again to create a version
  3. share the file
  4. accept the share
  5. as sharer restore the old version of the file
  6. as receiver check your shares

current behaviour:

  • the file is not listed in Shares
  • a request to https://localhost:9200/ocs/v2.php/apps/files_sharing//api/v1/shares?format=json,json&shared_with_me=true&state=all&include_tags=false gives an invalid response:
{
	"ocs": {
		"meta": {
			"status": "ok",
			"statuscode": 200,
			"message": "OK"
		},
		"data": [
			{
				"id": "4947d90d-e561-49ad-851c-4cf1a43331e6",
				"share_type": 0,
				"uid_owner": "4c510ada-c86b-4815-8820-42cdf82c3d51",
				"displayname_owner": "Albert Einstein",
				"permissions": 1,
				"stime": 1603881327,
				"parent": "",
				"expiration": "",
				"token": "",
				"uid_file_owner": "4c510ada-c86b-4815-8820-42cdf82c3d51",
				"displayname_file_owner": "Albert Einstein",
				"additional_info_owner": "",
				"additional_info_file_owner": "",
				"state": 0,
				"path": "",
				"item_type": "",
				"mimetype": "",
				"storage_id": "",
				"storage": 0,
				"item_source": "",
				"file_source": "",
				"file_parent": "",
				"file_target": "",
				"share_with": "932b4540-8d16-481e-8ef4-588e4b6b151c",
				"share_with_displayname": "Richard Feynman",
				"share_with_additional_info": "",
				"mail_send": 0,
				"name": ""
			}
		]
	}
}
@refs refs changed the title restoring an older version of a shared file deletes the share [OCIS-storage] restoring an older version of a shared file deletes the share Jan 12, 2021
@settings settings bot removed the bug label Jan 12, 2021
@refs refs changed the title [OCIS-storage] restoring an older version of a shared file deletes the share [OCIS-storage] Restoring an older version of a shared file deletes the share Jan 13, 2021
@refs
Copy link
Member

refs commented Jan 13, 2021

confirm it happens in the current master

@refs refs added the Category:Defect Existing functionality is not working as expected label Jan 13, 2021
@individual-it
Copy link
Member Author

individual-it commented Jan 14, 2021

  • ToDo QA-team: add API tests for this case (if not existing yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Defect Existing functionality is not working as expected Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants