Oops, sorry. Issue created. Thanks. On Monday, July 7, 2014 8:47:58 PM UTC-7, Matt Ingenthron wrote: > > Hi Joel, > > This would be most on topic on the [email protected] > <javascript:> list. Can you post there? > > Also, it looks more like a bug report anyway. You may want to go > straight to the issue tracker > <https://github.com/couchbase/sync_gateway/issues>. > > Thanks, > > Matt > > From: Joel Saltzman <[email protected] <javascript:>> > Reply-To: "[email protected] <javascript:>" < > [email protected] <javascript:>> > Date: Monday, July 7, 2014 at 8:42 PM > To: "[email protected] <javascript:>" <[email protected] > <javascript:>> > Subject: error when updating with 1 char password > > *http PUT :4985/chat/_user/test1 name=test1 [email protected] <javascript:> > password="t" disabled:=true* > > http: error: ConnectionError: HTTPConnectionPool(host='localhost', > port=4985): Max retries exceeded with url: /chat/_user/test1 (Caused by > <class 'httplib.BadStatusLine'>: '') > > > > Sync Gateway Output: > 20:17:47.465386 HTTP: #1956: PUT /chat/_user/test1 (ADMIN) > 20:17:47.465421 HTTP: #1956: --> 400 Invalid JSON: "unexpected end of > JSON input" (0.0 ms) > 20:19:40.201989 HTTP: #1957: PUT /chat/_user/test1 (ADMIN) > 20:19:40.202036 HTTP: #1957: --> 400 Invalid JSON: "json: cannot > unmarshal string into Go value of type bool" (0.0 ms) > 20:20:02.251247 HTTP: #1958: PUT /chat/_user/test1 (ADMIN) > 20:20:02.251299 HTTP: #1958: --> 400 Invalid JSON: "json: cannot > unmarshal string into Go value of type bool" (0.0 ms) > 20:28:34.987131 HTTP: #1959: PUT /chat/_user/test1 (ADMIN) > 2014/07/07 20:28:34 http: panic serving 127.0.0.1:59355: Error hashing > password: crypto/blowfish: invalid key size 2 > goroutine 955 [running]: > net/http.func·009() > /usr/local/go/src/pkg/net/http/server.go:1093 +0xae > runtime.panic(0x419a80, 0xc210126770) > /usr/local/go/src/pkg/runtime/panic.c:248 +0x106 > > github.com/couchbaselabs/sync_gateway/auth.(*userImpl).SetPassword(0xc2100ccbb0, > > 0xc2100f3af8, 0x1) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/auth/user.go:209 +0x1a0 > github.com/couchbaselabs/sync_gateway/rest.updatePrincipal(0xc21000b140, > 0xc210126270, 0x0, 0x0, 0xc210126280, ...) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/rest/admin_api.go:177 +0x418 > > github.com/couchbaselabs/sync_gateway/rest.(*handler).updatePrincipal(0xc2100fa990, > > 0xc21012ad30, 0x5, 0x1, 0xc21037f0a0, ...) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/rest/admin_api.go:232 +0x2bb > github.com/couchbaselabs/sync_gateway/rest.(*handler).putUser(0xc2100fa990, > 0xc21012afa0, 0x4) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/rest/admin_api.go:246 +0x7f > github.com/couchbaselabs/sync_gateway/rest.(*handler).invoke(0xc2100fa990, > 0x6a3ad0, 0x0, 0x0) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/rest/handler.go:159 +0x35c > github.com/couchbaselabs/sync_gateway/rest.func·011(0xfc01d0 > <http://github.com/couchbaselabs/sync_gateway/rest.func%C2%B7011(0xfc01d0>, > 0xc2101305a0, 0xc21012f000) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/rest/handler.go:86 +0x7c > net/http.HandlerFunc.ServeHTTP(0xc21000a5e0, 0xfc01d0, 0xc2101305a0, > 0xc21012f000) > /usr/local/go/src/pkg/net/http/server.go:1220 +0x40 > github.com/gorilla/mux.(*Router).ServeHTTP(0xc2100bdd20, 0xfc01d0, > 0xc2101305a0, 0xc21012f000) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/vendor/src/ > github.com/gorilla/mux/mux.go:86 +0x1dc > github.com/couchbaselabs/sync_gateway/rest.func·013(0xfc01d0 > <http://github.com/couchbaselabs/sync_gateway/rest.func%C2%B7013(0xfc01d0>, > 0xc2101305a0, 0xc21012f000) > > /Users/jenkins/jenkins/workspace/build_sync_gateway_100_macosx-x64/app-under-test/sync_gateway/src/ > github.com/couchbaselabs/sync_gateway/rest/routing.go:179 +0xc8 > net/http.HandlerFunc.ServeHTTP(0xc2101b4180, 0xfc01d0, 0xc2101305a0, > 0xc21012f000) > /usr/local/go/src/pkg/net/http/server.go:1220 +0x40 > net/http.serverHandler.ServeHTTP(0xc2100a91e0, 0xfc01d0, 0xc2101305a0, > 0xc21012f000) > /usr/local/go/src/pkg/net/http/server.go:1597 +0x16e > net/http.(*conn).serve(0xc21079cf00) > /usr/local/go/src/pkg/net/http/server.go:1167 +0x7b7 > created by net/http.(*Server).Serve > /usr/local/go/src/pkg/net/http/server.go:1644 +0x28b > > -- > You received this message because you are subscribed to the Google Groups > "Couchbase" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > > -- > Matt Ingenthron > Couchbase, Inc. >
-- You received this message because you are subscribed to the Google Groups "Couchbase" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
