nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.21k stars 1.75k forks source link

Error resolving conflict: not shown correctly when app protection is enabled #7000

Open styx-tdo opened 4 years ago

styx-tdo commented 4 years ago

Steps to reproduce

  1. create a conflict
  2. click on notification "File upload conflict"

Expected behaviour

.... conflict dialogue

Actual behaviour

get toast: Error creating conflict dialogue!

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

Environment data

Android version: 9 Device model: BV9900Pro

Stock or customized system: stock

Nextcloud app version: 3.13.1

Nextcloud server version: 18

Reverse proxy: N/A

Logs

Web server error log

N/A

nursoda commented 4 years ago

Same here. Conflict dialog is not shown after tapping the notification. Instead, the error "Error creating conflict dialogue!" is shown (as toast). Device OnePlus 6T, Android 10, NC Android App 3.13.1.

Yet, some version ago it WAS shown but either choice led to the conflict not being resolved and the dialog being displayed again. For that (other) issue, see https://github.com/nextcloud/android/issues/6963

tobiasKaminsky commented 3 years ago

Do you have any idea what kind of conflict file this is?

styx-tdo commented 3 years ago

File being updated on server and client.. that this is weird for a photo folder is a question for another ticket, though.

nursoda commented 3 years ago

Do you have any idea what kind of conflict file this is?

In my case this happens when AutoUpload is set to COPY immediately via Wifi (don't delete locally) and I edit (crop most of the time) the image (e.g. screenshot).

tobiasKaminsky commented 3 years ago

Can you test #7102 ?

stale[bot] commented 3 years ago

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

giox069 commented 3 years ago

Same problem here, with latest version (3.14.1) available on playstore of Nextcloud client for android. Phone is Huawei P10 Lite. It started some months ago: suddenly a lot of conflicts started to appear on the InstantUpload Camera folder for no reason. But it's impossible to open the conflict dialog/window from the system notification: immagine

nursoda commented 3 years ago

Sorry, I was/am busy. Just hit the part of the error again I think. I'm on a OnePlus 6T using NC app 3.14.1 (Google Play Beta Channel) on Android 10 against NC 20.0.2. Actions to reproduce:

github-actions[bot] commented 3 years ago

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

nursoda commented 3 years ago

I don't think there is anything I could do better here since the test request above is obsolete since the subsequent reports are based on a client that already had the improvements merged.

tobiasKaminsky commented 3 years ago

Can you test again with app protection disabled?

nursoda commented 3 years ago

Completely without app protection, and with PIN, I always get the proper conflict dialog and file handling. With app protection, it depends on timing and whether the app is open before tapping the conflict notification:

Steps to reproduce:

So, yes, perfect like that … except that the preview pic NC app shows doesn't match cropped but full shot.

Here's a screenshot taken after removing protection to show the zero byte case (in uploads history):

Screenshot_20210304-222046

detrout commented 3 years ago

I am experiencing this problem (or at least one very similar).

I had used auto upload to upload a bunch of images from my phone to nextcloud, but left them on my phone. Later I decided to change my nextcloud site name from something like example.org/nextcloud to nextcloud.example.org which seemed to require that I delete and recreate my account.

I recreated my account and turned instant upload on and the android client attempted to reupload all 700ish files. I unfortunately didn't pick a default of assume server side is correct so it want's to ask which version to keep.

However when I click on the "File upload conflict" notification I get "Error creating conflict dialog"

I'm on a Galaxy S9 SM-G960U1, using Android 10 build QP1A.190711.020.G960U1UES9FUC1 with SE Enforcing on.

I'm using Nextcloud from f-droid version 3.14.1

Also I think something about managing the notification window with the 700ish photos is causing a power drain as after I turned this on my battery life seems to have declined.

detrout commented 3 years ago

I was finally able to find how get to the conflict resolution dialog. I had to go to uploads in the nextcloud app and in there if I tapped a photo the dialog would pop up. I canceled the pending uploads first, before changing the state, but I'm not sure if that's necessary.

cnmicha commented 3 years ago

Potential duplicate of #6027

strk commented 3 months ago

Same problem here now. Model: moto g¹⁰ (XT2127-2) Android 11 build number RRBS31.Q1-3-48-22 App version: 3.29.0

I confirm @detrout workaround works: https://github.com/nextcloud/android/issues/7000#issuecomment-833717522