-
Notifications
You must be signed in to change notification settings - Fork 187
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
Shares don't have a full file path anymore #2462
Comments
cs3org/reva#1739 might be related, but from a first glimpse at the code it won't fix the issue. |
Is this a related issue: #2133 ? |
yes, looks like it's related |
I just stumbled over this as well. I would like to add that not only the path information is missing, but also the escaping/encoding changed: http: //host.docker.internal:8080/ocs/v2.php/apps/files_sharing//api/v1/shares?format=json&share_types=3&include_tags=false&format=json
https: //host.docker.internal:9200/ocs/v2.php/apps/files_sharing//api/v1/shares?format=json&share_types=3&include_tags=false&format=json
Notice the backslashes. Is there any news on this issue? |
@dschmidt @butonic See cs3org/reva#2580 as an approach. I have some questions to the grouping of shares in oc web. Is grouping generally desired? (see screenshot below) It seems to use Screenshot (wrong attribute but display makes sense)Response (wrong backend behavior){
"ocs": {
"meta": {
"status": "ok",
"statuscode": 100,
"message": "OK"
},
"data": [
{
"id": "NsluGoraTkVJksl",
"share_type": 3,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645544142,
"parent": "",
"expiration": "",
"token": "IAZWlHamyjDeMWu",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/DSC04184.JPG",
"item_type": "file",
"mimetype": "image/jpeg",
"storage_id": "shared::/DSC04184.JPG",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!b19ea6fc-21a8-4a3a-9346-cc226adf15c7",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!b19ea6fc-21a8-4a3a-9346-cc226adf15c7",
"file_parent": "",
"file_target": "/DSC04184.JPG",
"share_with_additional_info": "",
"mail_send": 0,
"name": "Quick-Action-Link",
"url": "https://localhost:9200/#/s/IAZWlHamyjDeMWu"
},
{
"id": "uYhDZllDCbtwCKD",
"share_type": 3,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645544137,
"parent": "",
"expiration": "",
"token": "wqeIEYqVnEueUSy",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/ocis-hack-week/DSC04184.JPG",
"item_type": "file",
"mimetype": "image/jpeg",
"storage_id": "shared::/DSC04184.JPG",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_parent": "",
"file_target": "/DSC04184.JPG",
"share_with_additional_info": "",
"mail_send": 0,
"name": "Quick-Action-Link",
"url": "https://localhost:9200/#/s/wqeIEYqVnEueUSy"
},
{
"id": "e628709b-b913-4914-bc89-1cea060cad86",
"share_type": 0,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645545111,
"parent": "",
"expiration": "",
"token": "",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/ocis-hack-week/DSC04184.JPG",
"item_type": "file",
"mimetype": "image/jpeg",
"storage_id": "shared::/Shares/DSC04184.JPG",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_parent": "",
"file_target": "/Shares/DSC04184.JPG",
"share_with": "einstein",
"share_with_displayname": "Albert Einstein",
"share_with_additional_info": "[email protected]",
"mail_send": 0,
"name": ""
},
{
"id": "8be33b64-ee8a-4b0f-9180-099d7acc6b22",
"share_type": 0,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645546038,
"parent": "",
"expiration": "",
"token": "",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/ocis-hack-week",
"item_type": "folder",
"mimetype": "httpd/unix-directory",
"storage_id": "shared::/Shares/ocis-hack-week",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!14a87e54-22ee-4316-a29a-5e9e3fb5bc7f",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!14a87e54-22ee-4316-a29a-5e9e3fb5bc7f",
"file_parent": "",
"file_target": "/Shares/ocis-hack-week",
"share_with": "einstein",
"share_with_displayname": "Albert Einstein",
"share_with_additional_info": "[email protected]",
"mail_send": 0,
"name": ""
}
]
}
} It seems to use Response (Right backend behavior){
"ocs": {
"meta": {
"status": "ok",
"statuscode": 100,
"message": "OK"
},
"data": [
{
"id": "NsluGoraTkVJksl",
"share_type": 3,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645544142,
"parent": "",
"expiration": "",
"token": "IAZWlHamyjDeMWu",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/DSC04184.JPG",
"item_type": "file",
"mimetype": "image/jpeg",
"storage_id": "shared::/DSC04184.JPG",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!b19ea6fc-21a8-4a3a-9346-cc226adf15c7",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!b19ea6fc-21a8-4a3a-9346-cc226adf15c7",
"file_parent": "",
"file_target": "/DSC04184.JPG",
"share_with_additional_info": "",
"mail_send": 0,
"name": "Quick-Action-Link",
"url": "https://localhost:9200/#/s/IAZWlHamyjDeMWu"
},
{
"id": "uYhDZllDCbtwCKD",
"share_type": 3,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645544137,
"parent": "",
"expiration": "",
"token": "wqeIEYqVnEueUSy",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/ocis-hack-week/DSC04184.JPG",
"item_type": "file",
"mimetype": "image/jpeg",
"storage_id": "shared::/DSC04184.JPG",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_parent": "",
"file_target": "/DSC04184.JPG",
"share_with_additional_info": "",
"mail_send": 0,
"name": "Quick-Action-Link",
"url": "https://localhost:9200/#/s/wqeIEYqVnEueUSy"
},
{
"id": "e628709b-b913-4914-bc89-1cea060cad86",
"share_type": 0,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645545111,
"parent": "",
"expiration": "",
"token": "",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/ocis-hack-week/DSC04184.JPG",
"item_type": "file",
"mimetype": "image/jpeg",
"storage_id": "shared::/Shares/DSC04184.JPG",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!fcf23326-1906-4bf6-a82c-3e337338965d",
"file_parent": "",
"file_target": "/Shares/DSC04184.JPG",
"share_with": "einstein",
"share_with_displayname": "Albert Einstein",
"share_with_additional_info": "[email protected]",
"mail_send": 0,
"name": ""
},
{
"id": "8be33b64-ee8a-4b0f-9180-099d7acc6b22",
"share_type": 0,
"uid_owner": "marie",
"displayname_owner": "Marie Curie",
"additional_info_owner": "[email protected]",
"permissions": 1,
"stime": 1645546038,
"parent": "",
"expiration": "",
"token": "",
"uid_file_owner": "marie",
"displayname_file_owner": "Marie Curie",
"additional_info_file_owner": "[email protected]",
"state": 0,
"path": "/ocis-hack-week",
"item_type": "folder",
"mimetype": "httpd/unix-directory",
"storage_id": "shared::/Shares/ocis-hack-week",
"storage": 0,
"item_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!14a87e54-22ee-4316-a29a-5e9e3fb5bc7f",
"file_source": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c!14a87e54-22ee-4316-a29a-5e9e3fb5bc7f",
"file_parent": "",
"file_target": "/Shares/ocis-hack-week",
"share_with": "einstein",
"share_with_displayname": "Albert Einstein",
"share_with_additional_info": "[email protected]",
"mail_send": 0,
"name": ""
}
]
}
} Bottom line is, it should use |
The failing acceptance test is now passing after the latest reva code was pulled in with PR #3231 |
web test also passed while bumping to latest oCIS https://drone.owncloud.com/owncloud/web/23041/67/15 |
Fixed in master (via cs3org/reva#2580) 😍 I'll create a new ticket for the grouping issue in oC Web... |
Describe the bug
Shares listed in
Shared via links
orShared with others
don't have a full file path anymore.Steps to reproduce
Steps to reproduce the behavior:
lorem.txt
into hometest-folder
lorem.txt
test-folder
shared via links
pageExpected behavior
The two shares are two unique entries in the shares list
Actual behavior
The two shares get grouped into one entry in the shares list
Setup
oCIS current master @ 7b1a7b2
Bug analysis
curl 'https://host.docker.internal:9200/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&reshares=true&include_tags=false&format=json'
path
andfile_target
are identical for both shares.storage_id
is different for both sharesI'd expect the
path
to reflect the parent folders, since this is notshared with me
butshared with others
. If this is intentionally breaking/changed, we need to do some changes in the web ui. Please tell me how to proceed. :-)The text was updated successfully, but these errors were encountered: