Closed Bug 69480 Opened 24 years ago Closed 23 years ago

Interfaces to address book resources(nsIAbDirectory and nsIAbCard) contain methods specific to the mork database implementation.

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: martin.maher, Assigned: chuang)

Details

Attachments

(6 files)

Interfaces to address book resources
(nsIAbDirectory and nsIAbCard) contain methods
specific to the mork database implementation.
As a consequence is not possible to have mutiple
types of address book implementation (such as LDAP).
To enable new types of address book implemention
the interfaces and code need to be refactored into
specific and non-specific functionality. In addition
this should make it easier to replace the existing
mork implemention if so desired.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Interfaces to address book resources (nsIAbDirectory and nsIAbCard) contain methods specific to the mork database implementation. → Interfaces to address book resources(nsIAbDirectory and nsIAbCard) contain methods specific to the mork database implementation.
Mozilla.mac.sea is not self-extracting.  You need to use stuffit to open it 
and make it self-extactable.  This is best I can do for posting the Mac test 
build.  Please post in the bug or email me if anyone have problem extracting it.
So do we have any testing done on the builds available?
This is the testing result from Fenella's email.

---------------------
Hi all,

I have unzipped the following build and ran the following basic functionalities 
on Address Book.   If you want more testings other
than what's listed, please let me know.

1. Visual of Directory pane, result pane and card view pane. 
2. Add  new card, delete card, edit card and close card and cancel card. And 
also modify card properties in the Personal and
Collected address book. Drag cards between collected and personal address book
3. Open, edit, cancel and close card dialog
4. Add new list, edit list, add cards to list and delete card in the mailing 
list, and close and delete mailing list
5. Create new address book and delete address book. 
6. Add card and  list to new address book. Delete list and card from the new 
address book
7. Auto complete
8. Import Address book
9. Migrate address book
10. Test of  all submenus of File, Edit and View in the Address Book window
11. Use of all toolbar menus in the Address Book
12. Running Address book in Classic theme. When I was using an old profile, 
after I switch to classic theme, and relaunch, I was
unable to open Address Book. However, after I migrated a new profile, I do not 
see any problem opening the Address book
window. 

Result:   No crash.  basic functionalities works fine.
Only find one new bug,  which is:
In the card view pane, when clicking on the email address, unable to open the 
Compose window.

I believe this is a regression. No bug filed for this before (At least I cannot 
find it)

Fenella
----------------

I tried the regression bug she mentioned with the same build,  I can't reproduce 
it.  I can open compose window using New Msg button or the menu in address book. 
 
The bug Fenella mentioned is an existing bug 72213,  Not a regression bug.
we haven't been able to get a test build for linux posted... i'll do a test 
build today with the patches in this bug.
having some patch conflicts in nsAbSync.cpp... perhaps you can resolve?

    310   // If we failed before, fall back to the non-parented modal dialog
    311   if (NS_FAILED(rv))
    312   {
    313     nsCOMPtr<nsIPrompt> dialog;
    314     nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedc
omp/window-watcher;1"));
    315     if (wwatch)
    316       wwatch->GetNewPrompter(0, getter_AddRefs(dialog));
    317 
    318     if (!dialog)
    319       return NS_ERROR_FAILURE;
    320     rv = dialog->Alert(nsnull, msg);
    321   }

looking at the changes to nsAbSync.cpp, it seems like danm's change is the one 
that should go in... attempting a linux build with his changes, and yours.
Hey, dan, can you take a look at the last patch to nsAbSync.cpp and give a 
review for the resolution with the merge to your change?
QA test result on Linux build.   It is correct that Mozilla build won't do the 
migraing for address book.

Email from Fenella.
---------------------------------------
I ran the same tests as I did for win32 (see list below).  Everything else runs 
fine except for item 9,
which is Migrate Address Book. 
Steps: 
1.  Migrate a profile 
2. Open Address Book, it lists Personal Address Book and Collected Address Book. 
Actual result: Both bool look blank.  The card and list in the 4.7 profile did 
not get migrated. . 
I observe that In the console window, it says:  the addressbook migrator is only 
in the commercial
builds 

If you need additional tests, please let me know. 
-------------------------------------
This can be resolved fixed because it already landed, right?
Martin, can you verify dmose's last comment, that this bug can be marked FIXED
because it's already in current nightly builds?  If you can marked FIXED, it
goes to QA to verify, which is goodness.
This code refactoring work has landed!
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: esther → stephend
verified fixed using lxr and bonsai via code verification.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: