Bug 161359 - rtf no'open
Summary: rtf no'open
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.2.0 target:24.8.3 target:24...
Keywords: bibisected, regression
Depends on:
Blocks: RTF-Images
  Show dependency treegraph
 
Reported: 2024-05-31 08:29 UTC by Roman
Modified: 2024-10-29 07:26 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
rtf.rtf (503.83 KB, application/rtf)
2024-05-31 08:32 UTC, Roman
Details
Same rtf file. Opened in Wordpad, saved again - will be opened in LO. (242.94 KB, application/rtf)
2024-05-31 09:43 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2024-05-31 08:29:22 UTC
Description:
rtf no'open

Steps to Reproduce:
1.rtf no'open
2.
3.

Actual Results:
rtf no'open

Expected Results:
rtf open


Reproducible: Always


User Profile Reset: Yes

Additional Info:
rtf open
Comment 1 Roman 2024-05-31 08:32:26 UTC
Created attachment 194481 [details]
rtf.rtf

rtf
Comment 2 Robert Großkopf 2024-05-31 09:43:09 UTC
Created attachment 194482 [details]
Same rtf file. Opened in Wordpad, saved again - will be opened in LO.

Might be something wrong with the file. Error while trying to open the 500kB file. Then opened in Wordpad and saved with a new name as *.rtf. File will be about 250kB now. This file could be opened in LO without any problem.
Comment 3 Roman 2024-05-31 11:07:37 UTC
(In reply to Robert Großkopf from comment #2)
> Created attachment 194482 [details]
> Same rtf file. Opened in Wordpad, saved again - will be opened in LO.
> 
> Might be something wrong with the file. Error while trying to open the 500kB
> file. Then opened in Wordpad and saved with a new name as *.rtf. File will
> be about 250kB now. This file could be opened in LO without any problem.

EN: The file opens in Microsoft office, then you can save it and open it in the LOFT.
There are more than 5 such files and they are generated by a different program at different times.
A fix is required, since there is no wordpad or MO on linux.
RU: В Microsoft office файл открывается, дальше можно сохранить и откроется в LO.
Файлов таких более 5 и они генерятся программой иной, в разное время.
Требуется починка, так как ни wordpad ни MO на linux нет.
Comment 4 Julien Nabet 2024-05-31 11:30:52 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Miklos: thought you might be interested in this one since it concerns rtf.
Comment 5 Robert Großkopf 2024-05-31 12:00:38 UTC
(In reply to Roman from comment #3)
> (In reply to Robert Großkopf from comment #2)
> > Created attachment 194482 [details]
> > Same rtf file. Opened in Wordpad, saved again - will be opened in LO.
> > 
> > Might be something wrong with the file. Error while trying to open the 500kB
> > file. Then opened in Wordpad and saved with a new name as *.rtf. File will
> > be about 250kB now. This file could be opened in LO without any problem.
> 
> EN: The file opens in Microsoft office, then you can save it and open it in
> the LOFT.
> There are more than 5 such files and they are generated by a different
> program at different times.
> A fix is required, since there is no wordpad or MO on linux.

I have created the file in Linux → Wine with wordpad. Also no Windows available here.
Comment 6 Roman 2024-05-31 12:09:36 UTC
(In reply to Robert Großkopf from comment #5)
> (In reply to Roman from comment #3)
> > (In reply to Robert Großkopf from comment #2)
> > > Created attachment 194482 [details]
> > > Same rtf file. Opened in Wordpad, saved again - will be opened in LO.
> > > 
> > > Might be something wrong with the file. Error while trying to open the 500kB
> > > file. Then opened in Wordpad and saved with a new name as *.rtf. File will
> > > be about 250kB now. This file could be opened in LO without any problem.
> > 
> > EN: The file opens in Microsoft office, then you can save it and open it in
> > the LOFT.
> > There are more than 5 such files and they are generated by a different
> > program at different times.
> > A fix is required, since there is no wordpad or MO on linux.
> 
> I have created the file in Linux → Wine with wordpad. Also no Windows
> available here.

EN: This file should be opened in LO, there is no point in unnecessary work in other applications.
RU: Данный файл должен открываться в LO, нет смысла лишней работы в других приложениях.
Comment 7 Gabor Kelemen (allotropia) 2024-08-12 11:49:13 UTC
This has changed in 6.1 with commit:

https://git.libreoffice.org/core/+/060b0fb4b93ee09770ed9398cca46e365dda5be8%5E%21/#F0

author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	Thu Mar 08 16:37:46 2018 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	Thu Mar 08 12:57:19 2018 +0100

change RTFDocumentImpl to use Graphic instead of GraphicURL

Adding CC to: Tomaž Vajngerl 

There are three images at the end of the document which before were not shown properly, but a "Read error" was visible in their frame as alternative text.
So that was not exactly good, but at least most of the document was loaded and readable.

Also can confirm that resaving the file in Word 2016 makes the images appear in Writer, but also changes file size from 500 kB to 14.5 mB!
Comment 8 Commit Notification 2024-10-23 07:26:48 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/100e0a0163482645b50da21320bb67aeb2dc21fa

tdf#161359 fix opening RTF with broken images

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Commit Notification 2024-10-23 19:06:17 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/aa2b46b323837a0b48b23d7344f361bb88d770fa

tdf#161359 fix opening RTF with broken images

It will be available in 24.8.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2024-10-24 08:43:36 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/0308c3a0a7fa8dcc3693434590fa9418528f8d48

tdf#161359 fix opening RTF with broken images

It will be available in 24.2.8.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2024-10-29 07:26:32 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "libreoffice-24-2-7":

https://git.libreoffice.org/core/commit/c7ba6606eac48088430b34ac7babe908cdb91546

tdf#161359 fix opening RTF with broken images

It will be available in 24.2.7.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.