Bug 12845 - Gramps 4.0.1 exports GEDCOM with errors
Summary: Gramps 4.0.1 exports GEDCOM with errors
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA4-32-OK MGA4-64-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-02-21 23:29 CET by Marcus Zurhorst
Modified: 2014-02-25 23:25 CET (History)
7 users (show)

See Also:
Source RPM: gramps
CVE:
Status comment:


Attachments

Description Marcus Zurhorst 2014-02-21 23:29:01 CET
I am used to export the GRAMPS database into a GEDCOM file to import it in another application.    In the other application (TheNextGeneration v10), I am faced with redundant information.
I first thought that TNG is broken, but looking at the GEDCOM, I see that the .ged file contains the duplicates already.  Thus, this is a bug in GRAMPS.


Example (both note N0004 as well as date (9 SEP 1931) are listed twice:

0 @I0092@ INDI
1 NAME Heinz /Fischer/
2 GIVN Heinz
2 SURN Fischer
1 SEX M
1 BIRT
2 TYPE Geburt von Fischer, Heinz
2 DATE 9 SEP 1931
2 NOTE @N0004@
2 DATE 9 SEP 1931
2 NOTE @N0004@
1 FAMC @F0022@
1 SOUR @S0003@
1 CHAN
2 DATE 20 FEB 2014
3 TIME 22:59:46


Inside GRAMPS itself, I don't see any hint regarding what might be the cause for this duplication. Everything looks fine.
Comment 1 Jani Välimaa 2014-02-22 08:26:59 CET
Added patch from upstream, which hopefully fixes the issue. Please test new gramps [1] from core/updates_testing.

[1] gramps-4.0.1-7.1.mga4

See Also: (none) => https://gramps-project.org/bugs/view.php?id=6909
CC: (none) => jani.valimaa

Thierry Vignaud 2014-02-22 21:52:16 CET

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 2 Marcus Zurhorst 2014-02-23 17:22:57 CET
I tested the new package and did a fresh GEDCOM export.
The duplicates in the .ged file are gone.  Everything else seems to work as well, I did not run into any regressions.   (not difficult actually since Gramps 4.0.1 is really unstable all over the place)


Thanks for the quick patch, excellent job!

Keywords: NEEDINFO => (none)

Comment 3 Jani Välimaa 2014-02-24 17:36:00 CET
Test procedure for QA team:

1. Open gramps.
2. Create an invidual.
3. Add birth event with some date.
4. Export database in gedcom format.
5. Open database in text editor and see duplicate entries.
6. Update gramps.
7. Export database again and see no duplicates in text editor.

Assignee: bugsquad => qa-bugs

Jani Välimaa 2014-02-24 17:37:22 CET

Source RPM: (none) => gramps

Comment 4 Jani Välimaa 2014-02-24 17:45:25 CET
Suggested advisory:
===================
Updated Gramps fixes errors in Gedcom exports. When a death event had no place or no date specified, the birth place or date was used for the death event in the Gedcom export.

References:
https://bugs.mageia.org/show_bug.cgi?id=12845
https://gramps-project.org/bugs/view.php?id=6909
===================


RPMS for i586/x86_64:
===================
gramps-4.0.1-7.1.mga4.noarch.rpm

SRPM:
===================
gramps-4.0.1-7.1.mga4.src.rpm
Comment 5 Alex Loginov 2014-02-24 21:43:36 CET
File Untitled_1.ged is before update, file Untitled_2.ged is after update:

--- /home/user/РабоÑий ÑÑол/Untitled_1.ged
+++ /home/user/РабоÑий ÑÑол/Untitled_2.ged
@@ -3,9 +3,9 @@
 2 VERS 4.0.1
 2 NAME Gramps
 1 DATE 25 FEB 2014
-2 TIME 04:33:35
+2 TIME 04:34:34
 1 SUBM @SUBM@
-1 FILE /home/user/РабоÑий ÑÑол/Untitled_1.ged
+1 FILE /home/user/РабоÑий ÑÑол/Untitled_2.ged
 1 COPR Copyright (c) 2014 .
 1 GEDC
 2 VERS 5.5
@@ -26,7 +26,6 @@
 1 SEX M
 1 BIRT
 2 DATE 21 APR 1990
-2 DATE 21 APR 1990
 1 CHAN
 2 DATE 25 FEB 2014
 3 TIME 04:33:17

Double string "2 DATE 21 APR 1990" was deleted after update. It means MGA4-32-OK.

CC: (none) => loginov_alex
Whiteboard: (none) => MGA4-32-OK

Comment 6 Anne Nicolas 2014-02-25 19:10:36 CET
Tested on Mageia 4 x86_64 using same process. Working well after update.

CC: (none) => ennael1
Whiteboard: MGA4-32-OK => MGA4-32-OK MGA4-64-OK

Comment 7 Anne Nicolas 2014-02-25 19:13:14 CET
Update validated.
Thanks.

Advisory:
Updated Gramps fixes errors in Gedcom exports. When a death event had no place or no date specified, the birth place or date was used for the death event in the Gedcom export.

References:
https://bugs.mageia.org/show_bug.cgi?id=12845
https://gramps-project.org/bugs/view.php?id=6909

SRPM: gramps-4.0.1-7.1.mga4.src.rpm

Could sysadmin please push from core/updates_testing to core/updates.

Thank you!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 8 Rémi Verschelde 2014-02-25 19:22:07 CET
Advisory uploaded.

CC: (none) => remi
Whiteboard: MGA4-32-OK MGA4-64-OK => MGA4-32-OK MGA4-64-OK advisory

Comment 9 Thomas Backlund 2014-02-25 23:25:33 CET
Update pushed:
http://advisories.mageia.org/MGAA-2014-0065.html

CC: (none) => tmb
Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.