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

Disallow invalid namespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.12.0
    • None
    • java

    Description

      According to the specification, each portion of a namespace separated by dot should be [a-zA-Z_][a-zA-Z0-9_].
      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_]
      
      A namespace is a dot-separated sequence of such names. The empty string may also be used as a namespace to indicate the null namespace. Equality of names (including field names and enum symbols) as well as fullnames is case-sensitive.
      
      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

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

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m