Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21964

Display a warning in the Image Styles Administration page when a style with the same Identifier already exists

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.20
    • Image
    • Windows 11 Pro, Chrome 122, using a local instance of XWiki 16.1.0 on Tomcat 9.0.86, MariaDB 11.3
    • Unknown

    Description

      Steps to reproduce

      1. Go to Administer Wiki > Look & Feel > Image Styles
      2. Create a new Image Style (e.g. with Identifier: 'Style1')
      3. In order to create another Image Style, in the 'New Image Style' field, input the same Identifier, e.g. 'Style1'
      4. Click 'Create the image style' button

      Expected results

      A small red warning below the input field or near is displayed, informing the user that the respective Identifier already exists.

      Actual results

      The user is directed to ImageStyleClass page (http://localhost:8080/xwiki/bin/view/Image/Style/Code/ImageStyleClass) where there is a warning message stating that 'The target page already exists.'.

      This can be confusing for the users since the title of the page and the message imply that the user should have technical knowledge about the Image Style implementation and that he landed on the Image Style class page.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: