OpenRiak / mochiweb

a branch of Mochi Media's excellent HTTP library -- their canonical source can be found at https://github.com/mochi/mochiweb
Other
0 stars 0 forks source link

GithubActions fail on OTP 24 #2

Open martinsumner opened 1 month ago

martinsumner commented 1 month ago

Error report:

mochiweb_session:223: generate_check_session_cookie...*failed*
in function crypto:crypto_one_time/5 (crypto.erl, line 930)
  called as crypto_one_time(aes_128_cfb128,<<45,48,84,215,219,4,210,199,149,78,1,254,70,244,...>>,<<186,147,223,201,114,194,238,174,188,189,51,243,163,90,...>>,<<"bob">>,true)
in call from mochiweb_session:encrypt_data/2 (/home/runner/work/mochiweb/mochiweb/src/mochiweb_session.erl, line 145)
in call from mochiweb_session:generate_session_data/4 (/home/runner/work/mochiweb/mochiweb/src/mochiweb_session.erl, line 54)
in call from mochiweb_session:'-generate_check_session_cookie/1-fun-18-'/4 (/home/runner/work/mochiweb/mochiweb/src/mochiweb_session.erl, line 226)
in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
in call from eunit_proc:run_test/1 (eunit_proc.erl, line 531)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 356)
in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 514)
**error:{notsup,{"api_ng.c",284},"Cipher not supported in this libcrypto version"}
  output:<<"">>

Possibly due to: https://github.com/erlang/otp/issues/6146

Should try specific OTP 24 version?

martinsumner commented 1 month ago

Looking at the history, the fix was added in to OTP 25, but not into OTP 24 - so these tests will fail in OTP 24, even on the latest version