This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-4e1d6456-7f23-4c90-88b3-a822cec10a01 XWIKI-24221 Open

Same uploaded image is set for all attachmentSelector used in the same form

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-9bf1f5cf-b169-4afa-8ff4-80b02f0e80ac Mathieu Pace created this issue on 13/Apr/26 17:05
 
Summary: Same uploaded image is set for all attachmentSelector used in the same form
Issue Type: cid:jira-generated-image-avatar-4e1d6456-7f23-4c90-88b3-a822cec10a01 Bug
Affects Versions: 16.10.12, 18.2.0
Assignee: Unassigned
Components: Attachments
Created: 13/Apr/26 17:05
Priority: cid:jira-generated-image-static-minor-947e4902-d06f-4aaf-a13a-97b254805cc5 Minor
Reporter: Mathieu Pace
Description:

When used multiple times in the same form, one AttachmentSelector uploading a new file set that file value for every other AttachmentSelector on the form.

Reproduction steps

The issue was detected from XCAROUSEL-16, so I'll use that extension here as it's easier to set-up.

  1. Install extension XCarousel 1.4
  2. Go to XCarousel space
  3. Add a new entry
  4. In the edition, open Slide 1 part and click "Choose an attachment"
  5. Select an image file which is not already uploaded to the current page
  6. Click "Upload and select"
  7. Repeat step 4 to 6 for Slide 2 and 3, with other image file
  8. Click "Save & View" to close the edit mode and go back to view mode
  9. At this state, you can view correctly the created carousel
  10. Re-edit it
  11. Change slide 1 image, with a new one which has not been uploaded to this page already.
  12. "Upload and select" and "Save & View"

Result

Every slide now uses the same image uploaded for step 11, because all the values for AttachmentSelector have been set to use it.

Expected result

Only slide 1 should use the image uploaded in step 11. Other AttachmentSelector shouldn't have their value updated.