[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-06 Thread Robert Ancell
This only affects gnome-software 3.24 onwards, so Ubuntu is not affected. ** Changed in: gnome-software (Ubuntu) Status: Triaged => Fix Released ** Summary changed: - snapd-glib doesn't read full json response from snapd + Doesn't read full json response from snapd -- You received this

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-06 Thread Robert Ancell
It started occurring for me too. The cause is that I was storing a pointer to the start of the HTTP body in a read buffer. If the buffer was realloced then it could be moved and the pointer would point to the old buffer. This is why it had a partial read. https://git.gnome.org/browse/gnome- softw

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-05 Thread Simon Fels
** Changed in: gnome-software (Ubuntu) Status: New => Confirmed ** Tags added: cross-distro -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. https://bugs.launchpad.net/bugs/1679774 Title: snapd-glib

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-04 Thread Simon Fels
See https://paste.ubuntu.com/24318397/ -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. https://bugs.launchpad.net/bugs/1679774 Title: snapd-glib doesn't read full json response from snapd To manage notific

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-04 Thread Simon Fels
As an additional note, this happens with snapd 2.23.6 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. https://bugs.launchpad.net/bugs/1679774 Title: snapd-glib doesn't read full json response from snapd To

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-04 Thread Robert Ancell
I think this might be due to you getting a chunked HTTP response... -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. https://bugs.launchpad.net/bugs/1679774 Title: snapd-glib doesn't read full json response

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-04 Thread Robert Ancell
Could you run the following and see what response you get (substitute for the search you did)? $ nc -UC /run/snapd.socket GET /v2/find?q=rocket HTTP/1.1 Host: -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. h

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-04 Thread Robert Ancell
gnome-software is still using its own code for querying snapd. ** Project changed: snapd-glib => gnome-software (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. https://bugs.launchpad.net/bugs/1679774

[Bug 1679774] Re: snapd-glib doesn't read full json response from snapd

2017-04-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gnome-software (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-software in Ubuntu. https://bugs.launch