Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncthing: device names are not properly escaped #239421

Closed
Majiir opened this issue Jun 23, 2023 · 2 comments · Fixed by #239427
Closed

syncthing: device names are not properly escaped #239421

Majiir opened this issue Jun 23, 2023 · 2 comments · Fixed by #239427
Labels
0.kind: bug Something is broken

Comments

@Majiir
Copy link
Contributor

Majiir commented Jun 23, 2023

Describe the bug

Configuring service.syncthing.devices with special characters (like ') causes the Syncthing service to fail:

systemd[1]: Starting Syncthing configuration updater...
cg9zpg3j8j0ank9l6skk1swqc9z1ga94-merge-syncthing-config[6402]: /nix/store/cg9zpg3j8j0ank9l6skk1swqc9z1ga94-merge-syncthing-config: 41: Syntax error: Unterminated quoted string
systemd[1]: syncthing-init.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: syncthing-init.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Syncthing configuration updater.

Steps To Reproduce

services.syncthing = {
  enable = true;
  devices."Bob's your uncle".id = "...";
};

Expected behavior

Device names may be any string that Syncthing supports via its UI. Syncthing does support '.

Notify maintainers

(guessing based on blame) @ncfavier @bjornfor @Lassulus

Metadata

  • system: "armv7l-linux"
  • Linux 6.1.31, NixOS, 23.05 (Stoat), 23.05.19700101.dirty
  • nixpkgs @ 3a70dd9
@Majiir Majiir added the 0.kind: bug Something is broken label Jun 23, 2023
@ncfavier
Copy link
Member

Could you confirm #239427 fixes the issue?

#230196 would also fix it

@Majiir
Copy link
Contributor Author

Majiir commented Jun 23, 2023

Yep, #239427 fixes it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants