Hello community,

here is the log from the commit of package syncthing for openSUSE:Factory 
checked in at 2016-02-23 16:57:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/syncthing (Old)
 and      /work/SRC/openSUSE:Factory/.syncthing.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "syncthing"

Changes:
--------
--- /work/SRC/openSUSE:Factory/syncthing/syncthing.changes      2016-02-17 
12:25:15.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.syncthing.new/syncthing.changes 2016-02-23 
16:59:12.000000000 +0100
@@ -1,0 +2,10 @@
+Thu Feb 18 17:54:13 UTC 2016 - sor.ale...@meowr.ru
+
+- Update to 0.12.19:
+  * Return "No such object in the index" when /rest/db/file gets
+    called on something that doesn't exist.
+  * Swap the corsMiddleware and the csrfMiddleware to the
+    unauthenticated OPTIONS requests are first processed.
+  * Report versioning usage in usage report.
+
+-------------------------------------------------------------------

Old:
----
  syncthing-source-v0.12.18.tar.gz

New:
----
  syncthing-source-v0.12.19.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ syncthing.spec ++++++
--- /var/tmp/diff_new_pack.mwBUze/_old  2016-02-23 16:59:13.000000000 +0100
+++ /var/tmp/diff_new_pack.mwBUze/_new  2016-02-23 16:59:13.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           syncthing
-Version:        0.12.18
+Version:        0.12.19
 Release:        0
 Summary:        FOSS Continuous File Synchronisation
 License:        MPL-2.0

++++++ syncthing-source-v0.12.18.tar.gz -> syncthing-source-v0.12.19.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/RELEASE new/syncthing/RELEASE
--- old/syncthing/RELEASE       2016-02-08 17:40:31.000000000 +0100
+++ new/syncthing/RELEASE       2016-02-14 20:27:44.000000000 +0100
@@ -1 +1 @@
-v0.12.18
+v0.12.19
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/cmd/syncthing/gui.go 
new/syncthing/cmd/syncthing/gui.go
--- old/syncthing/cmd/syncthing/gui.go  2016-02-08 08:33:56.000000000 +0100
+++ new/syncthing/cmd/syncthing/gui.go  2016-02-14 20:27:39.000000000 +0100
@@ -236,12 +236,12 @@
 
        guiCfg := s.cfg.GUI()
 
+       // Add the CORS handling
+       handler := corsMiddleware(mux)
+
        // Wrap everything in CSRF protection. The /rest prefix should be
        // protected, other requests will grant cookies.
-       handler := csrfMiddleware(s.id.String()[:5], "/rest", guiCfg, mux)
-
-       // Add the CORS handling
-       handler = corsMiddleware(handler)
+       handler = csrfMiddleware(s.id.String()[:5], "/rest", guiCfg, handler)
 
        // Add our version and ID as a header to responses
        handler = withDetailsMiddleware(s.id, handler)
@@ -382,6 +382,10 @@
        // Handle CORS headers and CORS OPTIONS request.
        // CORS OPTIONS request are typically sent by browser during AJAX 
preflight
        // when the browser initiate a POST request.
+       //
+       // As the OPTIONS request is unauthorized, this handler must be the 
first
+       // of the chain.
+       //
        // See https://www.w3.org/TR/cors/ for details.
        return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
                // Add a generous access-control-allow-origin header since we 
may be
@@ -615,8 +619,14 @@
        qs := r.URL.Query()
        folder := qs.Get("folder")
        file := qs.Get("file")
