Bug 122947 - Macro Trusted Location not trusted if username shortened ~
Summary: Macro Trusted Location not trusted if username shortened ~
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Options-Dialog Macro
  Show dependency treegraph
Reported: 2019-01-25 09:49 UTC by masi
Modified: 2020-03-12 03:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description masi 2019-01-25 09:49:57 UTC
The users %temp% folder is not trusted even if added to trusted location if the username is too long for windows' taste, and therefore shortened with a ~

Tested with $(user) $(home) $(temp)
Only $(temp) gives the error. 
$(user) and $(home) works as expected.

Steps to Reproduce:
1.Add $(temp) to trusted Macro location
2.Username should be long enough to generate a %temp% path with shortened username. Eg. "C:\Users\TEST-H~1\AppData\Local\Temp\30" For the User "TEST-Hello_World"
3.Open document (with macros) from that location

Actual Results:
Warning about document containing macros.

Expected Results:
No warning, because location should be trusted

Reproducible: Always

User Profile Reset: No

Additional Info:
This is also tested with version
Comment 1 Xisco Faulí 2019-06-10 16:42:47 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
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 QA Administrators 2020-02-10 03:33:07 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2020-03-12 03:15:24 UTC
Dear masi,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team