Public bug reported:

whoopsie's server_response code is using "g_string_append" instead of
"g_string_append_len" which has the knock on effect of sending too much
data to its "handle_response". This ends up being a problem if the daisy
servers are running on Ubuntu 18.04 instead of Ubuntu 16.04.

Here's an example when using whoopsie on groovy to send a crash to a
bionic daisy server:

[15:35:30] Sent; server replied with: No error
[15:35:30] Response code: 200
[15:35:30] Initial response data is: 2bbb776e-64e6-11eb-a8d6-00163eddedf4 OOPSID
0

[15:35:30] Got command: OOPSID

We can see a fair number of extra characters (\n0\n\n) after the OOSID
command.

** Affects: whoopsie (Ubuntu)
     Importance: Medium
     Assignee: Brian Murray (brian-murray)
         Status: Triaged

** Affects: whoopsie (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Affects: whoopsie (Ubuntu Groovy)
     Importance: Undecided
         Status: New

** Affects: whoopsie (Ubuntu Hirsute)
     Importance: Medium
     Assignee: Brian Murray (brian-murray)
         Status: Triaged


** Tags: fr-1101

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to whoopsie in Ubuntu.
https://bugs.launchpad.net/bugs/1914481

Title:
  use the size of the data when determing the server response

Status in whoopsie package in Ubuntu:
  Triaged
Status in whoopsie source package in Focal:
  New
Status in whoopsie source package in Groovy:
  New
Status in whoopsie source package in Hirsute:
  Triaged

Bug description:
  whoopsie's server_response code is using "g_string_append" instead of
  "g_string_append_len" which has the knock on effect of sending too
  much data to its "handle_response". This ends up being a problem if
  the daisy servers are running on Ubuntu 18.04 instead of Ubuntu 16.04.

  Here's an example when using whoopsie on groovy to send a crash to a
  bionic daisy server:

  [15:35:30] Sent; server replied with: No error
  [15:35:30] Response code: 200
  [15:35:30] Initial response data is: 2bbb776e-64e6-11eb-a8d6-00163eddedf4 
OOPSID
  0

  [15:35:30] Got command: OOPSID

  We can see a fair number of extra characters (\n0\n\n) after the OOSID
  command.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1914481/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to