owncloud / owncloud/ocis

[CLI] Restart and Resume stale uploads returns empty list

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

Description

## Describe the bug
When runnning the CLI command to restart or resume the stale uploads, the the response returns empty list.

It looks like the commands did not restart or resume the stale uploads.

## Steps to reproduce
1. set `POSTPROCESSING_DELAY` env
2. upload a file `file.txt` and make the file to be in stale state
3. run the CLI command to restart or resume the upload

`ocis storage-users uploads sessions --resume`
and
`ocis storage-users uploads sessions --restart`

## Expected behavior
It should list the file that is restarted or resumed.

## Actual behavior
Returns empty list.

+---------+-------------+---------+---------+------+--------------+----------+----------+----------------+---------------+----------------+
| Space | Upload Id | Name | Offset | Size | Executant | Owner | Expires | Processing | Scan Date | Scan Result |
+---------+-------------+---------+---------+------+--------------+----------+----------+----------------+---------------+----------------+
+---------+-------------+---------+---------+------+--------------+----------+----------+----------------+---------------+----------------+

## Setup
- Infinite Scale 7.1.2+540c2bff621 Community

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.