Merge lp:~bryanquigley/whoopsie/whoopsie-fix into lp:whoopsie

Proposed by Bryan Quigley on 2016-10-27
Status: Needs review
Proposed branch: lp:~bryanquigley/whoopsie/whoopsie-fix
Merge into: lp:whoopsie
Diff against target: 18 lines (+7/-1)
1 file modified
src/identifier.c (+7/-1)
To merge this branch: bzr merge lp:~bryanquigley/whoopsie/whoopsie-fix
Reviewer Review Type Date Requested Status
Daisy Pluckers 2016-10-27 Pending
Review via email: mp+309492@code.launchpad.net
To post a comment you must log in.
Bryan Quigley (bryanquigley) wrote :

Sorry for the noise, this should be the good one.

Brian Murray (brian-murray) wrote :

I think it would be good to have a test that ensures that if identifier is this non-unique one we fall back to using the MAC address. There are existing tests in src/test/test_identifier.c. Additionally, the postinst file in the package could be modified to remove whoopsie-id file and generate a new one.

Bryan Quigley (bryanquigley) wrote :

Thanks for reviewing Brian.

AFAICT the test_identifier test is disabled.
Per postinst change - I'm not sure I wanted to reset existing UUIDs.. You think it's worthwhile?

Unmerged revisions

684. By Bryan Quigley on 2016-10-27

Set to ignore the clearly not unique system-uuid of
00020003-0004-0005-0006-000700080009. Will instead likely
use MAC address. This will not reset existing systems, just
going forward. On those machines you can delete the whoopsie-id
file and then it will regenerate. (LP: #1636954)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/identifier.c'
2--- src/identifier.c 2014-09-17 19:50:03 +0000
3+++ src/identifier.c 2016-10-27 15:52:26 +0000
4@@ -297,7 +297,13 @@
5
6 whoopsie_identifier_get_system_uuid (&identifier, error);
7 if ((!error || !(*error)) && identifier)
8- goto out;
9+ {
10+ //Filter out non-unique UUID (bad bios)
11+ if(strcmp(identifier, "00020003-0004-0005-0006-000700080009") == 0)
12+ identifier = NULL;
13+ else
14+ goto out;
15+ }
16
17 if (error && *error) {
18 g_error_free (*error);

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: