Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7322

Modify the right mask length calculation to handle up to string length for Data Masking

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0.19-10, 8.0.20-11
    • Fix Version/s: 8.0.21-12
    • Component/s: Data Masking
    • Labels:

      Description

       

      PS:

      
      mysql> SELECT mask_outer('abcdef', 1, 2), mask_outer('abcdef',0, 5);
      +----------------------------+---------------------------+
      | mask_outer('abcdef', 1, 2) | mask_outer('abcdef',0, 5) |
      +----------------------------+---------------------------+
      | XbcdXX                     | abcdef                    |
      +----------------------------+---------------------------+
      1 row in set (0.00 sec)mysql> SELECT mask_outer('abcdef', 1, 2, '*'), mask_outer('abcdef',0, 5, '#');
      +---------------------------------+--------------------------------+
      | mask_outer('abcdef', 1, 2, '*') | mask_outer('abcdef',0, 5, '#') |
      +---------------------------------+--------------------------------+
      | *bcd**                          | abcdef                         |
      +---------------------------------+--------------------------------+
      1 row in set (0.00 sec)mysql> 
      

      MySQL Enterprise documentation:

      mysql> SELECT mask_outer('abcdef', 1, 2), mask_outer('abcdef',0, 5);
      +----------------------------+---------------------------+
      | mask_outer('abcdef', 1, 2) | mask_outer('abcdef',0, 5) |
      +----------------------------+---------------------------+
      | XbcdXX                     | aXXXXX                    |
      +----------------------------+---------------------------+
      mysql> SELECT mask_outer('abcdef', 1, 2, '*'), mask_outer('abcdef',0, 5, '#');
      +---------------------------------+--------------------------------+
      | mask_outer('abcdef', 1, 2, '*') | mask_outer('abcdef',0, 5, '#') |
      +---------------------------------+--------------------------------+
      | *bcd**                          | a#####                         |
      +---------------------------------+--------------------------------+
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              satya.bodapati Satya Bodapati
              Reporter:
              satya.bodapati Satya Bodapati
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Smart Checklist