Crash when chromebook tries to get printer attributes. #2
Owner
```
INFO[2020-12-03 09:46:53] http server started on :1234
INFO[2020-12-03 09:47:00] handle
INFO[2020-12-03 09:47:00] Header Version number: 1.1 Operation Id: GetPrinterAttributes Request Id: 52473
INFO[2020-12-03 09:47:00] got tag - operationAttributes
INFO[2020-12-03 09:47:00] Value tag - charsetValueTag
INFO[2020-12-03 09:47:00] attributes-charset utf-8
INFO[2020-12-03 09:47:00] Value tag - naturalLanguagageValueTag
INFO[2020-12-03 09:47:00] attributes-natural-language en
INFO[2020-12-03 09:47:00] Value tag - uriValueTag
INFO[2020-12-03 09:47:00] printer-uri ipp://localhost:1234/ipp/print
INFO[2020-12-03 09:47:00] Value tag - endOfAttributes
Version number: 1.1 Operation Id: GetPrinterAttributes Request Id: 52473
OperationAttributes
printer-uri:ipp://localhost:1234/ipp/print (uriValueTag)
attributes-charset:utf-8 (charsetValueTag)
attributes-natural-language:en (naturalLanguagageValueTag)
INFO[2020-12-03 09:47:00] 01 01 00 00 00 00 cc f9 01 47 00 12 61 74 74 72 69 62 75 74 65 73 2d 63 68 61 72 73 65 74 00 05 75 74 66 2d 38 03
INFO[2020-12-03 09:47:59] handle
INFO[2020-12-03 09:47:59] Header Version number: 1.1 Operation Id: GetPrinterAttributes Request Id: 1
INFO[2020-12-03 09:47:59] got tag - operationAttributes
INFO[2020-12-03 09:47:59] Value tag - charsetValueTag
INFO[2020-12-03 09:47:59] attributes-charset utf-8
INFO[2020-12-03 09:47:59] Value tag - naturalLanguagageValueTag
INFO[2020-12-03 09:47:59] attributes-natural-language en-us
INFO[2020-12-03 09:47:59] Value tag - uriValueTag
INFO[2020-12-03 09:47:59] printer-uri ipp://192.168.0.2:1234/ipp/print
INFO[2020-12-03 09:47:59] Value tag - keywordValueTag
2020/12/03 09:47:59 http: panic serving 192.168.0.109:40456: runtime error: index out of range [0] with length 0
goroutine 23 [running]:
net/http.(*conn).serve.func1(0xc0000b92c0)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x6da460, 0xc0000c1000)
/usr/local/go/src/runtime/panic.go:975 +0x3e9
ippserver/packages/ipp.(*Request).UnMarshal(0xc0001273c0, 0x7f1d9363c098, 0xc000127380)
/home/henrik/work/ippserver/packages/ipp/messages.go:205 +0x1014
main.handle(0x7571e0, 0xc0001021c0, 0xc0000e8c00)
/home/henrik/work/ippserver/main.go:43 +0x1ab
net/http.HandlerFunc.ServeHTTP(0x7107d8, 0x7571e0, 0xc0001021c0, 0xc0000e8c00)
/usr/local/go/src/net/http/server.go:2042 +0x44
net/http.(*ServeMux).ServeHTTP(0x8e11a0, 0x7571e0, 0xc0001021c0, 0xc0000e8c00)
/usr/local/go/src/net/http/server.go:2417 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000102000, 0x7571e0, 0xc0001021c0, 0xc0000e8c00)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc0000b92c0, 0x757720, 0xc0000c8a80)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c
```
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?