This script in 4.4 will list local images that were link to another content than their own
We supposed that should not happen, but it totally can by copy/paste a richtext during edition
const refs = Repository.query("//element(local, ametys:reference)", false) while (refs.hasNext()) { const ref = refs.next(); const contentNode = ref.getParent().getParent().getParent(); const values = ref.getProperty("ametys:reference").getValues() for (const value of values) { if (!value.getString().includes("://" + contentNode.getId() + "@")) { print (contentNode.getId() + " " + value.getString()) } } }
- Est référencé par
-
NEWSLETTER-335 Automatic data migration fails "Cannot read property "containsKey" of null"
-
- Closed
-
[CMS-11206] Migration issue with richtext images from other contents
Link |
New:
This issue Est référencé par |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Fix Version/s | New: 4.5.4 [ 17192 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Reopened [ 4 ] | New: In Progress [ 3 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Ready to merge [ 10208 ] | New: Resolved [ 5 ] |
Assignee | Original: Cédric Damioli [ cedric ] | New: Caroline Bayle [ cbayle ] |
Status | Original: Code review OK [ 10206 ] | New: Ready to merge [ 10208 ] |
Status | Original: Available for review [ 10005 ] | New: Code review OK [ 10206 ] |
An error occurs if the distant content does not exist anymore