Open Bug 329060 Opened 18 years ago Updated 2 years ago

Thunderbird exports bad the address book to ldif format

Categories

(MailNews Core :: LDAP Integration, defect)

defect

Tracking

(Not tracked)

People

(Reporter: faca, Unassigned)

References

(Depends on 1 open bug)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: thunderbird 1.5 - 2.0

Hello, sorry for my english..
1) click Address Book
2) click Tools,export,name.ldif

it generates a file like this:
-----------------------------------
dn: cn=Pepe,mail=pepe@hotmail.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
givenName: Javier
cn: Pepe
mail: pepe@hotmail.com
modifytimestamp: 0Z
-------------------------

The lines "modifytimestamp: 0Z" and "dn: cn=Pepe,mail=pepe@hotmail.com" are incorrect.

(This file.ldif is import in linux ldap server)

Reproducible: Always

Steps to Reproduce:
1.look up
2.look up
3.look up

Actual Results:  
look up

Expected Results:  
look up

Solution:
erase line "modifytimestamp: 0Z" and replace line "dn: cn=Pepe,mail=pepe@hotmail.com" to line "dn: cn=Pepe,cn=Institution"
Assignee: mscott → nobody
Reporter, does the issue still occur in the latest supported 2.0.0.x / Shredder trunk nightlies?

(1.5.0.x is now end-of-life and the latest supported 2.0.0.x is version 2.0.0.16)
Whiteboard: closeme 2008-09-11
I don't want this closing. I think there are two separate bugs here, first that we output the mozifytimestamp as 0Z (and possibly that we output it at all), secondly the dn issue I'm sure is a duplicate of another bug that I can't find at the moment.

It would probably be best to find/generate the two bugs and then close this as a dup of one of them.
Keywords: qawanted
Whiteboard: closeme 2008-09-11
I can definitely confirm that the modifytimestamp bug has been solved in TB 3.0.
The timestamp now looks like this: "modifytimestamp: 1262471395".
There actually 3 bugs, modifytimestamp is actually fixed but DN is still wrong. If there is space in common name it isn't escaped.
dn: cn=Nikolay Shopik,mail=shopik@inblock.ru
I'll search for dupes.
Version: unspecified → 2.0
IMO, and some other's as well, modifytimestamp isn't fixed because its value isn't in time-stamp format, ie not showing date and time in a human readable format.

OTOH, unless I'm mistaken, it seems to me that white space in dn doesn't need to be escape: cf. RFC 2253, section 2.4

I would like to make this bug depend on bug 358696.  Any objection?
Component: Address Book → LDAP Integration
Product: Thunderbird → MailNews Core
QA Contact: address-book → ldap-integration
Version: 2.0 → unspecified
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 358696
Keywords: qawanted
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.