https://kotlinlang.org logo
#ktor
Title
# ktor
c

cy

01/24/2019, 10:06 PM
📣 New ktor 1.1.2 released! * Introduced native curl client engine (#479) * Added iosArm32 target (except curl) * Host and port route builders (#825) * Fixed
host()
and
port()
functions to respect proxy (#834) * Fixed classloading issue affecting hot-reload (#825) * Fixed hanging CIO client (#800, #806) * Added CIO client CBC support (#623, #560, #394) * Upgraded JWKS/JWT (#856) * Fixed server
MessageDigest
concurrent issues * Introduced
NonceManager
, deprecated
OAuth2StateProvider
* Prohibited setting session at server after responding the call (#864) * Fixed loosing errors in
StatusPages
if there was already a response sent * Introduced
application
property on
ApplicationEngine
interface * Introduced experimental ktor server exceptions *
BadRequestException
*
NotFoundException
*
MissingRequestParameterException
*
ParameterConversionException
* supported in locations out of the box (including #767) * experimental parameters delegation support * Added routing tailcard prefix support (#876, #526) * Fixed registering content converters with custom content type pattern (#872) * Improved GSON error diagnostics (#811) * Exclude several content types in Compression feature by default: audio, video, event-stream (#817) * Fixed hanging handleWebSocketConversation * Fixed cookie session max-age value to be bumped to Int.MAX_VALUE (#892) * Fixed CIO headers parsing: allowed headers with no values * Fixed client websocket nonce size (#861) * Fixed client scheme parsing * Supported client relative redirects by making #takeFrom() resolve relative urls. (#849) * Fixed network on main thread in CIO (#764) * Changed the default algorithm to SHA-256 from SHA-1 for signed server cookies * Fixed conflicting
WebSockets
and
StatusPages
(#889) * Update gradle to 4.10 * Kotlin 1.3.20, kotlinx.coroutines 1.1.1, kotlinx.serialization 0.10.0 Please note that you have to migrate to Gradle 4.10+ to use ktor with MPP (multiplatform projects) due to Gradle metadata version change. https://ktor.io/quickstart/migration/1.1.2.html
🐸 1
🎉 26
v

vonox7

01/25/2019, 11:32 AM
Isn’t https://github.com/ktorio/ktor/commit/43b8efeb6d1bf568359212afb3f862532cff3976 a non-backward compatible change? I guess all sessions that created with HmacSHA1 won’t be valid any more with HmacSHA256 as default?
I didn’t see this change listed in https://ktor.io/quickstart/migration/1.1.2.html. And also there should be a note that this is a breaking change
c

cy

01/25/2019, 11:35 AM
This is not exactly breaking change as your source code is not broken. But it's some kind compatibility issue need to be noticed at the migration page
thanks, will fix
m

mp

01/25/2019, 2:19 PM
It seems that now the test application requires you to set the content type header when posting json -- is that intentional?
while not unreasonable, now I have a zillion broken tests. 😉
m

mkporwit

01/25/2019, 4:31 PM
Yep, had a bunch of those... I think it should be intentional.
Also have some tests that fail with a “response already sent” that I haven’t yet figured out the root cause of.
4 Views