eclipse-hara / hara-ddiclient

Hara-ddiclient is a Kotlin library that facilitates and speeds up the development of DDI API clients for devices connecting to hawkBit servers.
https://projects.eclipse.org/projects/iot.hawkbit.hara
Eclipse Public License 2.0
18 stars 13 forks source link

Fix crash when auth tokens contain new line character #53

Closed SaeedRe closed 5 months ago

SaeedRe commented 5 months ago

When a new line character (0x0a) exists in the authorization tokens, the ddi-client/third-party application using the ddi-api will keep crashing while trying to send the HTTPS request again. This commit catches and logs this exception to prevent fatal crashes.

UF-888 Signed-off-by: Saeed Rezaee saeed.rezaee@kynetics.it