Bug 220005 - Data corruption in form submission and text area with wrap="hard"
Summary: Data corruption in form submission and text area with wrap="hard"
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-24 22:09 UTC by Michael Kreitzer
Modified: 2010-01-15 20:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Preliminary patch w/tons of debug output. (1.34 KB, patch)
2009-12-28 16:21 UTC, Maksim Orlovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kreitzer 2009-12-24 22:09:55 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Archlinux Packages

I experience this mostly when using the web interface for RT 3 (Request Tracker, a perl based open source issue tracker), but that is mostly because I use it constantly throughout the day for work. I have seen it happen on other sites.

When the text I'm submitting contains a hyphenated word all text after the hyphen is missing from what is sent to the server. E.g.

"This is a line. This is another line. This is a line-with a hyphen in it. This is yet another line." is typed in the textbox all that gets sent to the server is "This is a line. This is another line. This is a line-".

I've not been able to nail down an exact behavior yet. I _think_ it may only be doing it if the word wrapping is breaking up the hyphenated word, but I'm not 100% certain.
Comment 1 Maksim Orlovich 2009-12-25 00:28:14 UTC
Yeah, it has to do with linebreaks... Someone else mentioned this before, but I think the graveness of it didn't strike me enough for me to wrestle with QTextEdit oddness enough. I got some help on this already, but it seems like I will need more.
Comment 2 Michael Kreitzer 2009-12-27 01:45:36 UTC
I'm a competant coder. If you can point me to where to look perhaps I can help?

Maksim Orlovich <maksim@kde.org> wrote:

>https://bugs.kde.org/show_bug.cgi?id=220005
>
>
>Maksim Orlovich <maksim@kde.org> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |NEW
>                 CC|                            |maksim@kde.org
>     Ever Confirmed|0                           |1
>
>
>
>
>--- Comment #1 from Maksim Orlovich <maksim kde org>  2009-12-25 00:28:14 ---
>Yeah, it has to do with linebreaks... Someone else mentioned this before, but I
>think the graveness of it didn't strike me enough for me to wrestle with
>QTextEdit oddness enough. I got some help on this already, but it seems like I
>will need more.
>
>-- 
>Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
>------- You are receiving this mail because: -------
>You reported the bug.
Comment 3 Maksim Orlovich 2009-12-28 16:21:11 UTC
Created attachment 39407 [details]
Preliminary patch w/tons of debug output.

This actually seems to work in my testing...
Comment 4 Maksim Orlovich 2010-01-15 20:06:09 UTC
SVN commit 1075282 by orlovich:

Fix hardwrapped textareas losing lines in some cases
BUG:220005


 M  +1 -1      render_form.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1075282
Comment 5 Maksim Orlovich 2010-01-15 20:08:52 UTC
SVN commit 1075284 by orlovich:

automatically merged revision 1075282:
Fix hardwrapped textareas losing lines in some cases
BUG:220005

 M  +1 -1      render_form.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1075284