make test in master fail - json

Matthew Newton mcn4 at leicester.ac.uk
Mon Sep 14 23:58:35 CEST 2015


Debian wheezy, make test in master (19d03eeb44c66e2) fails:

  Failed evaluating jpath: Invalid cast from integer64 to integer

Comment out tests 31, 32, 33 and 34 from tests/modules/json/eval.unlang
and all is OK.

There are comments there something about json-c < 0.10. This is json-c 0.10
(debian 0.10-1.2), so I guess it could be that 0.10 is broken as well? Or just
something in flux in master.

$ uname -a
Linux elk 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux

Matthew



Mon Sep 14 22:51:26 2015 : Debug: (0)       update request {
Mon Sep 14 22:51:26 2015 : Debug: (0)         &Tmp-String-0 := "[9223372036854775807, -9223372036854775807, 18446744073709551615, [ 21474
83647, -2147483647, 4294967295, ] ]"
Mon Sep 14 22:51:26 2015 : Debug: (0)           --> overwriting '{\"my_array\": [0, 1, 2, 3, 4, 5], \"my_object\": { \"foo\": \"bar\", \"
num\" : 42 }, \"num\": 99, \"double\": 5.9, \"null\": null, \"bool_true\": true, \"bool_false\": false }' with '[9223372036854775807, -92
23372036854775807, 18446744073709551615, [ 2147483647, -2147483647, 4294967295, ] ]'
Mon Sep 14 22:51:26 2015 : Debug: (0)       } # update request = noop
Mon Sep 14 22:51:26 2015 : Debug: (0)       redundant (null) {
Mon Sep 14 22:51:26 2015 : Debug: (0)         group {
Mon Sep 14 22:51:26 2015 : Debug: (0)           map json &Tmp-String-0 {
Mon Sep 14 22:51:26 2015 : ERROR: (0)             Failed evaluating jpath: Invalid cast from integer64 to integer
Mon Sep 14 22:51:26 2015 : Debug: (0)           } # map json &Tmp-String-0 = fail
Mon Sep 14 22:51:26 2015 : Debug: (0)         } # group = fail
Mon Sep 14 22:51:26 2015 : Debug: (0)         modsingle[authorize]: calling noop (rlm_always) for request 0
Mon Sep 14 22:51:26 2015 : Debug: (0)         modsingle[authorize]: returned from noop (rlm_always) for request 0
Mon Sep 14 22:51:26 2015 : Debug: (0)         [noop] = noop
Mon Sep 14 22:51:26 2015 : Debug: (0)       } # redundant (null) = noop
Mon Sep 14 22:51:26 2015 : Debug: (0)       if (noop || (&Tmp-Integer-0 == 4294967295)) {
Mon Sep 14 22:51:26 2015 : Debug: (0)       if (noop || (&Tmp-Integer-0 == 4294967295))  -> TRUE
Mon Sep 14 22:51:26 2015 : Debug: (0)       if (noop || (&Tmp-Integer-0 == 4294967295))  {
Mon Sep 14 22:51:26 2015 : Debug: (0)         policy test_pass {
Mon Sep 14 22:51:26 2015 : Debug: (0)           update control {
Mon Sep 14 22:51:26 2015 : Debug: (0)             EXPAND %{expr:%{%{control:Tmp-String-8}:-0} + 1}
Mon Sep 14 22:51:26 2015 : Debug: (0)                --> 32
Mon Sep 14 22:51:26 2015 : Debug: (0)             &Tmp-String-8 := "32"
Mon Sep 14 22:51:26 2015 : Debug: (0)               --> overwriting '31' with '32'
Mon Sep 14 22:51:26 2015 : Debug: (0)             &Auth-Type := Accept
Mon Sep 14 22:51:26 2015 : Debug: (0)               --> overwriting 'Accept' with 'Accept'
Mon Sep 14 22:51:26 2015 : Debug: (0)           } # update control = noop
Mon Sep 14 22:51:26 2015 : Debug: (0)         } # policy test_pass = noop
Mon Sep 14 22:51:26 2015 : Debug: (0)       } # if (noop || (&Tmp-Integer-0 == 4294967295))  = noop
Mon Sep 14 22:51:26 2015 : Debug: (0)       ... skipping else for request 0: Preceding "if" was taken
Mon Sep 14 22:51:26 2015 : Debug: (0)       map json &Tmp-String-0 {
Mon Sep 14 22:51:26 2015 : ERROR: (0)         Failed evaluating jpath: Invalid cast from integer64 to integer
Mon Sep 14 22:51:26 2015 : Debug: (0)       } # map json &Tmp-String-0 = fail
Mon Sep 14 22:51:26 2015 : Debug: (0)     } # authorize = fail
Mon Sep 14 22:51:26 2015 : Debug: (0)   Using Post-Auth-Type Reject
Mon Sep 14 22:51:26 2015 : Debug: (0)   Post-Auth-Type sub-section not found.  Ignoring.
Mon Sep 14 22:51:26 2015 : Debug: (0) } # server default
Mon Sep 14 22:51:26 2015 : Debug: (0) Virtual server sending reply
Access-Reject
Output file build/tests/modules/json/eval.attrs does not match attributes in filter build/tests/modules/json/eval.attrs (Attribute value "Response-Packet-Type = Access-Reject" didn't match filter: Response-Packet-Type == Access-Accept)
# build/tests/modules/json/eval.log
MODULE_TEST_DIR=src/tests/modules/json/ MODULE_TEST_UNLANG=src/tests/modules/json/eval.unlang build/make/jlibtool --quiet --mode=execute ./build/bin/local/unittest -D share -d src/tests/modules/ -i build/tests/modules/json/eval.attrs -f build/tests/modules/json/eval.attrs -xx



-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Devel mailing list