<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 - Can't open file for editing if there is a lingering lock file from a different user"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108210">108210</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't open file for editing if there is a lingering lock file from a different user
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>5.4.0.0.alpha1+
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>LibreOffice
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If there are two users in the system, one edits a file, but doesn't exit
cleanly and the lock file remains, trying to open it with a different user
shows the usual dialog, but with the following possible actions (normally the
middle option is "Open", and the text is slightly different, in this case it
includes the other user's name):
"Open Read-Only", "Open Copy", "Cancel".

Basically LO still thinks the file is open by a different user.

The easiest way to repro is to:
- save a lock file while the file is open,
- edit it with a text editor manually by replacing the user name in the first
field with a different one (it's in ",Computer/User," form),
- place it next to the original file when the file is not opened, and open it
again.

Another way (tested in Windows 7):
- create a different user in the system, set a password for it,
- start LO with that user by shift-right-clicking soffice.exe and selecting Run
as different user,
- open a file,
- kill LO in task manager,
- start LO with the first user, and try to open the same file again.

Reproduced with 5.3.3.2 & 3.3.0 / Windows 7.
Not sure whether it affects Linux, it likely does, but I haven't checked.</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>