Issue 85007 - Paste of large quantity of text fails after 65535 characters are pasted from clipboard
Summary: Paste of large quantity of text fails after 65535 characters are pasted from ...
Status: CLOSED DUPLICATE of issue 17171
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.3.1
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
Keywords: oooqa
Depends on:
Reported: 2008-01-05 20:28 UTC by jpbrown
Modified: 2008-01-06 06:17 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this issue.
Description jpbrown 2008-01-05 20:28:32 UTC
Using Firefox, I copied a large quantity of text from a web page.  When pasting
it into Writer, only the first 65,535 characters (10,619 words) were pasted into
Writer.  These statistics are from Writer's Properties Statistics acquired by
opening a blank document and pasting the text into the document.  Attempts to
position the curser immediately after the last character pasted and paste the
remaining chunk of text fails to paste any characters.  Moving the cursor in
Writer to the line immediately following the last successfully pasted character
permits the paste of the remaining characters.  However, moving to the beginning
character of the newly pasted section and hitting backspace to join the 2 pasted
sections results in a major portion of the initially pasted section being
deleted (suspect it is equal to the amount of the second pasted section but
haven't validated the exact size).

Steps to reproduce:
1.  Using the text from the following web page,
2. Begin a copy where the patent is being described "[0001]..." ending with
"###" near the bottom of the web page.
3. In a new document in Writer, paste the content you just copied from your
browser into the new document.  
4.  You will notice that the content stops after "...interconnecting with
existin" instead of the "###" that you highlighted from your browser.
5.  Position your cursor directly after the last character "n".
6.  In your browser locate the paragraph [0104] and find the spot where the last
character was correctly carried over in the word "existing".  Highlight the "g"
through the "###", copy it to the clipboard.
7.  Back in Writer, paste the contents.  Result, no content pasted.
8.  Move to the next line in Writer and paste.  Result, content is pasted.
9.  Move to the beginning of "g" that was at the beginning of your second paste
and press backspace to join the 2 sections.  Scroll up and notice that you have
many missing paragraphs (indicated by the bracketed numbering of the paragraphs).

Actual Results: 
You get a partially pasted set of text done in 2 steps with a portion of the
initial pasted text removed -- you have lost much of what you would have
expected to be preserved.

Expected Results:
Would have expected that all text from the clipboard would have been pasted in
one chunk instead of 2 chunks.  Would have expect to be able to begin the second
paste immediately after the first pasted text.  Would have expected the
backspace to join the 2 pasted chunks instead of deleting or overlaying a major
portion of the first chunk pasted.
Comment 1 aziem 2008-01-06 06:11:52 UTC
jpbrown: The source is one giant paragraph using hard line breaks (in HTML a
<br>) instead of paragraph breaks (in HTML <p>).  Vote for issue 17171.  

Duplicate of issue 17171.

Well-written bug report, though.  :)

*** This issue has been marked as a duplicate of 17171 ***
Comment 2 aziem 2008-01-06 06:17:22 UTC
Closing duplicate.

BTW, the workaround is to add some paragraph breaks by typing ENTER.