Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@schmitch
Copy link
Contributor

@schmitch schmitch commented Sep 6, 2016

This will actually fix the error that will come up with netty 4.0.40.Final.
We don't need to Backport the Netty Decoder since java.net.URI is already correct.

Only fails: https://travis-ci.org/playframework/playframework/jobs/157826296#L3011
NettyWebSocketSpec.

@schmitch schmitch changed the title fixes the uri encoding/decoding with netty 4.0.40.Final [2.5.x] fixes the uri encoding/decoding with netty 4.0.40.Final Sep 6, 2016
val parameters: Map[String, Seq[String]] = {
val decodedParameters = decoder.parameters()
if (decodedParameters.isEmpty) Map.empty
else decodedParameters.asScala.mapValues(_.asScala.mkString.split(",").toList).toMap
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without mkString/split it first it would fail on "a=b,c".

@gmethvin gmethvin merged commit e943b9b into playframework:2.5.x Sep 7, 2016
@mkurz mkurz added this to the 2.5.7 milestone Sep 13, 2016
@schmitch schmitch deleted the uri-decoding-25 branch September 15, 2016 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants