syncthing / syncthing/syncthing

Connection not dropped and sync stalled when sharing folder first, and only then adding password

Open
#7,921 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
88.8k
Forks
5.5k
Avg merge
2d 10h
Merged PRs (30d)
5

Description

  1. On Device 1, share a folder with Device 2.
    image
    image
  2. Only now, set a password for the folder on Device 1.
    image
  3. On Device 2, try to add the folder. The type is correctly detected and automatically set to Receive Encrypted.
    image
  4. On Device 2, the folder has been added and is marked as "Up to Date". On Device 1, the files are stuck in sync though. The connection itself has not been dropped after adding the folder, as should normally happen when adding a new Receive Encrypted folder.
    image
    image

The workaround is to manually disconnect and reconnect the two devices, which will then force the folder to sync.

Edit:

I've misclicked the issue type. It should be labelled as a "bug" 😳.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported sequence: share a folder, add its password afterward, then add it as Receive Encrypted on the second device. Trace the connection and synchronization handling for this transition, and verify that the connection is dropped as expected and synchronization completes without a manual disconnect and reconnect.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.