Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-7604

Whitespace+invalid character at the end of a string causes an ISE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2014-06-09
    • None
    • None
    • None

      The trim function from MB::S::Data::Utils first removes leading and trailing whitespace, then invalid characters. If the invalid character is a word by itself at the beginning or end of the string, e.g. "foo INVALID", the result will be "foo " (trailing whitespace), causing an internal server error because this string is rejected by the database. Instead, invalid characters should be removed first.

            chirlu Ulrich Klauer
            chirlu Ulrich Klauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2014-06-09