Bug 148276 - AutoText files with images, that are replaced with a new version, keep older versions of the images in the .bau (zip) file (thus growing the file size etc)
Summary: AutoText files with images, that are replaced with a new version, keep older ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha1+
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoText
  Show dependency treegraph
 
Reported: 2022-03-30 15:28 UTC by Cor Nouws
Modified: 2023-03-08 08:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
.bau file with AutoText fragment with image, created in 7.3.0.0_alpha (492.35 KB, application/zip)
2022-03-30 15:28 UTC, Cor Nouws
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Nouws 2022-03-30 15:28:55 UTC
Created attachment 179219 [details]
.bau file with AutoText fragment with image, created in 7.3.0.0_alpha

1. Create an AutoText category and an entry that includes text and an image.

(Then I closed and reopened LibreOffice)

2. Place the AutoText entry in a file, add another image.

3. Select content and save under the same name (iow: AutoText entry is replaced).

Close LibreOffice.

4. Pick the .bau file from the user profile, and do extract it.
   (.config/libreoffice/<4 or whatever>/user/Autotext/

5. Extract the file.
   > notice that there are two images inside the path in the .bau file.


In the attached bau file:
  Autotext_Test_20220329_ExtractThis/TATWI/Pictures/
   - 100000010000039C0000019AB2C541DF15199380.png
   - 1000000100000191000000EA6460480B7BA026B7.png
   - 10000001000001CB00000077CDAC7741CD2384E7.png


Test done in Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: 742b8befecbcfc0cfab87cfcd87c83b7d8ef32ab
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Dieter 2022-10-15 11:03:02 UTC
Hi Cor, unfortunately nobody could confirm this bug report for half a year. So I'd like to ask, if it is still valid. Could you please try to reproduce it with actual master? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 Cor Nouws 2022-10-15 13:59:31 UTC
(In reply to Dieter from comment #1)
> Hi Cor, unfortunately nobody could confirm this bug report for half a year.
Oh - thought/hoped the description is crisp ;)

> So I'd like to ask, if it is still valid. Could you please try to reproduce
Situation (not unexpected) similar in Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 100dc387ffd7df84199dae51abd9de35440905f1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: nl-NL (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Dieter 2022-12-12 07:42:52 UTC
Sorry for late reply. And I'm afrais, I'm not familiar enough with AutoText, because I failed to create a new category. Help says: "To create a new category, type a name, and then click New." But "New" is greyed out the whole time. I hope, somebdy else can help.
Comment 4 Buovjaga 2023-03-08 08:45:17 UTC
I reproduce even though the steps are not clear (summary is correct).

(In reply to Cor Nouws from comment #0)
> Created attachment 179219 [details]
> .bau file with AutoText fragment with image, created in 7.3.0.0_alpha
> 
> 1. Create an AutoText category and an entry that includes text and an image.
> 
> (Then I closed and reopened LibreOffice)
> 
> 2. Place the AutoText entry in a file, add another image.

This step should be "Insert AutoText into a new document, delete original image, add a new image".

The old image that I expected to be removed is indeed kept inside the .bau file.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 65f672b27f84682764f924a3da3cecbafc88b278
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 8 March 2023