Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-26679

JSON_VALID validates invalid JSON

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
    • N/A
    • JSON
    • None

    Description

      10.7.0 d552e092c9f3e20da078d1b62b976f629f73d3a4 (Debug)

      10.7.0-dbg>SELECT JSON_VALID('{}');
      +------------------+
      | JSON_VALID('{}') |
      +------------------+
      |                1 |
      +------------------+
      1 row in set (0.000 sec)
       
      10.7.0-dbg>SELECT JSON_VALID('{\}');
      +-------------------+
      | JSON_VALID('{\}') |
      +-------------------+
      |                 1 |
      +-------------------+
      1 row in set (0.000 sec)
      

      Both, at least according to http://json-validator.com/ are invalid. The second is definitely invalid/cannot be valid.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.