Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Same share folder notification displayed multiple times #679

Closed
alihammadraza opened this issue Jun 18, 2016 · 12 comments
Closed

Same share folder notification displayed multiple times #679

alihammadraza opened this issue Jun 18, 2016 · 12 comments

Comments

@alihammadraza
Copy link

No description provided.

@Nutomic
Copy link
Contributor

Nutomic commented Jun 21, 2016

I'm not sure what you mean, can you explain it more clearly? Maybe it is #672?

@cedardocster
Copy link

I get the same thing: android client says "device M17 Laptop wants to share folder phone shares (id number)", I pick the folder to share, save and restart syncthing and within a minute it asks again the same thing. Also I select a second computer (the one I'm currently using) to share in the android syncthing settings, but when the subsequent repeat question comes back that second computer share is not selected

@Nutomic Nutomic changed the title On sharing 2 folders from desktop, syncthing android keeps requesting for the first shared folder repeatedly despite authorization and does not move on to the second folder request approval process Same share folder notification displayed multiple times Sep 9, 2016
@Nutomic Nutomic added the bug label Sep 21, 2016
@WillMorhler
Copy link

I am having approximately this same issue. Sharing between two devices - an Android phone currently running 14.39 and a raspberry pi/raspbian running 14.40. The phone repeatedly gives the notification device [ras pi] wants to share folder [folder]. This is the only folder I am sharing to the phone. Happy to provide further info that would assist in diagnosing, particularly to determine if this is a bug or user error.

@Catfriend1
Copy link
Contributor

I think this happens due to

where we call the addfolder dialog if the user clicks on the notification but do nothing (no report back to syncthing) if the user chose "ignore folder". I guess we need to post some REST on dismissal.

@Catfriend1
Copy link
Contributor

Related: https://forum.syncthing.net/t/unexpected-continuous-devicereject-events-from-the-api-with-incrementing-ids/11800

@Catfriend1 Catfriend1 self-assigned this Jul 6, 2018
@Catfriend1
Copy link
Contributor

Commit Catfriend1/syncthing-android@36fa58a fixes the creation of duplicate notifications about the same thing. It adds the device name instead of the device id for better readability. Notification logic for device, folder accepts is moved to NotificationHandler class.

@Catfriend1
Copy link
Contributor

This problem also applies to device connection consent notifications.
Also fixed by PR #1177

@Catfriend1
Copy link
Contributor

Catfriend1 commented Jul 7, 2018

@alihammadraza @cedardocster @WillMorhler
I've fixed this bug. Can you please test the debug build available at https://build.syncthing.net/repository/download/SyncthingAndroid_Build/23765:id/outputs/apk/debug/app-debug.apk and report back if it now works correctly?
Please note: This is a debug build and may cause problems. In case you want to be safe, please backup your syncthing configuration and data first.

@WillMorhler
Copy link

Thanks for the follow up and fix. Unfortunately, I'm not able to test the debug build but I do appreciate your efforts.

@xor-gate
Copy link
Member

Its weird we have to solve this kind of event silencing in all wrappers (webgui, syncthing-android, syncthing-macosx, etcetera) and it is not in the core accessable from the REST API. @AudriusButkevicius and @calmh should I open a issue/feature request for syncthing daemon to control it?

@AudriusButkevicius
Copy link
Member

I think (not sure) there is already one, essentially having and endpoint that lists pending invites. This way we don't have to rely on the events not rolling off.

@xor-gate
Copy link
Member

Probably you are pointing to this one: syncthing/syncthing#4084

@syncthing syncthing locked and limited conversation to collaborators Jul 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants