This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9ec4df22-6e42-433a-ac02-b87dcbdd401c XWIKI-23843 Open

Copy-pasting icons sometimes adds the icon to the Attachments of the page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-64c6288a-1a1e-4796-a60e-20ba8c56a1df Ion Claudiu created this issue on 23/Dec/25 09:01
 
Summary: Copy-pasting icons sometimes adds the icon to the Attachments of the page
Issue Type: cid:jira-generated-image-avatar-9ec4df22-6e42-433a-ac02-b87dcbdd401c Bug
Assignee: Unassigned
Created: 23/Dec/25 09:01
Priority: cid:jira-generated-image-static-major-8be4e2d8-0a04-4615-a7d6-ae7df1b92028 Major
Reporter: Ion Claudiu
Description:

This bug is quite inconsistent. The following steps to reproduce are the ones that I had most success with:

  • go to an already existing page/create a new page (with some text) and save it
  • insert an icon the standard way; to open the insert icon module either
    • use the /img macro or
    • use the icon button in the editor's toolbar
  • go to the icon tab in the module, write "tick" (this should be the same with any icon name) and click on Select
  • add an alternative text and then click on Insert
  • the first icon is inserted and not added to the attachments
  • select the newly added icon
  • copy it (CTRL+C)
  • go to anywhere else in the same page's content
  • paste the icon (CTRL+V)

 

Expected result: the copy-pasted icons are inserted to the page just like the first one

Actual result: sometimes, the copy-pasted icons are re-uploaded to the page with new names (this could possibly be caused by how the clipboard interacts with attachments), but sometimes they are inserted correctly as icons (not attached)

Some extra details:

  • this happens on 16.x and 17.x, I never reproduced on 15.x
  • the new names for the attachments are sometimes new random IDs (which might point to the fact that the editor/clipboard considers the icon as an image), but very rarely it has the "icon_name.png" name (in this case "tick.png")
  • the copy-pasted icon must be from the same page. If you copy-paste it from another page, this will always happen (this could be explained again by how the clipboard works)
  • in the source of the page:
    • whenever I do not reproduce, the copy-pasted icons have the exact same structure as the initial icon: {
      Unknown macro: {[[image}

      }

    • whenever I do reproduce, it is something like this: {
      Unknown macro: {[[image}

      }

  • adding the icons by inserting them everytime instead of copy-pasting them will always work correctly (but it is more tedious)

I will add more details whenever I will find them, as I am still trying to find a consistent way to reproduce this.

 
 

1 update

 
cid:jira-generated-image-avatar-64c6288a-1a1e-4796-a60e-20ba8c56a1df Changes by Ion Claudiu on 23/Dec/25 09:02
 
Description: This bug is quite inconsistent. The following steps to reproduce are the ones that I had most success with:
* go to an already existing page/create a new page (with some text) and save it
* insert an icon the standard way; to open the insert icon module either
** use the /img macro or
** use the icon button in the editor's toolbar
* go to the icon tab in the module, write "tick" (this should be the same with any icon name) and click on Select
* add an alternative text and then click on Insert
* the first icon is inserted and *not added* to the attachments
* select the newly added icon
* copy it (CTRL+C)
* go to anywhere else in the same page's content
* paste the icon (CTRL+V)

 

Expected result: the copy-pasted icons are inserted to the page just like the first one

Actual result: sometimes, the copy-pasted icons are re-uploaded to the page with new names (this could possibly be caused by how the clipboard interacts with attachments), but sometimes they are inserted correctly as icons (not attached)

Some extra details:
* this happens on 16.x and 17.x, I never reproduced on 15.x
* the new names for the attachments are sometimes new random IDs (which might point to the fact that the editor/clipboard considers the icon as an image), but very rarely it has the "icon_name.png" name (in this case "tick.png")
* the copy-pasted icon *must be* from the same page. If you copy-paste it from another page, this will always happen (this could be explained again by how the clipboard works)
* in the source of the page:
** whenever I do not reproduce, the copy-pasted icons have the exact same structure as the initial icon:
\{{ [[image:icon:tick]] }}
** whenever I do reproduce, it is something like this:
\{{ [[image: ( image_name ) ||alt="tick"]] }}
* adding the icons by inserting them everytime instead of copy-pasting them will always work correctly (but it is more tedious)



I will add more details whenever I will find them, as I am still trying to find a consistent way to reproduce this.