syncthing / syncthing/syncthing
Connection not dropped and sync stalled when sharing folder first, and only then adding password
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Go
- Stars
- 88.8k
- Forks
- 5.5k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
- On Device 1, share a folder with Device 2.


- Only now, set a password for the folder on Device 1.

- On Device 2, try to add the folder. The type is correctly detected and automatically set to Receive Encrypted.

- 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.


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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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