[BUG] Unable to upload large files when using OCIS backend

未关闭
#4,491 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
kotlin
领域
mobile

调研方向

首先跟踪 Android 应用在连接到 Traefik 后的 OCIS 5.0.8 后端时的 upload 流程,然后重现一次持续时间超过 60 秒的 upload。将当前的 retry 行为与所请求的 chunked 和 resumable upload 行为进行比较;完成的标准是大型或受带宽限制的 upload 能够经受 proxy timeout,并从之前的进度继续。

由索引模型根据 Issue 内容生成。

描述

Actual behavior

When trying to upload a big file (or a small one with limited bandwidth), the upload always fails.
When looking at the reverse proxy logs on server side (traefik), there are some kind of timeout after ~60 seconds (most likely due to traefik's default read timeout of 60s).
Then, If I try to restart the upload, the upload starts again from the beginning.

When searching in existing issues, there is a 4 year old issue (#2978) referring to file upload but I don't know the current status of this feature.

Expected behavior

I was expecting :

  • large files to be uploaded in multiple chunks
  • failed uploads to restarts from where it ended
Steps to reproduce
  1. Use ocis as backend (5.0.8), with traefik as reverse proxy
  2. Try to upload a big file (which takes more than 60 seconds to upload)
  3. wait 60 seconds
Environment data

ownCloud app version: 4.4.0
ownCloud server version: ocis 5.0.8 behind traefik

Logs

I can provide logs if needed, but I think the issue is easy enough to reproduce.

主要语言
Kotlin
星标
4.2k
派生
3.1k
平均合并
3 天 9 小时
30 天内合并 PR
16

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

owncloud/android 的其他 Issue

查看 owncloud/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。