funcool

A channel for discussing and asking questions about Funcool libraries https://github.com/funcool/
niwinz 2016-06-10T04:52:36.000046Z

nice, I'll try to investigate about it, thanks @kardan

kardan 2016-06-10T04:59:58.000047Z

@niwinz I wonder if it’s not Ratpack that does not like the cookie value

niwinz 2016-06-10T05:01:05.000048Z

it is possible, but ratpack as is does nothing with cookies, so it can be completly possible that netty is the cause also

kardan 2016-06-10T05:01:14.000049Z

ok

kardan 2016-06-10T05:01:21.000050Z

I don’t know much about this

niwinz 2016-06-10T05:01:22.000051Z

I'll try to research about it today

kardan 2016-06-10T05:01:29.000052Z

No stress from my side

niwinz 2016-06-10T05:01:41.000053Z

ok, nice to know

kardan 2016-06-10T05:01:53.000054Z

It was just that I made a mistake trying to store a jws token in a cookie

kardan 2016-06-10T05:02:12.000055Z

hence tried to store “Token <token” in a cookie

niwinz 2016-06-10T12:25:11.000056Z

@kardan: seems like cookie value is very limited in allowed characters

niwinz 2016-06-10T12:25:42.000057Z

and ratpack uses a netty's strict validation of cookies

niwinz 2016-06-10T12:26:01.000058Z

that causes that netty rejects the cookies with spaces and other chars...

niwinz 2016-06-10T12:26:31.000059Z

https://tools.ietf.org/html/rfc6265

niwinz 2016-06-10T12:26:33.000060Z

related rfc

niwinz 2016-06-10T12:27:49.000061Z

http://stackoverflow.com/a/1969339/1022392

niwinz 2016-06-10T12:27:55.000063Z

and related SO response

niwinz 2016-06-10T12:28:09.000064Z

I'll update the documentation with this

kardan 2016-06-10T12:58:25.000065Z

@niwinz: ok, thanks for the update. I was a bit confused to get the "No response sent for POST request to” error

niwinz 2016-06-10T13:04:46.000066Z

This is final exception caused by an other internal exception

niwinz 2016-06-10T13:05:03.000067Z

I don't know if other exceptions are logged or not

niwinz 2016-06-10T13:05:33.000068Z

if not maybe you need add an optional dependency to [org.slf4j/slf4j-simple "1.7.21" :scope "provided"]

niwinz 2016-06-10T13:06:09.000069Z

if you run the tests with your modifcation of the cookie test

niwinz 2016-06-10T13:06:51.000070Z

you will see that the exception chain is pretty big and the no response is caused by

kardan 2016-06-10T13:07:13.000071Z

Ah ok, will do. Thanks for the explanation!

niwinz 2016-06-10T13:09:14.000072Z

glad to help!