[
https://issues.apache.org/jira/browse/AVRO-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007077#comment-17007077
]
Hudson commented on AVRO-2645:
------------------------------
SUCCESS: Integrated in Jenkins build AvroJava #797 (See
[https://builds.apache.org/job/AvroJava/797/])
AVRO-2645: Validate names in schemas in Ruby client (#732) (fokko:
[https://github.com/apache/avro/commit/d6cf7c46c20973f4e2e4ef41c064a40fb616994d])
* (edit) lang/ruby/test/test_schema_validator.rb
* (edit) lang/ruby/lib/avro/schema.rb
* (edit) lang/ruby/lib/avro.rb
* (edit) lang/ruby/test/test_schema.rb
> Ruby Avro does not validate record names
> ----------------------------------------
>
> Key: AVRO-2645
> URL: https://issues.apache.org/jira/browse/AVRO-2645
> Project: Apache Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.9.1
> Reporter: Daniel Orner
> Priority: Minor
> Fix For: 1.10.0
>
>
> Currently, the following Avro schema is considered valid and throws no errors:
> {code:java}
> {
> "type": "record",
> "name": "my-schema",
> "fields": [
> {
> "name": "id",
> "type": "long"
> }
> ]
> }
> {code}
> However, according to the Avro specification, names must:
> * start with [A-Za-z_]
> * subsequently contain only [A-Za-z0-9_]
> When using e.g. the Confluent Schema Registry, registering this schema fails
> because the Java Avro client correctly identifies this as an invalid schema.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)