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

Chrome Docker container name client-side validation doesn't work on Chrome 114

    XMLWordPrintable

Details

    • Integration
    • High
    • Easy
    • N/A
    • N/A

    Description

      Follow these steps to reproduce:

      • go to "Wiki Administration / Content / PDF Export" and set the Chrome Docker container name to "%^&*" (without the quotes)
      • click outside the text input in order to lose the focus and trigger the client-side validation

      Expected: the text input border turns red to indicate that its value is not valid.
      Actual: the text input border remains blue, and the value is considered valid

      This is a regression caused by a change in the Chrome behaviour between v113 and v114. If you check the JavaScript console:

      • on v113 we get the following warning:
        Pattern attribute value [a-zA-Z0-9][a-zA-Z0-9_.-]+ is valid with the RegExp `u` flag, but not with the `v` flag: Uncaught SyntaxError: Invalid regular expression: /[a-zA-Z0-9][a-zA-Z0-9_.-]+/v: Invalid character in character class. See https://crbug.com/1412729
        
      • on v114 we get the following error:
        Pattern attribute value [a-zA-Z0-9][a-zA-Z0-9_.-]+ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[a-zA-Z0-9][a-zA-Z0-9_.-]+/v: Invalid character in character class
        

      The linked Chrome issue is https://bugs.chromium.org/p/chromium/issues/detail?id=1412729 .

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: