Bug: orphaned xml for external links

This bug has been around for more than a half decade.

For files files with no External Links, Calc gives the Security Warning Automatic update of external links has been disabled.

xx2.ods (6.9 KB)

As a user, the hack to fix such a file:

  1. use Edit > Links to External Links to find the offending Source file and jot that down
  2. copy the problematic ods to, say, xx.ods
  3. unzip xx.ods
  4. open content.xml in a text editor
  5. look for xlinks and identify the offending one
  6. delete the self-closing <table …/> that encloses it
  7. save the edited file
  8. recompress the components into a new ods
  9. open the new ods
  10. if necessary, run a global all-sheet search&replace of \n with ‘’

For unzipping and recompressing, see my notes here:
.
https://ask.libreoffice.org/t/calc-how-do-i-reduce-ods-file-size-by-resizing-embedded-images/131739/5