Issue 108404 - value return 0 from link of calc file with password
Summary: value return 0 from link of calc file with password
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: formatting (show other issues)
Version: OOO320m10
Hardware: All Windows XP
: P4 Trivial (vote)
Target Milestone: ---
Assignee: yfjiang
QA Contact: issues@sc
URL:
Keywords:
: 24535 109090 (view as issue list)
Depends on:
Blocks:
 
Reported: 2010-01-18 09:06 UTC by yohan14
Modified: 2017-05-20 11:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description yohan14 2010-01-18 09:06:43 UTC
1. create ODS (i.e "transaction.ods")and save as with password "abc" 
2. create another ODS file (i.e "master.ods")and save as with password "xyz"
3. put value in cell A1, B1, C1 = 1, 2, 3 in "master.ods"
4. link A1, B1, C1 in "transaction.ods" to A1, B1, C1 in "master.ods"
(cell A1 in "transaction.ods" will contain like 
this "='file:///C:/master.ods'#Sheet1.A1")

[in normal case, value of A1, B1, C1 in "transaction.ods" should be the same as 
value of A1, B1, C1 in "master.ods"]

close the file and save the changes.

5. open file "transaction.ods", enter the password. A dialog box will appear. 
click "Yes" to update the file with the link contained.

6. Cell A1, B1, and C1 will be "0" (Zero)

If you remove password of file "master.ods", cell A1, B1, C1 
of "transaction.ods" will return the value of A1,B1, C1 of "master.ods" 
correctly.
Comment 1 yohan14 2010-01-25 09:27:50 UTC
any help ? I am using the newest released candidate version, but still getting 
this problem..
Comment 2 yohan14 2010-01-29 03:47:37 UTC
hai.. just wondering about the progress of this issue.. I don't see this has
been resolved yet in the newest release candidate version (RC4)..

Comment 3 ooo 2010-02-16 10:57:11 UTC
*** Issue 109090 has been marked as a duplicate of this issue. ***
Comment 4 ooo 2010-02-16 10:59:06 UTC
@kohei: ?
Comment 5 kyoshida 2010-02-16 13:27:26 UTC
Let me look into that.
Comment 6 yohan14 2010-02-25 03:24:17 UTC
any update on this ? my users are waiting impatiently. This could be a reason 
for them to go back to microsoft excel.. I really need progress here... Thanks
Comment 7 kyoshida 2010-02-25 03:44:20 UTC
No update.  All of us developers are already under massive loads, so it's not
reasonable to expect a bug be fixed that quick.
Comment 8 kyoshida 2010-02-25 03:55:00 UTC
If you need an immediate fix, you should get a support contract with someone
capable of supporting OOo.
Comment 9 kyoshida 2010-03-06 01:10:01 UTC
Confirmed.  But I doubt this ever worked correctly.  So, at least this is not a
regression.

For instance, when you link a table to an encrypted document, it succeeds only
for the first time.  When you reload the document and select to update the link,
the table fails to update.  The reason I checked the linked table is that linked
tables are an old mechanism not affected by my rework of the external references.

I could check how easily we can add support for encrypted documents, but no idea
if I could make that for 3.3.

Comment 10 yohan14 2010-03-08 01:02:59 UTC
then my user will have a reason to stay with their excel until openoffice 
resolve this issue... this becomes one of the obstacles that will hold me to 
reduce excel users in my office..:(

Please, let me know if you have new progress on this.. Thanks
Comment 11 kyoshida 2010-03-08 19:09:37 UTC
I had a second look at this.  Actually fixing this is quite simple.  I'll put
this into the koheiextref01 cws for 3.3 inclusion.
Comment 12 kyoshida 2010-03-08 19:09:59 UTC
set target for 3.3.
Comment 13 kyoshida 2010-03-08 19:13:37 UTC
fixed in koheiextref01 cws.
http://hg.services.openoffice.org/cws/koheiextref01/rev/8e541a16ecaa
Comment 14 niklas.nebel 2010-03-09 18:04:31 UTC
UseInteractionHandler must only be used if user interaction is involved. When
called via API for example, no pop-up dialogs are allowed. See issue 73992 and
the handling in tablink.cxx.
Comment 15 kyoshida 2010-03-09 19:55:53 UTC
Good point.  I've added a guard to disable interaction handler when interpreting
formula strings from the API.

http://hg.services.openoffice.org/hg/cws/koheiextref01/rev/a113b80ef941

The external doc link API (the interfaces in linkuno.?xx used from oox) doesn't
need such guard since it accesses the cache table content directly.
Comment 16 kyoshida 2010-04-29 03:24:49 UTC
Re-assigning to oc for verification.
Comment 17 kyoshida 2010-05-26 16:31:22 UTC
Re-assigning to Yi Fan for verification.
Comment 18 yfjiang 2010-05-31 03:30:39 UTC
Verified on SLED 11 sp1 and Windows xp sp3.
Comment 19 niklas.nebel 2010-08-26 10:01:17 UTC
*** Issue 24535 has been marked as a duplicate of this issue. ***