Issue 4211 - Spreadsheet remains locked after use as data source in form letter
Summary: Spreadsheet remains locked after use as data source in form letter
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 641
Hardware: PC Windows 2000
: P2 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-24 06:41 UTC by newt
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Spreadsheet to use as data source (4.83 KB, application/octet-stream)
2002-04-24 06:42 UTC, newt
no flags Details
Dummy form letter to demonstrate fault - must connect addresses.sxc as 'test' data source (4.76 KB, application/octet-stream)
2002-04-24 06:43 UTC, newt
no flags Details
Screenshot of W2K Task Manager (71.42 KB, image/jpeg)
2002-04-26 00:47 UTC, newt
no flags Details
Screenshot of OO Options/Memory (33.35 KB, image/jpeg)
2002-04-26 00:54 UTC, newt
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description newt 2002-04-24 06:41:43 UTC
A spreadsheet used as a data source for a form letter cannot be written, even
after exiting all OO windows. The file remains locked (cannot rename, delete
from W2K either) until reboot. Disconnecting the data source makes no difference.
Comment 1 newt 2002-04-24 06:42:35 UTC
Created attachment 1468 [details]
Spreadsheet to use as data source
Comment 2 newt 2002-04-24 06:43:29 UTC
Created attachment 1469 [details]
Dummy form letter to demonstrate fault - must connect addresses.sxc as 'test' data source
Comment 3 newt 2002-04-24 06:45:10 UTC
Error dialog from OO gives:

Object not accessible
The object cannot be accessed due to insufficient user rights

and from W2K:

There has been a sharing violation: the source or destination file may
be in use.
Comment 4 Frank Schönheit 2002-04-24 07:50:55 UTC
Greg, can you please check if connection pooling is enabled?
(Tools/Options/Data Sources/Connections)

By default, this is enabled, and it means that connections to data
sources are held some time after they have been released by the
application. In case of a spreadsheet, this could mean that the
"database connection" as well as the "database table" (which is the
spreadsheet file) is not released, yet.

A second suspicious point in your description is this "until reboot".
Can you please confirm that you do not have the quickstarter active?
The quickstarter (the small butterfly icon in the system tray) keeps
OOo alive - with all consequences, as if you had a document open.
If you do _not_ have the quickstarter active, and the problem
persists, this is a even more serious issue. But for the moment,
sorry, I assume that it _is_ active in your scenario.

One more thing I'd like to ask: Please try to be more concrete in bug
descriptions. The idea of a step-by-step description may sound stupid
for such "simple" cases, but please believe me, it isn't! It simply
helps reproducing problems, and ensures that no implicit assumptions
are made which only the submitter knows. Only a bug which can be
reproduced can be fixed.
So I kindly ask you to give us a more detailed description. Something
like "start staroffice, create a new Spreadsheet data source with the
document attached, do ....".
In this special case here, this "data source for a form letter" is way
too unspecific. How exactly did you use it? Just setting it as data
source of the document? Merging data from this table? Inserting fields
from this table?
Please be gossipy :)

After giving us this information, please assign the bug back to me
(fs@openoffice.org).

Thanks
Frank
Comment 5 newt 2002-04-26 00:47:02 UTC
Created attachment 1484 [details]
Screenshot of W2K Task Manager
Comment 6 newt 2002-04-26 00:54:20 UTC
Created attachment 1485 [details]
Screenshot of OO Options/Memory
Comment 7 newt 2002-04-26 01:04:42 UTC
Hi Frank, thanks for your comments. Here's my response(s):

1)    Yes, connection pooling is enabled - but 60 seconds should see
the connection released - yes?

2)    No, quickstarter is not loaded (see OptionsOOOMemory.jpg)

3)    Here's the concrete (just don't make it into galoshes for me)!

i)    Open formletter.sxw

ii)   Use Tools/Data Sources/New data source to connect address.sxc as
source 'test'.

iii)  Use File / Form Letter, select Output / File radio button, click OK.

iv)   Close all OO windows

v)    Just go and peek at W2K Task Manager - what's this? See
taskman.jpg. Why is there an soffice.exe? Note that this wasn't done
before filing the issue first time.

vi)   Wait 60 seconds :-) as per response 1) above.

vii)  Attempt to rename / etc. from outside OO, file is locked.

Is that better?
Comment 8 Frank Schönheit 2002-04-26 08:01:00 UTC
greg,

(
can you please translate "just don't make it into galoshes for me" for
a non-native english spaker? :)
)

thanks for the descriptions. Because of the above sentence I'm not
sure if you felt offended by my request for information - if so, this
was surely not intended :)

As I see it, we have two problems: OOo not terminating when closing
the last window (people requested this as feature, but I do not think
that this is what they meant :), and the connection not beeing freed
when closing the form letter document.
About the former, I have no idea, but will try to reproduce, for the
latter, I'll try to reproduce, too, and the assign to
os@openoffice.org, as he's responsible for form letter ....
Comment 9 newt 2002-04-26 08:12:42 UTC
Hi Frank...

'galoshes' are over-boots, thus my reference is to being thrown into
deep water with concrete boots. I have an odd sense of humour, so
don't be upset if you don't get it?!

soffice only stays resident if I do the mailmerge thing (as previously
described!), and if killed of course the file lock dies with it.
Opening & closing further documents, soffice shuts down 'properly'
i.e. disappears from task list.

Cheers
Greg  |;^)
Comment 10 Frank Schönheit 2002-04-26 08:33:50 UTC
Hi Greg,

I do not have any problem with odd humor, I just did not recognize it
as humor :). np.

this sounds as if staying resident is a follow-up of not freeing the
connection (or at least of doing the form letter thingie). Strange ....

Frank
Comment 11 ocke.janssen 2002-12-16 10:21:23 UTC
Fixed in a current release after srx643C. May be before :-)
Comment 12 Frank Schönheit 2003-05-20 11:37:50 UTC
closing
Comment 13 hans_werner67 2004-02-02 12:54:17 UTC
change subcomponent to 'none'