0 Votes

scripttest

Version 42.1 by Ryan C on 2025/05/06 19:46
Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Attachment Rename Script Test Page

This page is used to test all known edge cases for attachment renaming and broken reference recovery.

โœ… Working Link with Bad Filename

This should show a valid image but with a bad filename like `a b.jpg`, which will be renamed to `a_b.jpg`.
Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Main Categories.Crime & Justice.Blacks counted as White.scripttest.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

๐Ÿงผ Already-clean filename

already_clean.jpg

๐Ÿ’ฅ Broken reference (does not exist at all)

nonexistent[broken].jpg

๐Ÿ” Previously renamed (should be fixed if stale)

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Main Categories.Crime & Justice.Blacks counted as White.scripttest.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

๐Ÿง  Fuzzy-match candidate (actual file is `a_b.jpg`)

a_b.JPG

๐Ÿงช Badly-encoded filename with leftover macro syntax

blacks_counted_as_white_injustice_ethnicity_image_images_non-hispanic_race_texas_white_.jpg].jpg

๐Ÿงฑ HTML Embed (should still work after rename)

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Main Categories.Crime & Justice.Blacks counted as White.scripttest.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

โš™๏ธ Velocity-based Embed with bad name

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Main Categories.Crime & Justice.Blacks counted as White.scripttest.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

๐ŸŽž Embedded MP4 (should be renamed and still playable)


๐Ÿ“Š Gallery Rendering

๐Ÿ“Ž Attachment Reference

Archived Chart

XWiki AI Chat