Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3897

Disallow invalid namespace in fully qualified name for Rust SDK

    XMLWordPrintableJSON

Details

    Description

      Currently, the Rust SDK allows the following fully qualified names with Name::new.

      Name::new("ns.0.record1")
      Name::new("ns..record1")
      

      But they should be disallowed according to the specification.
      https://avro.apache.org/docs/1.11.1/specification/#names

      The name portion of the fullname of named types, record field names, and enum symbols must:
      
      start with [A-Za-z_]
      subsequently contain only [A-Za-z0-9_]
      
      The null namespace may not be used in a dot-separated sequence of names. So the grammar for a namespace is:
      
        <empty> | <name>[(<dot><name>)*]
      

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h