After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781258 - Invalid JSON in manifest breaks some parsers
Invalid JSON in manifest breaks some parsers
Status: RESOLVED FIXED
Product: gnome-todo
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME To Do maintainer(s)
GNOME To Do maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-04-13 10:22 UTC by Zack Lofgren
Modified: 2017-04-14 09:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to remove invalid comment syntax (1.30 KB, patch)
2017-04-13 10:26 UTC, Zack Lofgren
none Details | Review
Patch to remove invalid comment syntax (1.48 KB, patch)
2017-04-13 10:40 UTC, Zack Lofgren
reviewed Details | Review
Patch to remove invalid comment syntax (1.42 KB, patch)
2017-04-13 10:52 UTC, Zack Lofgren
reviewed Details | Review
Patch to remove invalid comment syntax (1.44 KB, patch)
2017-04-13 22:08 UTC, Zack Lofgren
accepted-commit_now Details | Review

Description Zack Lofgren 2017-04-13 10:22:05 UTC
The manifest for flatpak contains invalid syntax for C-style comments, and this breaks some parsers.
Comment 1 Zack Lofgren 2017-04-13 10:26:56 UTC
Created attachment 349780 [details] [review]
Patch to remove invalid comment syntax
Comment 2 Zack Lofgren 2017-04-13 10:40:30 UTC
Created attachment 349785 [details] [review]
Patch to remove invalid comment syntax

gitg is bugged and doesn't add commit or author to the .patch file. Here's the fixed one.
Comment 3 Carlos Soriano 2017-04-13 10:45:03 UTC
Review of attachment 349785 [details] [review]:

Code looks good. Did you try it works now?

The commit message needs to use present "Remove" instead of "Removed"

Also, the important part of this is that C style comments in JSON are just invalid syntax, and as a consecuence tools that doesn't use json-glib break, like python json parsers used for example in flatpak-dev-cli.
Comment 4 Zack Lofgren 2017-04-13 10:52:33 UTC
Created attachment 349786 [details] [review]
Patch to remove invalid comment syntax

Fixed my commit message.
Comment 5 Carlos Soriano 2017-04-13 13:58:34 UTC
Review of attachment 349786 [details] [review]:

Commit description is now good, but you are missing the file you modified in the tittle
Comment 6 Zack Lofgren 2017-04-13 22:08:46 UTC
Created attachment 349843 [details] [review]
Patch to remove invalid comment syntax

Should be fixed. I'm sorry for all of the mistakes in the commit message.
Comment 7 Carlos Soriano 2017-04-14 08:06:17 UTC
Review of attachment 349843 [details] [review]:

Now looks good to me, congrats Zack!! Your first contribution :)
Comment 8 Carlos Soriano 2017-04-14 08:10:03 UTC
Georges, don't be angry at me I push this patch. Otherwise the CLI tool for developing from Flatpak breaks, and newcomers cannot build gnome-todo.
Feel free to revert/discuss with me if you think so!
Comment 9 Carlos Soriano 2017-04-14 08:15:07 UTC
And for some reason git bz failed :/
Here's the commit https://git.gnome.org/browse/gnome-todo/commit/?id=68661617c04c8d48fdefe8aa9d3cc631d1d54e3b
Comment 10 Georges Basile Stavracas Neto 2017-04-14 09:42:55 UTC
I'm not angry, thanks for fixing that :)