-       gf, _ := s.model.CurrentGlobalFile(folder, file)
-       lf, _ := s.model.CurrentFolderFile(folder, file)
+       gf, gfOk := s.model.CurrentGlobalFile(folder, file)
+       lf, lfOk := s.model.CurrentFolderFile(folder, file)
+
+       if !(gfOk || lfOk) {
+               // This file for sure does not exist.
+               http.Error(w, "No such object in the index", 
http.StatusNotFound)
+               return
+       }
 
        av := s.model.Availability(folder, file)
        sendJSON(w, map[string]interface{}{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/cmd/syncthing/usage_report.go 
new/syncthing/cmd/syncthing/usage_report.go
--- old/syncthing/cmd/syncthing/usage_report.go 2015-12-27 13:33:14.000000000 
+0100
+++ new/syncthing/cmd/syncthing/usage_report.go 2016-02-14 20:27:39.000000000 
+0100
@@ -121,10 +121,14 @@
 
        var rescanIntvs []int
        folderUses := map[string]int{
-               "readonly":      0,
-               "ignorePerms":   0,
-               "ignoreDelete":  0,
-               "autoNormalize": 0,
+               "readonly":            0,
+               "ignorePerms":         0,
+               "ignoreDelete":        0,
+               "autoNormalize":       0,
+               "simpleVersioning":    0,
+               "externalVersioning":  0,
+               "staggeredVersioning": 0,
+               "trashcanVersioning":  0,
        }
        for _, cfg := range cfg.Folders() {
                rescanIntvs = append(rescanIntvs, cfg.RescanIntervalS)
@@ -141,6 +145,9 @@
                if cfg.AutoNormalize {
                        folderUses["autoNormalize"]++
                }
+               if cfg.Versioning.Type != "" {
+                       folderUses[cfg.Versioning.Type+"Versioning"]++
+               }
        }
        sort.Ints(rescanIntvs)
        res["rescanIntvs"] = rescanIntvs
Files old/syncthing/extra/FAQ.pdf and new/syncthing/extra/FAQ.pdf differ
Files old/syncthing/extra/Getting-Started.pdf and 
new/syncthing/extra/Getting-Started.pdf differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/lib/auto/gui.files.go 
new/syncthing/lib/auto/gui.files.go
--- old/syncthing/lib/auto/gui.files.go 2016-02-08 17:40:25.000000000 +0100
+++ new/syncthing/lib/auto/gui.files.go 2016-02-14 20:27:39.000000000 +0100
@@ -5,7 +5,7 @@
 )
 
 const (
-       AssetsBuildDate = "Mon, 08 Feb 2016 16:39:33 GMT"
+       AssetsBuildDate = "Sun, 14 Feb 2016 19:26:12 GMT"
 )
 
 func Assets() map[string][]byte {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-bep.7 
new/syncthing/man/syncthing-bep.7
--- old/syncthing/man/syncthing-bep.7   2016-02-08 08:33:56.000000000 +0100
+++ new/syncthing/man/syncthing-bep.7   2016-02-14 20:27:39.000000000 +0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-BEP" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-BEP" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-bep \- Block Exchange Protocol v1
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-config.5 
new/syncthing/man/syncthing-config.5
--- old/syncthing/man/syncthing-config.5        2016-02-08 17:40:25.000000000 
+0100
+++ new/syncthing/man/syncthing-config.5        2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-CONFIG" "5" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-CONFIG" "5" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-config \- Syncthing Configuration
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-device-ids.7 
new/syncthing/man/syncthing-device-ids.7
--- old/syncthing/man/syncthing-device-ids.7    2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-device-ids.7    2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-DEVICE-IDS" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-DEVICE-IDS" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-device-ids \- Understanding Device IDs
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-event-api.7 
new/syncthing/man/syncthing-event-api.7
--- old/syncthing/man/syncthing-event-api.7     2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-event-api.7     2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-EVENT-API" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-EVENT-API" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-event-api \- Event API
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-faq.7 
new/syncthing/man/syncthing-faq.7
--- old/syncthing/man/syncthing-faq.7   2016-02-08 08:33:56.000000000 +0100
+++ new/syncthing/man/syncthing-faq.7   2016-02-14 20:27:39.000000000 +0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-FAQ" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-FAQ" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-faq \- Frequently Asked Questions
 .
@@ -156,6 +156,9 @@
 .sp
 Each user should run their own Syncthing instance. Be aware that you might need
 to configure ports such that they do not overlap (see the config.xml).
+.SS Does Syncthing support syncing between folders on the same system?
+.sp
+Syncthing is not designed to sync locally and the overhead involved in doing 
so will waste resources. There are better programs to achieve this such as 
rsync or Unison.
 .SS Is Syncthing my ideal backup application?
 .sp
 No, Syncthing is not a backup application because all changes to your files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-globaldisco.7 
new/syncthing/man/syncthing-globaldisco.7
--- old/syncthing/man/syncthing-globaldisco.7   2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-globaldisco.7   2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-GLOBALDISCO" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-GLOBALDISCO" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-globaldisco \- Global Discovery Protocol v3
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-localdisco.7 
new/syncthing/man/syncthing-localdisco.7
--- old/syncthing/man/syncthing-localdisco.7    2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-localdisco.7    2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-LOCALDISCO" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-LOCALDISCO" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-localdisco \- Local Discovery Protocol v3
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-networking.7 
new/syncthing/man/syncthing-networking.7
--- old/syncthing/man/syncthing-networking.7    2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-networking.7    2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-NETWORKING" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-NETWORKING" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-networking \- Firewall Setup
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-relay.7 
new/syncthing/man/syncthing-relay.7
--- old/syncthing/man/syncthing-relay.7 2016-02-08 08:33:56.000000000 +0100
+++ new/syncthing/man/syncthing-relay.7 2016-02-14 20:27:39.000000000 +0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-RELAY" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-RELAY" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-relay \- Relay Protocol v1
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-rest-api.7 
new/syncthing/man/syncthing-rest-api.7
--- old/syncthing/man/syncthing-rest-api.7      2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-rest-api.7      2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-REST-API" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-REST-API" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-rest-api \- REST API
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-security.7 
new/syncthing/man/syncthing-security.7
--- old/syncthing/man/syncthing-security.7      2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-security.7      2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-SECURITY" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-SECURITY" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-security \- Security Principles
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-stignore.5 
new/syncthing/man/syncthing-stignore.5
--- old/syncthing/man/syncthing-stignore.5      2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-stignore.5      2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING-STIGNORE" "5" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING-STIGNORE" "5" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing-stignore \- Prevent files from being synchronized to other nodes
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing-versioning.7 
new/syncthing/man/syncthing-versioning.7
--- old/syncthing/man/syncthing-versioning.7    2016-02-08 08:33:56.000000000 
+0100
+++ new/syncthing/man/syncthing-versioning.7    2016-02-14 20:27:39.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "TODO" "7" "February 08, 2016" "v0.12" "Syncthing"
+.TH "TODO" "7" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 Todo \- Keep automatic backups of deleted files by other nodes
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/syncthing/man/syncthing.1 
new/syncthing/man/syncthing.1
--- old/syncthing/man/syncthing.1       2016-02-08 08:33:56.000000000 +0100
+++ new/syncthing/man/syncthing.1       2016-02-14 20:27:39.000000000 +0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH "SYNCTHING" "1" "February 08, 2016" "v0.12" "Syncthing"
+.TH "SYNCTHING" "1" "February 12, 2016" "v0.12" "Syncthing"
 .SH NAME
 syncthing \- Syncthing
 .
@@ -38,7 +38,7 @@
 .ft C
 syncthing [\-audit] [\-generate=<dir>] [\-gui\-address=<address>] 
[\-gui\-apikey=<key>]
           [\-home=<dir>] [\-logfile=<filename>] [\-logflags=<flags>] 
[\-no\-browser]
-          [\-no\-console] [\-no\-restart] [\-reset] [\-upgrade] 
[\-upgrade\-check]
+          [\-no\-console] [\-no\-restart] [\-paths] [\-reset] [\-upgrade] 
[\-upgrade\-check]
           [\-upgrade\-to=<url>] [\-verbose] [\-version]
 .ft P
 .fi
@@ -123,6 +123,11 @@
 .UNINDENT
 .INDENT 0.0
 .TP
+.B \-paths
+Print the paths used for configuration, keys, database, GUI overrides, default 
sync folder and the log file.
+.UNINDENT
+.INDENT 0.0
+.TP
 .B \-reset
 Reset the database.
 .UNINDENT


Reply via email to