Details
- 
    Improvement 
- 
    Resolution: Fixed
- 
    Major 
- 
    13.10.2
- 
    None
Description
In order to easily identify documents that needs to be refactored when an attachment is moved or renamed, we need to store a map of the places where attachments are used, and there current locations.
On a live wiki, this mapping can be maintained by scanning documents when they are saved.
 We also need to have a background process close to what we already have for solr indexing, to also scan documents existing prior to the introduction of this mechanism.
Additionally, a full indexation must be done once at migration time to distinguish document references from attachment references.
See https://design.xwiki.org/xwiki/bin/view/Proposal/Attachmentsmoveandrename#HDatabase
Attachments
Issue Links
- blocks
- 
                    XWIKI-19347 Allow refactoring of references to moved attachments -         
- Closed
 
-         
- causes
- 
                    XWIKI-20222 The wiki part of the link is lost in the link index table -         
- Closed
 
-         
- depends on
- 
                    XWIKI-19378 Asynchronous document static analysis -         
- Closed
 
-         
- relates to
- 
                    XWIKI-19578 Extra warnings related to xwikilinks in the xwiki logs -         
- Closed
 
-         
- 
                    XWIKI-19628 Links are wrongly saved as backlinks when page references are used and pointing to terminal documents -         
- Closed
 
-         
- 
                    XWIKI-20273 SQL error related to XWL_ID with link indexer -         
- Closed
 
-         
- 
                    XWIKI-13450 Add a migrator to update backlinks with included/displayed documents for existing pages -         
- Closed
 
-         
- 
                    XWIKI-19428 Show the progress of the document analysis queue in the administration -         
- Closed
 
-