Closed Bug 122282 Opened 24 years ago Closed 23 years ago

Import file dialog: files with .ldif/.txt/.tab extension are not listed when corresponding file types are specified.

Categories

(SeaMonkey :: MailNews: Address Book & Contacts, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.3final

People

(Reporter: ji, Assigned: pkwarren)

References

Details

(Whiteboard: nab-imp)

Attachments

(3 files, 1 obsolete file)

Build: 01/28 linux build On Improt file dialog, when specifying file types as .ldif/.txt/.tab, files with these extensions in the directory are not listed on the window. Steps to reproduce: 0. Have some files with .ldif/.txt/.tab extension in a directory that you can access. 1. Launch ABook. 2. Selct File | Import. 3. Select Address Book and click on Next. 4. Select Text file and click on Next 5. Select the directory that holds the files with .ldif/.txt/.tab extension 6. Select .ldif as the file type, the file with .ldif in the directory is not listed. Same problem when selecting .tab/.txt as the file type. It doesn't happen when selecting .csv or All files as the file type. I don't see this on widnows build.
Marking nsbeta1 since I can't see any ldif,txt or csv files in the import dialog.
Keywords: nsbeta1
Whiteboard: nab-imp
Status: NEW → ASSIGNED
Keywords: nsbeta1nsbeta1-
Target Milestone: --- → mozilla1.2
Blocks: 126318
*** Bug 131690 has been marked as a duplicate of this bug. ***
*** Bug 139200 has been marked as a duplicate of this bug. ***
Workaround: Choose to see "All files" and then you should be able to see the files.
It seems that the seperator for file extensions should be ';' and not ','. (Just to be consistent) Also the extension-list is appearing twice for me (as opposed to only once in the other filepicker dialogs where the filtering is working).
I get the same behavior when using Mozilla 1.0 (Build 2002052918) on Mandrake Linux 8.2. I can see .ldi files (and .csv files) but not .ldif files. This occurs with the Import and Export file selection dialogue. Also, selecting Tab Delimited does not show .txt files, even though that is listed as an option -- only .tab files are shown. I also see the same thing as Roland... all the extensions are listed twice in the drop-down menu where you select ldif, csv, tab, or all files. Looks like Bug 144791 is a duplicate of this bug.
Marking nsbeta1 because this is totally confusing. Please fix this so that the import dialog can display the import files on the system.
Keywords: nsbeta1-nsbeta1
Blocks: 158201
Blocks: 185237
*** Bug 158201 has been marked as a duplicate of this bug. ***
No longer blocks: 158201
Blocks: 152170
Mail triage team: nsbeta1-
Keywords: nsbeta1-
Keywords: nsbeta1
Taking ownership of bug.
Assignee: racham → pkw
Status: ASSIGNED → NEW
Blocks: 144791
Attached patch Simple Fix (obsolete) — Splinter Review
This fixes two issues in the code. 1) AppendFilter expects extensions to be separated by a semicolon and a space - see http://lxr.mozilla.org/seamonkey/source/widget/public/nsIFilePicker.idl#69 . I have changed the code so it separates the extensions by spaces in two places - import and export. This should fix both problems. 2) Remove the extensions from the addressbook.properties file because it causes the extensions to show up twice for builds using the nsFilepicker.js file picker (UNIX). See comment 5.
Attachment #113404 - Flags: review?(sspitzer)
*** Bug 152170 has been marked as a duplicate of this bug. ***
thanks philip, and sorry for the delay. let me try the patch out on win32, to verify that it works properly there, and then I'll quickly r/sr.
Attached image screen shot from win32
here's how win32 looks (for ab import) without the fix. win32 works as is, but from pkw's comment, linux doesn't. his patch now, and see if win32 still works.
screen shot after the fix. so my problem is that the change to addressBook.properties fixes a problem on linux ("Remove the extensions from the addressbook.properties file because it causes the extensions to show up twice for builds using the nsFilepicker.js file picker (UNIX") but causes a new one on win32 ("extensions not appearing") this seems like a general problem that should happen with other users of nsFilepicker.js, or a problem with the mailnews code that we shouldn't be specifying the extensions like that. I'd rather land part of this fix, and move the other part to a new bug.
let's spin the addressbook.properties change off to another bug.
Attachment #113404 - Attachment is obsolete: true
Comment on attachment 113767 [details] [diff] [review] pkw's patch, without the change to addressbook.properties r/sr=sspitzer on this part of pkw's patch
Attachment #113767 - Flags: superreview+
Attachment #113767 - Flags: review+
Attachment #113767 - Flags: approval1.3b?
hoping asa will a= this change for 1.3 beta, but not a 1.3 beta blocker. if not 1.3 beta, then 1.3 final for sure.
Status: NEW → ASSIGNED
Target Milestone: mozilla1.2alpha → mozilla1.3final
Comment on attachment 113767 [details] [diff] [review] pkw's patch, without the change to addressbook.properties Let's hold this till we open for 1.3final. Thanks.
Attachment #113767 - Flags: approval1.3b? → approval1.3b-
Comment on attachment 113767 [details] [diff] [review] pkw's patch, without the change to addressbook.properties asa says (over irc) a=asa for 1.3 final, but wait until the tree is ready for 1.3 final checkins.
Attachment #113767 - Flags: approval1.3b- → approval1.3+
fixed. thanks for the fix, philip. I've spin off the issue in comment #15 into a new bug. see bug #192666
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Attachment #113404 - Flags: review?(sspitzer) → review-
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: