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

オープン
#4,491 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
kotlin
領域
mobile

調査の方向性

まず、Traefik の背後にある OCIS 5.0.8 バックエンドに接続したときの Android アプリの 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時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

owncloud/android のほかの issue

owncloud/android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。