[ 
https://issues.apache.org/jira/browse/AVRO-3897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov resolved AVRO-3897.
---------------------------------------------
    Fix Version/s: 1.12.0
                   1.11.4
         Assignee: Kousuke Saruta
       Resolution: Fixed

> Disallow invalid namespace in fully qualified name for Rust SDK
> ---------------------------------------------------------------
>
>                 Key: AVRO-3897
>                 URL: https://issues.apache.org/jira/browse/AVRO-3897
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>            Reporter: Kousuke Saruta
>            Assignee: Kousuke Saruta
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0, 1.11.4
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Currently, the Rust SDK allows the following fully qualified names with 
> Name::new.
> {code}
> Name::new("ns.0.record1")
> Name::new("ns..record1")
> {code}
> But they should be disallowed according to the specification.
> https://avro.apache.org/docs/1.11.1/specification/#names
> {code}
> 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_]
> {code}
> {code}
> 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>)*]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to