Bug 166379 - Make it possible to remove "Total editing time" separately from all private info files
Summary: Make it possible to remove "Total editing time" separately from all private i...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Balázs Varga (allotropia)
URL:
Whiteboard: target:25.8.0
Keywords:
Depends on:
Blocks: Privacy
  Show dependency treegraph
 
Reported: 2025-04-28 12:33 UTC by Gabor Kelemen (allotropia)
Modified: 2025-05-21 08:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Initial example file (34.53 KB, application/vnd.oasis.opendocument.text)
2025-04-28 12:33 UTC, Gabor Kelemen (allotropia)
Details
The same file saved with Remove personal information enabled (35.04 KB, application/vnd.oasis.opendocument.text)
2025-04-28 12:36 UTC, Gabor Kelemen (allotropia)
Details
The File - Properties dialog of the first file with all personal info visible (143.37 KB, image/png)
2025-04-28 12:37 UTC, Gabor Kelemen (allotropia)
Details
Settings to remove personal info, but keep everything that is supported to be kept (62.19 KB, image/png)
2025-04-28 12:38 UTC, Gabor Kelemen (allotropia)
Details
The File - Properties dialog of the second file with Total editing time purged, but too much other info as well (136.62 KB, image/png)
2025-04-28 12:39 UTC, Gabor Kelemen (allotropia)
Details
Missing user name in tag Changed with switched on this new option for working time (106.28 KB, image/png)
2025-05-10 08:45 UTC, riesslibo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2025-04-28 12:33:21 UTC
Created attachment 200581 [details]
Initial example file

When the "Remove personal information on saving option" in the Security settings is enabled, the Total editing time is zeroed out - among other things like Template name and Revision number (as mentioned in bug 88121).

It would be in some cases useful to have a separate option to remove only this bit of personal data, while keeping the Template name info around.

1. Open attached file
2. Go to File - Properties 
-> Total editing time is not 00:00:00
3. Go to Options - Security - click Options button - Check Remove personal information on saving
4. Save the file, reload, or open the second attacheent
5. Go to File - Properties 
-> Total editing time is 00:00:00, but also the Template name and Revision number is empty.

Ideally there would be a config key (see ooO.Common.Security.Scripting) with that removal of this property would be controllable even if all the other personal info is to be kept.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 492c94abe05e5ac213475cdd85f158b7a462f824
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2025-04-28 12:36:44 UTC
Created attachment 200582 [details]
The same file saved with Remove personal information enabled
Comment 2 Gabor Kelemen (allotropia) 2025-04-28 12:37:21 UTC
Created attachment 200583 [details]
The File - Properties dialog of the first file with all personal info visible
Comment 3 Gabor Kelemen (allotropia) 2025-04-28 12:38:07 UTC
Created attachment 200584 [details]
Settings to remove personal info, but keep everything that is supported to be kept
Comment 4 Gabor Kelemen (allotropia) 2025-04-28 12:39:02 UTC
Created attachment 200585 [details]
The File - Properties dialog of the second file with Total editing time purged, but too much other info as well
Comment 5 Commit Notification 2025-04-30 13:58:29 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

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

tdf#166379 - Add export config option to remove "Total editing time"

It will be available in 25.8.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 6 riesslibo 2025-05-10 08:43:32 UTC
Thanks for this enhancement, it enables the compliance with rules of law in professional environments with the expert options switched true (e.g. with a XCD file in the registry folder).

One question with that: I observed with switched to true, that also the user name and surename in the tag Changed after the time stamp is gone, see my attached PNG red marked. 

Was this intended? The other security options are switched off, so user information should all be saved with the document, but one part is missing with that.
Comment 7 riesslibo 2025-05-10 08:45:13 UTC
Created attachment 200725 [details]
Missing user name in tag Changed with switched on this new option for working time
Comment 8 riesslibo 2025-05-19 08:45:25 UTC
Reopened, see my comments
Comment 9 Balázs Varga (allotropia) 2025-05-21 08:07:32 UTC
(In reply to riesslibo from comment #8)
> Reopened, see my comments

Thanks for testing this enhancement. Is not it possible that the "Modified": user name and surename is disappearing because in the Tools --> Options --> LibreOffice --> User Data --> First/last name is empty?

For me even before this enhancement the "Modified": user name and surename is disappeared if the Tools --> Options --> LibreOffice --> User Data --> First/last name was empty.

If I have set a name in the Tools --> Options --> LibreOffice --> User Data --> First/last name the modified name at the Document properties will be overwritten with that name. If the Tools --> Options --> LibreOffice --> User Data --> First/last name was empty then the modified name at the Document properties will be also empty even if the  new RemoveEditingTimeOnSaving is true or false.

But if I am wrong can you share some additional info, please, about how could you reproduce this issue with the Tools --> Options --> LibreOffice --> User Data --> First/last name is not empty? Thanks a lot.
Comment 10 riesslibo 2025-05-21 08:54:45 UTC
(In reply to Balázs Varga (allotropia) from comment #9)
> (In reply to riesslibo from comment #8)
> > Reopened, see my comments
> 
> Thanks for testing this enhancement. Is not it possible that the "Modified":
> user name and surename is disappearing because in the Tools --> Options -->
> LibreOffice --> User Data --> First/last name is empty?
> 
> For me even before this enhancement the "Modified": user name and surename
> is disappeared if the Tools --> Options --> LibreOffice --> User Data -->
> First/last name was empty.
> 
> If I have set a name in the Tools --> Options --> LibreOffice --> User Data
> --> First/last name the modified name at the Document properties will be
> overwritten with that name. If the Tools --> Options --> LibreOffice -->
> User Data --> First/last name was empty then the modified name at the
> Document properties will be also empty even if the  new
> RemoveEditingTimeOnSaving is true or false.
> 
> But if I am wrong can you share some additional info, please, about how
> could you reproduce this issue with the Tools --> Options --> LibreOffice
> --> User Data --> First/last name is not empty? Thanks a lot.

Grmph, my fault, sorry, I installed the actual Dev Version and did not realise, that this is installed with an own vanilla userr profile and not using the one of my productive version. So, added a name and surename there, it is uses as expected. Sorry again for the noise, everything is fine, thanks. 
With that I will close it again.