Bug: deserializing malformed basic auth token results in java.lang.IllegalArgumentException raised outside of F #7283
Labels
bug
Determined to be a bug in http4s
good first issue
A tractable issue for those looking to make an initial contribution
The exception is being raised when calling
BasicCredentials.unapply
method in pattern matching statement at https://github.com/http4s/http4s/blob/series/0.23/server/shared/src/main/scala/org/http4s/server/middleware/authentication/BasicAuth.scala#L69It causes the situation when you need to catch an exception using try/catch instead of leveraging cats-effect machinery.
I think it should be considered a bug.
The text was updated successfully, but these errors were encountered: