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

INET6_NTOA incorrect return with single zero

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL)
    • 10.5, 10.6, 10.11
    • None
    • None

    Description

      > select INET6_NTOA(INET6_ATON("2001:db8:0:1:1:1:1:1"));
      +------------------------------------------------+
      | INET6_NTOA(INET6_ATON("2001:db8:0:1:1:1:1:1")) |
      +------------------------------------------------+
      | 2001:db8::1:1:1:1:1                            |
      +------------------------------------------------+

      This is wrong, must be 2001:db8:0:1:1:1:1:1

      look RFC:
      https://www.ietf.org/rfc/rfc5952.txt

      4.2.2. Handling One 16-Bit 0 Field

      The symbol "::" MUST NOT be used to shorten just one 16-bit 0 field.
      For example, the representation 2001:db8:0:1:1:1:1:1 is correct, but
      2001:db8::1:1:1:1:1 is not correct.

      Attachments

        Activity

          People

            bar Alexander Barkov
            256 Vladimir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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