STEPS TO REPRODUCE
- Go to a page
- On that page, click on Attachments Tab
- Click 'Edit' button to edit the page
- Click 'Cancel'
The page is directed to View Mode, no other buttons are displayed in Attachments Tab section.
The page is directed to View Mode, but on Attachment Tab, below the "Browse" button are displayed another 2 buttons: "Attach" and "Cancel".
If clicked on "Cancel", the page is refreshed and these 2 buttons disappear, but when clicked on "Attach", a warning is displayed for the request containing an invalid authentication information.
At this point if clicked "Yes" the user is directed to a page titled 'Uploading files to $escapetool.xml($redirect)' (with a notice about no files being found on the request) and if clicked "No", the user is directed to "$escapetool.xml($redirect)" (non existent page).
It is to be mentioned that "Attach" and "Cancel" buttons disappear if the page is refreshed (F5).
The issue doesn't reproduce on XWiki 12.10.5 and XWiki 13.1.