error when updating with 1 char password

5 views
Skip to first unread message

Joel Saltzman

unread,
Jul 7, 2014, 11:42:00 PM7/7/14
to couc...@googlegroups.com
http PUT :4985/chat/_user/test1 name=test1 email=te...@t.com 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
/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
/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
/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
/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
/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, 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, 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

Matt Ingenthron

unread,
Jul 7, 2014, 11:47:58 PM7/7/14
to couc...@googlegroups.com
Hi Joel,

This would be most on topic on the couchbas...@googlegroups.com list.  Can you post there?

Also, it looks more like a bug report anyway.  You may want to go straight to the issue tracker.

Thanks,

Matt

--
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 couchbase+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Matt Ingenthron
Couchbase, Inc.

Joel Saltzman

unread,
Jul 9, 2014, 8:28:53 PM7/9/14
to couc...@googlegroups.com
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 couchbas...@googlegroups.com list.  Can you post there?

Also, it looks more like a bug report anyway.  You may want to go straight to the issue tracker.

Thanks,

Matt

From: Joel Saltzman <ta...@joelsaltzman.com>
Reply-To: "couc...@googlegroups.com" <couc...@googlegroups.com>
Date: Monday, July 7, 2014 at 8:42 PM
To: "couc...@googlegroups.com" <couc...@googlegroups.com>
Subject: error when updating with 1 char password

http PUT :4985/chat/_user/test1 name=test1 emai...@t.com password="t" disabled:=true
Reply all
Reply to author
Forward
0 new messages