<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Macro Trusted Location not trusted if username shortened ~"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122947">122947</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Macro Trusted Location not trusted if username shortened ~
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.1.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>masi@spectra-systems.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
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 6.0.7.3</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>