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

Kousuke Saruta updated AVRO-3897:
---------------------------------
    Description: 
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}

  was:
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.


> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  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