owncloud / owncloud/ocis

Downloading the archive of the resource (files | folder) using resource `path` is not possible

Open
#4,637 3 comments 0 reactions 0 assignees View on GitHub
Interaction:Discussion Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## 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:

1. create user `user`
2. create a file `file.txt`
3. download the archive of the file file with the command below

Curl Command to download the file.

```
curl -X GET -vk -u user:123456 https://host.docker.internal:9200/archiver?path=file.txt

```

## Expected behavior
Should be able to download the archive of the text file. (with Response status code 200)

## Actual behavior
```
TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 27
< Content-Type: text/plain; charset=utf-8
< Date: Thu, 22 Sep 2022 10:09:53 GMT
< Vary: Origin
<
* Connection #0 to host host.docker.internal left intact
error: not found: file.txt%
```

## 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 or
`https://host.docker.internal:9200/archiver?path=/home/file.txt` or other?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.