[CLI] Restart and Resume stale uploads returns empty list
- 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
Assessment
This issue has not been assessed yet.