Repository: syncthing/syncthing (language: go)

Issue:
Permission error on folder causes "connection error" dialog when opening folder editor
https://forum.syncthing.net/t/unable-to-delete-folder/21195


Discussion / hints:

Fix patch:
diff --git a/lib/api/api.go b/lib/api/api.go
index 065b634d4be..c316310c810 100644
--- a/lib/api/api.go
+++ b/lib/api/api.go
@@ -47,7 +47,6 @@ import (
 	"github.com/syncthing/syncthing/lib/discover"
 	"github.com/syncthing/syncthing/lib/events"
 	"github.com/syncthing/syncthing/lib/fs"
-	"github.com/syncthing/syncthing/lib/ignore"
 	"github.com/syncthing/syncthing/lib/locations"
 	"github.com/syncthing/syncthing/lib/logger"
 	"github.com/syncthing/syncthing/lib/model"
@@ -1349,11 +1348,6 @@ func (s *service) getDBIgnores(w http.ResponseWriter, r *http.Request) {
 	folder := qs.Get("folder")
 
 	lines, patterns, err := s.model.LoadIgnores(folder)
-	if err != nil && !ignore.IsParseError(err) {
-		http.Error(w, err.Error(), http.StatusInternalServerError)
-		return
-	}
-
 	sendJSON(w, map[string]interface{}{
 		"ignore":   lines,
 		"expanded": patterns,


Test patch: