Issue 50905

Summary: mail merge not releasing database document
Product: Writer Reporter: Frank Schönheit <frank.schoenheit>
Component: uiAssignee: marc.neumann
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: andre.kuemmel, issues, os_ooo
Version: 680m106   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
document to reproduce the bug case none

Description Frank Schönheit 2005-06-17 12:55:27 UTC
- copy the attached "address.odb" to your disc
- Tools|Options|OpenOffice.org Base|Databases:
  - register the address.odb under an arbitrary name, e.g. "address"
- open a new text document
- Tools|Mail Merge Wizard
=> the mail merge wizard opens
- "Next", "Next" (using presets)
- "Select Different Address List"
- in the "Select Address List" dialog, select the registered address database,
double
  click it, press OK
- "Next", "Next", "Next", "Next", "Next" (using presets)
- select "Save merged document"
- press "Save documents", in the "Save as" dialog enter an arbitrary location/name
- press Finish
- close all documents which are still open, but *not* OOo as a whole
=> in the location where your address.odb resides, there exists a file called
   "address.lck". This indicates that the database document was not released
   properly, but is being held by OpenOffice.org.
   On Windows, you can for instance verify this by trying to rename the
   address.odb to something else => Windows will tell you that the file is in
   use.
Comment 1 Frank Schönheit 2005-06-17 13:02:44 UTC
Created attachment 27280 [details]
document to reproduce the bug case
Comment 2 Frank Schönheit 2005-06-21 11:06:28 UTC
fixed in CWS c03v1
Comment 3 Frank Schönheit 2005-06-22 11:34:03 UTC
fs->msc: please verify in CWS c03v1

re-open issue and reassign to msc
Comment 4 Frank Schönheit 2005-06-22 11:34:10 UTC
reassign to msc
Comment 5 Frank Schönheit 2005-06-22 11:34:16 UTC
reset resolution to FIXED
Comment 6 marc.neumann 2005-06-23 14:03:16 UTC
verified in cws c03v1
Comment 7 Oliver Specht 2005-07-13 16:03:33 UTC
Additional fix in 
sw/source/ui/dbui/dbmgr.cxx 
to release the connection after executing the old mail merge dialog
Comment 8 marc.neumann 2005-07-28 14:44:55 UTC
close
Comment 9 Oliver Specht 2005-09-05 11:45:35 UTC
.
Comment 10 Oliver Specht 2005-09-05 11:49:02 UTC
Additional fixes to prevent locking of databases while evaluating field expressions
sw/source/ui/dbui/dbmgr.cxx
sw/inc/dbmgr.hxx
sw/calc.hxx
sw/source/ui/core/doc/docfld.cxx
sw/source/ui/core/bastyp/calc.cxx
Comment 11 marc.neumann 2006-04-06 09:35:21 UTC
Hi,

this is fixed in the current master. The current master is available at
http://download.openoffice.org/680/index.html

I close this issue now.

Bye Marc