Issue 124178 - New InputFields - Reopened file is corrupted if there is text after the InputField
Summary: New InputFields - Reopened file is corrupted if there is text after the Input...
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 4.1.0-dev
Hardware: PC Windows, all
: P3 Major (vote)
Target Milestone: 4.1.0
Assignee: Oliver-Rainer Wittmann
QA Contact: Shenfeng Liu
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2014-02-04 11:01 UTC by jmpoo
Modified: 2017-05-20 10:35 UTC (History)
5 users (show)

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


Attachments
UserField AOO 4.1.0 dev (11.83 KB, application/vnd.oasis.opendocument.text)
2014-02-04 11:01 UTC, jmpoo
no flags Details
UserField AOO 4.0.1 (10.63 KB, application/vnd.oasis.opendocument.text)
2014-02-04 11:02 UTC, jmpoo
no flags Details
Screenshot original text and after reopening (125.35 KB, image/png)
2014-02-04 11:17 UTC, jmpoo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jmpoo 2014-02-04 11:01:10 UTC
Created attachment 82493 [details]
UserField AOO 4.1.0 dev

AOO 4.1.0 r156 3305, de, default options

Open Writer
insert an InputField and write some text behind it
save and close the file
reopen the file.

Notice that some text behind the InputField is missing.

Works in AOO 4.0.1.

I have attached two files: 
one created in AOO 4.1, wich is probably corrupted
and another one, created in AOO 4.0.1, wich opens without corruption in AOO 4.1 and fails if you save and reopen it.
Comment 1 jmpoo 2014-02-04 11:02:22 UTC
Created attachment 82494 [details]
UserField AOO 4.0.1
Comment 2 jmpoo 2014-02-04 11:17:30 UTC
Created attachment 82497 [details]
Screenshot original text and after reopening

Add screenshot
Comment 3 Edwin Sharp 2014-02-04 12:04:18 UTC
Confirmed with
AOO410m1(Build:9750)  -  Rev. 1562493
Rev.1562493
Win 7
Comment 4 Oliver Brinzing 2014-02-04 12:09:31 UTC
.
Comment 5 Oliver-Rainer Wittmann 2014-02-10 13:20:27 UTC
taking over to work on a solution as I assume my changes causes this defect
Comment 6 Oliver-Rainer Wittmann 2014-02-10 15:21:40 UTC
fix in progress

root cause:
For User Variable Input Fields the length of the Input Field's content is not calculated correct - the User Variable's name is used instead of its content.
Comment 7 SVN Robot 2014-02-11 10:15:45 UTC
"orw" committed SVN revision 1567024 into trunk:
124178: correct export of User Variable Input Fields
Comment 8 Oliver-Rainer Wittmann 2014-02-11 10:23:54 UTC
fixed on trunk for next release.

defect had been introduced by the in-place editing of Input Fields enhancement (bug 33737)
Comment 9 Kulo 2014-02-17 08:56:40 UTC
Please consider also https://bugs.freedesktop.org/show_bug.cgi?id=70307 .
I attached there a test document for Input fields in protected sections. I also tested with the actual released LO 4.2.1.1 (in the release notes for this version this bug is marked as solved). The problem with input fields in protected sections is still present.
Comment 10 Edwin Sharp 2014-02-17 09:01:49 UTC
Please note this website is about Apache OpenOffice.
LibreOffice is a different product.
Comment 11 Kulo 2014-02-17 09:08:41 UTC
(In reply to Edwin Sharp from comment #10)
> Please note this website is about Apache OpenOffice.
> LibreOffice is a different product.

I'm sorry - but I don't understand why there is a AOO-Bug mentioned in the release notes for LO?? (https://wiki.documentfoundation.org/Releases/4.2.1/RC1)

I also made a little mistake - my comment should apply to bug 124179.
Comment 12 Edwin Sharp 2014-02-17 09:22:30 UTC
(In reply to Kulo from comment #11)
> I'm sorry - but I don't understand why there is a AOO-Bug mentioned in the
> release notes for LO??
> (https://wiki.documentfoundation.org/Releases/4.2.1/RC1)
> 
I don't know.
> I also made a little mistake - my comment should apply to bug 124179.

Please check with latest snapshot from:
http://ci.apache.org/projects/openoffice/
and reopen bug if necessary.
Comment 13 Oliver-Rainer Wittmann 2014-02-17 11:12:40 UTC
(In reply to Kulo from comment #9)
> Please consider also https://bugs.freedesktop.org/show_bug.cgi?id=70307 .
> I attached there a test document for Input fields in protected sections. I
> also tested with the actual released LO 4.2.1.1 (in the release notes for
> this version this bug is marked as solved). The problem with input fields in
> protected sections is still present.

@Kulo:
Nor bug 124178 neither bug 124179 is the defect described in LO bug 70307.
Please submit a separate issue and put myself (orw@apache.org) on CC. Thx in advance.
Comment 14 Shenfeng Liu 2014-02-25 09:17:09 UTC
I will verify this fix.
Comment 15 Shenfeng Liu 2014-02-25 10:08:41 UTC
verified on build 1571426, and this defect is no longer reproducible.