Skip to content

Looping around login wizard and never get in the app #9874

Description

@mauro2306

Steps to reproduce

  1. open nextcloud android app
  2. Enter server URL
  3. enter credentials
  4. login successful, screen with "grant access" button
  5. Pressing the button loops you to server URL page

Expected behaviour

  • App should be open and nextcloud account should appear in Android "account" session and ready to sync

Actual behaviour

  • No account created and not able to access the nextcloud app connected with the account. The device does appear in the nextcloud web page with all synced devices for that account, and each time we try to connect, another instance appear in the list. On the server, 4 or 5 different other devices logged in successfully, including other Xiaomi devices

Can you reproduce this problem on https://try.nextcloud.com? to be tested

  • Please create a test demo account and see if this still happens there.
  • If yes, please open up a bug report
  • If not, please verify server setup and ask for help on forum
    Edit : Exact same behavior after double check

Environment data

Android version: 11

Device model:
Redmi Note 8

Stock or customized system:
Stock MIUI 12.5.1

Nextcloud app version:
3.19.0

Nextcloud server version:
self-hosted 22.2.5

Reverse proxy:
linuxserver/swag docker using nginx and letsencrypt certificate

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

************ CAUSE OF ERROR ************

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:1997 flg=0x1 }} to activity {com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity}: java.lang.RuntimeException
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5146)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5187)
	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2135)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:236)
	at android.app.ActivityThread.main(ActivityThread.java:8037)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.RuntimeException
	at com.owncloud.android.ui.activities.ActivitiesActivity$$ExternalSyntheticLambda0.get(Unknown Source:2)
	at com.nextcloud.java.util.Optional.orElseThrow(Optional.java:309)
	at com.owncloud.android.ui.activity.FileDisplayActivity.requestUploadOfContentFromApps(FileDisplayActivity.java:1035)
	at com.owncloud.android.ui.activity.FileDisplayActivity.onActivityResult(FileDisplayActivity.java:878)
	at android.app.Activity.dispatchActivityResult(Activity.java:8531)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5139)
	... 11 more

************ APP INFORMATION ************
ID: com.nextcloud.client
Version: 30190090
Build flavor: gplay

************ DEVICE INFORMATION ************
Brand: xiaomi
Device: ginkgo
Model: Redmi Note 8
Id: RKQ1.201004.002
Product: ginkgo

************ FIRMWARE ************
SDK: 30
Release: 11
Incremental: V12.5.1.0.RCOMIXM

https://youtu.be/GmjCqLKZZw8

signal-2022-02-22-210516

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeature: authenticationAuthentication or accounts relatedneeds infoWaiting for info from user(s). Issues with this label will auto-stale.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions