<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 - external file links still chased even if entry containing them deleted (change tracking enabled)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118118">118118</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>external file links still chased even if entry containing them deleted (change tracking enabled)
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Mac OS X (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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tmplee@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>1.Create a new calc spreadsheet, enter something in any cell.  Save the
spreadsheet but leave the window open.
2.Create a second new calc spreadsheet.
3.Turn change tracking on (edit > track changes > record changes.)
4. Click on a cell, enter =, then click on the cell you filled in in step 1,
hit return.
5. The cell you filled in in step 4 should now show the value entered in step 1
(and if you look at the formula that has been entered it will start
"='file///…")
6. Delete the contents of the cell.
7. Save and close the second spreadsheet.
8. Open the second spreadsheet.
You will get a message (which message you get depends on the version of
LibreOffice) saying your spreadsheet has links to an external file and giving
you the option of following them.

As best I can tell, the only way to stop the message (other than enabling
automatic linking) is to stop recording changes, which of course loses ALL
change history.
(I've tried accepting or rejecting the change on just the cell in question and
that doesn't stop the message.)

I believe the problem is that because the change history remembers the external
file link even after the formula containing it has been deleted (or replaced by
something else) the program attempts to follow it when the spreadsheet is
loaded, even though the result won't actually be used.  This is even true if
the change deleting the external has been accepted: the change history still
remembers the old value as having been changed.

I believe the "right" implementation here would be to process external file
links only if the result will be "used" in the spreadsheet.  (I don't know what
happens, or, to be honest, what should happen, if an external link is in a
conditional expression of some kind and is used dependent on what the condition
evaluates to, although that may be a related issue.) 

This "bug" (behavior) is present in 3.3, 6.0, and 6.1.0.0beta1.</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>