Bug#1081803: libgdata: test regression with json-glib 1.10.x: assumes single-quoted strings are OK in JSON
Simon McVittie
smcv at debian.org
Sun Sep 15 01:39:15 BST 2024
Source: libgdata
Version: 0.051-1
Tags: ftbfs trixie sid
Severity: serious
User: debian-ci at lists.debian.org
Usertags: needs-update
X-Debbugs-Cc: json-glib at packages.debian.org
Forwarded: https://gitlab.gnome.org/GNOME/libgdata/-/issues/50
Control: affects -1 src:json-glib
libgdata's autopkgtest regressed with json-glib 1.10.x:
> 60s libgdata:ERROR:../gdata/tests/general.c:2412:test_app_categories: assertion failed (error == NULL): Error parsing JSON: <data>:1:1: Parse error: unexpected character `{', expected string constant (gdata-parser-error-quark, 1)
I think this would also cause a FTBFS from build-time test failures if it
was rebuilt with the new json-glib.
The root cause appears to be that test assuming that json-glib will accept
a JSON-like format with single-quoted strings (these are not part of the
JSON standard), which was true in 1.8.x but not any more. Please see the
upstream bug for more details.
json-glib 1.10.x has a new opt-in strict mode which disallows several
other non-standard extensions (such as comments), but it seems that
single-quoted strings are not accepted even when not in strict mode.
smcv
More information about the pkg-gnome-maintainers
mailing list