Bug 163321 - AutoCorrect applies rules that can only be changed with admin privileges
Summary: AutoCorrect applies rules that can only be changed with admin privileges
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks:
 
Reported: 2024-10-06 11:47 UTC by Uwe
Modified: 2024-10-06 13:54 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A prepared sample (1012 bytes, application/vnd.oasis.opendocument.text)
2024-10-06 13:40 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe 2024-10-06 11:47:05 UTC
LibreOffice auto correction seems to prefer the system wide acor_xy.dat to the file in the user profile. With this preference, it is not possible any more to remove unwanted corrections from the auto correction features.

This problem has been reported multiple times in different discussion groups, e.g. here: https://ask.libreoffice.org/t/autokorrektur-dass-wird-ungewollt-zu-dass/60502

Users are forced to remove the unwanted corrections from an XML file insiede a ZIP file, and they require administrator privileges for the change. This should not be the case. The auto correction features should apply only those replacement rules that can be viewed and changed in Extras - AutoCorrect - Options.
Comment 1 Mike Kaganski 2024-10-06 12:22:44 UTC
1. What specific steps exist to reproduce the issue? References to external (especially non-English) discussions do not help.
2. You mentioned "any more"; do you happen to know in which version it worked differently? (This is not a required piece of information - with the steps, we will be able to figure; but if you know, it could ne easier).
Comment 2 Uwe 2024-10-06 12:42:08 UTC
Steps to reproduce:

Install LibreOffice with German language support. Open Writer. Make sure that Tools - AutoCorrect - While typing is switched on. Go to Tools - AutoCorrect - AutoCorrect Options... On the "Replace" tab, select the entry that is supposed to change "daß" to "dass" and hit "Delete". Click "OK". In the writer document, enter "daß" and hit the space key. Writer will replace "daß" with "dass".

I first found this behaviour in the LO release that came with the update version of Kubuntu 24.04 (LTS). The version in Kubuntu 22.04 was ok. I linked to the discussion on ask.libreoffice.org because it contains information about a previous version that had the bug. Most disussions I found about this bug are in German, because we have different spelling across and even within the german speaking countries. I'm not sure if there are autocorrect rules in other languages that are not used by all users.
Comment 3 Mike Kaganski 2024-10-06 13:40:14 UTC
Reproducible. 

In 7.0, there was no "daß"->"dass" replacement rule. However, it can be reproduced with another rule, like "dei" -> "die".

Already reproducible using
Version: 4.4.0.3
Build ID: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Locale: ru_RU

Working OK using
Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0
Comment 4 Mike Kaganski 2024-10-06 13:40:49 UTC
Created attachment 196927 [details]
A prepared sample

Adding a space after the words in the file allows to see the problem
Comment 5 Mike Kaganski 2024-10-06 13:51:52 UTC
Regression in the range of https://git.libreoffice.org/core/+log/3d34eb4..f74a633 - and the suspicious commit is a4f411ba62d4fd7fd4a61d1c9d326488d5e84ff5.
Comment 6 Mike Kaganski 2024-10-06 13:54:09 UTC
... which likely means, that the problem is even older, and only appeared in German after the said commit, because prior to that, there was no generic autocorrection - for other languages that had it, it is expected to see the same problem earlier.