Bug 108507 - Pasting from Gmail to a Writer document creates incomplete URL titles
Summary: Pasting from Gmail to a Writer document creates incomplete URL titles
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2017-06-13 14:33 UTC by fossterer
Modified: 2017-12-09 20:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
ODT document with one image and 3 URLs (340.30 KB, application/vnd.oasis.opendocument.text)
2017-06-13 14:33 UTC, fossterer
Details
The actual failing file (341.83 KB, application/vnd.oasis.opendocument.text)
2017-06-27 23:21 UTC, fossterer
Details
original markup from email (13.20 KB, text/plain)
2017-06-28 18:21 UTC, fossterer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fossterer 2017-06-13 14:33:02 UTC
Created attachment 133997 [details]
ODT document with one image and 3 URLs

Steps to Reproduce:

1. Use the attachment[1] in Libreoffice Writer
2. Click on 'Export to PDF' and 'Finish' ( No need to modify name or anything

Observed Behaviour:
Clickable links work fine but the title gets broken just after the domain name (even losing .com / .org information and everything after that

Expected Behaviour:
The entire URL should appear as the title as long as no custom title has been created in the original document
Comment 1 Xisco Faulí 2017-06-13 14:50:32 UTC Comment hidden (obsolete)
Comment 2 fossterer 2017-06-13 15:17:51 UTC
Thanks for the quick response Xisco!

This is the latest Ubuntu-16.04-LTS provided version.
I'd build the 5.3.3 branch of the code on Thursday Jun 15 2017 and update new findings here. In case that variant doesn't reproduce this issue, shouldn't it be still valid for the version reported?

I am leaving the 'Status' as is until then
Comment 3 fossterer 2017-06-19 18:34:14 UTC
Just tried to reproduce this bug by installing the latest version using 'LibreOffice_5.3.3_Linux_x86-64_deb.tar.gz' and the bug exists the same way. There's more to it now. See below:

1) As soon as I pasted the said content (with hyperlinks) itself into the ODT, the broken titles appear. What this means is that the issue exists even before 'Export to PDF' is chosen.

2) I might have not noted this in my previous attempt probably because, I didn't focus on (or 'close and open') the ODT I was working on and blamed it directly on the 'PDF Export' functionality

3) If it helps, I'd say the content I'm copying to paste in ODT comes from an email I received in GMail. If someone doubts this is related to encoding or any other issues, I can assist with more details
Comment 4 Buovjaga 2017-06-27 16:47:56 UTC
I'm only seeing 1 URL, which is fine. Are you sure you attached the correct document?

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.4.2
Build ID: 5.3.4-1
CPU Threads: 8; OS Version: Linux 4.11; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: f808c50c6eece87d515df3b84b1c774395b5d9bc
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 26th 2017
Comment 5 fossterer 2017-06-27 23:21:15 UTC
Created attachment 134325 [details]
The actual failing file

The actual failing file - please ignore the one before this
Comment 6 fossterer 2017-06-27 23:22:35 UTC
Yeah, I see it now. Updated with correct file

(In reply to Buovjaga from comment #4)
> I'm only seeing 1 URL, which is fine. Are you sure you attached the correct
> document?
> 
> Arch Linux 64-bit, KDE Plasma 5
> Version: 5.3.4.2
> Build ID: 5.3.4-1
> CPU Threads: 8; OS Version: Linux 4.11; UI Render: default; VCL: kde4;
> Layout Engine: new; 
> Locale: fi-FI (fi_FI.UTF-8); Calc: group
> 
> Arch Linux 64-bit, KDE Plasma 5
> Version: 6.0.0.0.alpha0+
> Build ID: f808c50c6eece87d515df3b84b1c774395b5d9bc
> CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
> Locale: fi-FI (fi_FI.UTF-8); Calc: group
> Built on June 26th 2017
Comment 7 Buovjaga 2017-06-28 10:18:04 UTC
I would be interested in seeing the HTML markup around those problematic links in the email.
Comment 8 fossterer 2017-06-28 18:21:49 UTC
Created attachment 134362 [details]
original markup from email

Hello!

I did a 'Download Original' on the email I received and scrubbed sensitive details. Interesting content should start at -

Line 76: ------=_Part_4798_145488296.1497279039304 and the actual markup from -
Line 131: ------=_Part_4798_145488296.1497279039304
Comment 9 Buovjaga 2017-08-15 07:54:39 UTC
(In reply to fossterer from comment #8)
> Created attachment 134362 [details]
> original markup from email
> 
> Hello!
> 
> I did a 'Download Original' on the email I received and scrubbed sensitive
> details. Interesting content should start at -
> 
> Line 76: ------=_Part_4798_145488296.1497279039304 and the actual markup
> from -
> Line 131: ------=_Part_4798_145488296.1497279039304

I copied the file as .eml to Thunderbird and forwarded it to a Gmail account. Gmail had linkified the URLs and I copied the message and pasted to LibreOffice. No problem with the link titles.

I also inspected the links in Gmail with my browser's dev tools and they looked ok.

Maybe you could try again? Perhaps they changed something in Gmail.. Very weird case.

Win 7 Pro 64-bit, Version: 5.4.0.3 (x64)
Build ID: 7556cbc6811c9d992f4064ab9287069087d7f62c
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: fi-FI (fi_FI); Calc: CL

Version: 6.0.0.0.alpha0+ (x64)
Build ID: bec5a2ac82b5178f6e765494c2003febe8ab51da
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2017-08-12_23:35:00
Locale: fi-FI (fi_FI); Calc: CL
Comment 10 Xisco Faulí 2017-11-29 10:05:19 UTC Comment hidden (obsolete)
Comment 11 fossterer 2017-12-09 20:32:00 UTC
Hello Xisco,

I don't see the same behaviour anymore. Setting the status to 'Resolved'.

I appreciate you following up on my concern. Thanks!

(In reply to Xisco Faulí from comment #10)
> > 
> > Maybe you could try again? Perhaps they changed something in Gmail.. Very
> > weird case.
> 
> Dear fosstener,
> Could you please try it as suggested by Buovjaga?
> I have set the bug's status to 'NEEDINFO'. Please change it back to
> 'UNCONFIRMED' if the bug is still reproducible once retested