Fedora Account System
Red Hat Associate
Red Hat Customer
perl-JSON-Any-1.40-7.fc45 fails to build in Fedora 45 because a test fails: $ perl -Ilib t/04-ENV.t ok 1 - got the right handlerType ok 2 - got a JSON::Any object not ok 3 - trapped a failure because of a non-reference # Failed test 'trapped a failure because of a non-reference' # at t/04-ENV.t line 28. # undef # doesn't match '(?^:use allow_nonref)' ok 4 - got another JSON::Any object ok 5 - got the same data back again ok 6 - no failure with config change ok 7 - got another JSON::Any object ok 8 - trapped a failure because the constructor option overrides the environment variable 1..8 # Looks like you failed 1 test of 8. This failure is triggered by upgrading perl-Cpanel-JSON-XS from 4.41-1.fc45 to 4.42-1.fc45. This seems to be an intentional change, from CPAN-JSON-XS changelog: > Change allow_nonref default to true (GH #241, matching JSON::PP and JSON::XS 4.0+ and the insecure RFC 7159). encode and decode now accept non-reference values by default. decode_json() with an explicit 0/1 second argument still works. allow_nonref(0) to disable scalars-only for secure JSON.
Fixed in JSON-Any 1.41