We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Cookie encode throw exception in case of empty secret
To Reproduce Steps to reproduce the behavior:
cookies
def cookies: Gen[Random with Sized, Cookie] = for { name <- Gen.anyString content <- Gen.anyString expires <- Gen.option(Gen.anyInstant) domain <- Gen.option(Gen.anyString) path <- Gen.option(path) secure <- Gen.boolean httpOnly <- Gen.boolean maxAge <- Gen.option(Gen.anyLong) sameSite <- Gen.option(Gen.fromIterable(List(Cookie.SameSite.Strict, Cookie.SameSite.Lax))) secret <- Gen.option(Gen.fromIterable(List(""))) } yield Cookie(name, content, expires, domain, path, secure, httpOnly, maxAge, sameSite, secret)
CookieSpec
java.lang.IllegalArgumentException: Empty key at java.base/javax.crypto.spec.SecretKeySpec.(SecretKeySpec.java:110)
Expected behaviour Encode shouldn't throw an exception
The text was updated successfully, but these errors were encountered:
I'd like to take a shot at this!
Sorry, something went wrong.
check
checkAll
dhyanpatel
Successfully merging a pull request may close this issue.
Describe the bug
Cookie encode throw exception in case of empty secret
To Reproduce
Steps to reproduce the behavior:
cookies
gen function to have only an empty secretCookieSpec
Expected behaviour
Encode shouldn't throw an exception
The text was updated successfully, but these errors were encountered: