Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3150

SimpleUrlPattern do not accept all the chars accepted by Path.getValidatedLabel(String label) with UTF-8 enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.3.1
    • 4.3
    • None

    Description

      If UTF-8 has been enabled, there are still a set of chars not accepted by SimpleUrlPattern (ex. ' char used everywhere by MS Word) .

      SimpleUrlPattern use regEx: [
      p

      {L}


      p

      {Mn}


      p

      {S}

      \\w!\"#$%&'*+,-./:; <=>?@`|~\\^\\(\\)

      {\\}

      \\[
      ]]

      Adding UTF-8 support this regEx shuold be inverted, so it should accept all chars except a specified set.
      the new regEx could be something like ^((?![<>]).)*$

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgiust Fabrizio Giustina
                lucaboati Luca Boati
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD