Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.67, 5.3.12, 5.5.34, 10.0.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The XML parser does not return errors when a closing tag does not
      patch its opening tag.
      The bug can be repeated with the ExtractValue() function:

      mysql> select extractvalue('<a><b>xxx</c></a>','/a/b');
      +------------------------------------------+
      | extractvalue('<a><b>xxx</c></a>','/a/b') |
      +------------------------------------------+
      | xxx                                      |
      +------------------------------------------+
      1 row in set (0.00 sec)

      Notice <b>...</c>.

      The bug can also be repeated by using a malformed
      the character set and collation definition file Index.xml.

      <charsets>   
        <charset name="utf8">
          <collation name="utf8_5624_5_bad" id="369" shift-after-method="expand">
            <rules>
            <reset>a-a4</reset><p>xxx04</a>
            <reset>a-aa5</reset><p>xxx05</a>
            <reset>a-aaa6</reset><p>xxx06</a>
            <reset>a-aaaa7</reset><p>xxx07</a>
            <reset>a-aaaaa8</reset><p>xxx08</a>
            <reset>a-aaaaaa9</reset><p>xxx09</a>
            <reset>a-aaaaaa10</reset><p>xxx10</a>
            </rules>
          </collation>
          <collation name="utf8_maxuserid_ci" id="2047" version="4.0.0">
            <rules>   
              <reset>a</reset>
              <s>b</s>
            </rules>
          </collation>
        </charset>
      </charsets>

      Notice <p>..</a>. The file is read without any errors,
      and the collation utf8_maxuserid_ci (which is following the
      one with the bad definition) is available in the server.

        Attachments

          Activity

            People

            • Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: