Open SagarGi opened 2 years ago
@kobergj I think you have added the related tests to expected to fail file, could you clarify if this actually should work or not
@butonic Does path based archiver requests work at all?
looks like both path
and id
query params are allowed. But providing:
?path=foldername
?path=/foldername
returns 404
https://github.com/cs3org/reva/blob/774910f82ee098c8b5ceb3457d1678245d20b137/internal/http/services/archiver/handler.go#L224-L230
v := r.URL.Query()
paths, ok := v["path"]
if !ok {
paths = []string{}
}
ids, ok := v["id"]
for _, p := range paths {
// id is base64 encoded and after decoding has the form <storage_id>:<resource_id>
resp, err := gatewayClient.Stat(ctx, &provider.StatRequest{
Ref: &provider.Reference{
Path: p,
},
})
Describe the bug
When downloading the archive of resource (files | folders) using the resource path (full path of the resource) , the response status is
404
.Steps to reproduce
Steps to reproduce the behavior:
user
file.txt
Curl Command to download the file.
Expected behavior
Should be able to download the archive of the text file. (with Response status code 200)
Actual behavior
Setup
OCIS : latest pulled docker image
NOTE:
If anyone could provided the correct URL to download or get the resource. if its
https://host.docker.internal:9200/archiver?path=file.txt
like this orhttps://host.docker.internal:9200/archiver?path=/home/file.txt
or other?