** Description changed: + [Impact] Currently lua-json is unusable in Trusty: | scfc@toolsbeta-webproxy:~$ lua | Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio | > require('json') | /usr/share/lua/5.1/json/decode/strings.lua:102: loop body may accept empty string | stack traceback: | [C]: ? | /usr/share/lua/5.1/json/decode/strings.lua:102: in function 'buildCaptureString' | /usr/share/lua/5.1/json/decode/strings.lua:123: in function 'generateLexer' | /usr/share/lua/5.1/json/decode.lua:128: in function 'buildDecoder' | /usr/share/lua/5.1/json/decode.lua:135: in main chunk | [C]: in function 'require' | /usr/share/lua/5.1/json.lua:5: in main chunk | [C]: in function 'require' | stdin:1: in main chunk | [C]: ? - | > + | > | scfc@toolsbeta-webproxy:~$ dpkg-query -l lua-json | Desired=Unknown/Install/Remove/Purge/Hold | | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend | |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) | ||/ Name Version Architecture Description | +++-=================================-=====================-=====================-======================================================================= | ii lua-json 1.3-1 all JSON decoder/encoder for Lua | scfc@toolsbeta-webproxy:~$ This is apparently the same issue as in https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=719519 which was fixed by upgrading to 1.3.2. + + + [Test Case] + 1. Install packages lua5.1 (or lua5.2) and lua-json. + 2. Expected behaviour: + + | scfc@toolsbeta-test-trusty:~$ lua + | Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio + | > require('json') + | > print(json.encode({'a', 'b', 'c'})) + | ["a","b","c"] + | > ^D + | scfc@toolsbeta-test-trusty:~$ + + + [Regression Potential] + 1. lua-json has no reverse dependencies, so an update will not affect other packages. + 2. Lua only loads extensions on request. Applications not using "require('json')" will not attempt to read the files to be packaged by lua-json 1.3.2, so even a build error should not affect other Lua applications. + 3. Lua applications using "require('json')" never worked in Trusty and will start working. In theory, a currently deployed system may rely on it failing.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1443288 Title: Unusable in Trusty; upgrade to 1.3.2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lua-json/+bug/1443288/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs