Access not possible when using a HTTP redirect
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- authentication, mobile
調査の方向性
スタックトレースでリクエストパスとして特定されている AidlNetworkRequest.performNetworkRequestV2 と InputStreamBinder.processRequestV2 から始めます。HTTP 302 レスポンスがどのように処理されるかを確認します。報告された Notes app のリクエストで、リダイレクト経由で移設されたインストールを使用できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have an NC installation that was relocated in the past. To keep things for older installations/users working I added an HTTP redirect (302 at the moment). This breaks the notes app on android.
I contacted the developer there and he tells me that he uses this library in order to do all network-based stuff. He asked me to open an issue here to ake you aware of the issue.
Here is the information I got from the app:
App Version: 2.11.8
App Version Code: 2011008
App Flavor: play
Files App Version Code: 30110151
---
OS Version: 3.0.31-1678704(N8000XXSDQA7)
OS API Level: 19
Device: p4noterf
Manufacturer: samsung
Model (and Product): GT-N8000 (p4noterfxx)
---
com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException:
HTTP-Anfrage ist fehlgeschlagen mit HTTP-Statuscode: 302
at
com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:172)
at
com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:148)
at
it.niedermann.owncloud.notes.persistence.NotesClient.requestServer(NotesClient.java:162)
at
it.niedermann.owncloud.notes.persistence.NotesClient.getNotes(NotesClient.java:98)
at
it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.pullRemoteChanges(NoteServerSyncHelper.java:446)
at
it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:358)
at
it.niedermann.owncloud.notes.persistence.NoteServerSyncHelper$SyncTask.doInBackground(NoteServerSyncHelper.java:320)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.IllegalStateException: <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a
href="https://new.url.of.my.installation/nextcloud/index.php/apps/notes/api/v0.2/notes?pruneBefore=0">here</a>.</p>
</body></html>
at
com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:438)
at
com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:135)
at
com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:118)
at
com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:134)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
I only changed the URL domain in the backtrace.
If you need more information or anything I can provide, please let me know.
- 主要言語
- Java
- スター
- 75
- フォーク
- 36
- 平均マージ
- 23時間 43分
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/Android-SingleSignOn のほかの issue
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nextcloud/Android-SingleSignOn#1081 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nextcloud/Android-SingleSignOn#563 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
nextcloud/Android-SingleSignOn#894 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nextcloud/Android-SingleSignOn#859 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nextcloud/Android-SingleSignOn#849 ·
メンテナーはふだん 1 日以内に返信
nextcloud/Android-SingleSignOn の issue をすべて見る
似ている issue
-
Update license yearオープン0 - Backlog 1 - Ready documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
cbor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
FasterXML/jackson-dataformats-binary#844 ·
メンテナーはふだん 1 日以内に返信
-
Issue: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
OpenAPITools/openapi-generator#25107 ·
メンテナーはふだん 1 日以内に返信
-
improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg#18351 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
repowise-dev/repowise#2945 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信